%define ver 5.6.0 %define oldver 5.600 %define rel 4mdk_mhz Summary: The Perl programming language. Summary(de): Die Perl-Programmiersprache Name: perl Epoch: 1 Version: %{ver} Release: %{rel} Group: Development/Perl Copyright: Artistic Provides: perl = 0:%{oldver} Requires: perl-base = 1:%{version} AutoReqProv: all #ftp://ftp.linux.activestate.com/pub/staff/gsar/APC/5.6.0/perl-5.6.0.tar.gz Source0: ftp://ftp.perl.org/pub/perl/CPAN/src/5.0/maint/perl-%{version}.tar.bz2 Patch0: perl5.005_02-buildsys.patch.bz2 Patch2: perl5.005_61-nodb.patch.bz2 Patch3: perl5-norootcheck.patch.bz2 Patch4: perl-5.6.0-CGI_upload_tmpdir.patch.bz2 Patch5: perl-5.6.0-unsafe-mailing-in-setuid.patch.bz2 Patch6: perl-5.6.0-fix-LD_RUN_PATH-for-MakeMaker.patch.bz2 Patch7: perl-5.6.0-fix-errno_h-parsing-for-glibc-2.1.95.patch.bz2 Patch8: perl-5.6.0-cop.patch.bz2 Packager: Mikhail Zabaluev Buildroot: %{_tmppath}/%{name}-buildroot %package base Epoch: 1 Version: %{version} Summary: The Perl programming language (base). Group: Development/Perl Provides: perl-base = 0:%{oldver} %package devel Epoch: 1 Version: %{version} Summary: The Perl programming language (devel). Group: Development/Perl Provides: perl-devel = 0:%{oldver} Requires: perl = 1:%{version} %description Perl is a high-level programming language with roots in C, sed, awk and shell scripting. Perl is good at handling processes and files, and is especially good at handling text. Perl's hallmarks are practicality and efficiency. While it is used to do a lot of different things, Perl's most common applications (and what it excels at) are probably system administration utilities and web programming. A large proportion of the CGI scripts on the web are written in Perl. You need the perl package installed on your system so that your system can handle Perl scripts. You need perl-base to have a full perl. %description base This is the base package for %{name}. %description devel This is the devel package for %{name}. %prep %setup -q -n perl-%{version} %patch0 -p1 -b .buildsys %patch2 -p1 %patch3 -p1 %patch4 -p1 %patch5 -p1 %patch6 -p1 %patch7 -p1 %patch8 -p1 %build sh Configure \ -des -Darchname=${RPM_ARCH}-linux -Dd_dosuid -Ud_csh -Duseshrplib \ -Doptimize="$RPM_OPT_FLAGS" -Dprefix=/usr \ -Dman1dir=%{_mandir}/man1 -Dman3dir=%{_libdir}/perl5/man/man3 %{make} %install rm -rf $RPM_BUILD_ROOT cp -f lib/Config.pm.orig lib/Config.pm ||: # in case of short-circuit cp -f lib/Config.pm lib/Config.pm.orig perl -pi -e "s,^(install.*?)='(/usr.*)',\$1='$RPM_BUILD_ROOT\$2'," lib/Config.pm make install cp -f lib/Config.pm.orig $RPM_BUILD_ROOT%{_libdir}/perl5/%{version}/%{_arch}-linux/Config.pm install -m 755 utils/pl2pm $RPM_BUILD_ROOT%{_bindir}/pl2pm bzip2 -9 $RPM_BUILD_ROOT%{_libdir}/perl5/man/man3/* export LD_LIBRARY_PATH=$(pwd) # Generate *.ph files with a trick. Is this sick or what ? make all -f - < perl-base.list < perl.list < perl-devel.list <> %{name}.list (cd $RPM_BUILD_ROOT ; find usr/lib/perl5/%{version} -type d -printf "%%%%dir /%%p\n") >> %{name}.list perl -ni -e 'BEGIN { open F, "perl-base.list"; $s{$_} = 1 foreach ; } print unless $s{$_}' %{name}.list perl -ni -e 'BEGIN { open F, "perl-devel.list"; $s{$_} = 1 foreach ; } print unless $s{$_}' %{name}.list ) %clean rm -rf $RPM_BUILD_ROOT %files -f perl.list %defattr(-,root,root) %files base -f perl-base.list %defattr(-,root,root) %files devel -f perl-devel.list %defattr(-,root,root) %changelog * Tue Nov 23 2000 Mikhail Zabaluev 1:5.6.0-4mdk_mhz - synchronized with 5.600-20mdk by pixel@mandrakesoft.com - enabled 'uselargefiles' again, since the new kernel must support it - removed redundant epoch 1 provides - AutoReqProv: all * Mon Oct 16 2000 Mikhail Zabaluev 1:5.6.0-3mdk_mhz - -Uuselargefiles configuration option, for compatibility with Apache and workable fcntl($fd, F_SETLK, ...) * Sun Oct 8 2000 Mikhail Zabaluev 1:5.6.0-2mdk_mhz - added %{name} = 1:%{version} in provides to work around an rpm flaw * Sat Oct 7 2000 Mikhail Zabaluev 1:5.6.0-1mdk_mhz - versioning with epoch - excluded *.bs files from perl.list * Sun Sep 3 2000 Pixel 5.600-17mdk - also move warnings/register.pm - fix silly error * Sat Sep 2 2000 Pixel 5.600-16mdk - move Glob.pm and dependencies to perl-base * Sat Sep 2 2000 Pixel 5.600-15mdk - fix filelist cleaning * Wed Aug 23 2000 Pixel 5.600-14mdk - add Packager * Tue Aug 22 2000 Pixel 5.600-13mdk - move dir .../CORE to perl-base - move lib.pm to perl-base (to make installkernel happy) * Fri Aug 18 2000 Pixel 5.600-12mdk - fix-LD_RUN_PATH-for-MakeMaker * Mon Aug 7 2000 Pixel 5.600-11mdk - fix the mailx `!~' (in case you're using the old mailx or a bug appears in mailx...) * Tue Jul 25 2000 Pixel 5.600-10mdk - move DynaLoader.a to -devel - remove menu * Sat Jul 22 2000 Pixel 5.600-9mdk - patch CGI.pm to have $TempFile::TMPDIRECTORY = '/tmp' * Fri Jul 21 2000 Pixel 5.600-8mdk - bad config.h * Fri Jul 21 2000 Pixel 5.600-7mdk - oups, devel was bad :-( * Wed Jul 19 2000 Pixel 5.600-6mdk - BM, macroization * Fri May 19 2000 François Pons 5.600-5mdk - changed asm/*.h to asm*/*.h during .ph generation for sparc. * Fri Mar 31 2000 Pixel 5.600-4mdk - fix a bug causing missing .ph's * Tue Mar 28 2000 Pixel 5.600-3mdk - really add menu * Mon Mar 27 2000 Pixel 5.600-2mdk - add menu * Thu Mar 23 2000 Pixel 5.600-1mdk - change version number for backward compatibility :( (serial is not enough, cuz there are some requires >= 5.00503) * Thu Mar 23 2000 Pixel 5.6.0-1mdk - new version * Tue Mar 21 2000 Pixel 5.6-0.3mdk - RC3 * Thu Mar 16 2000 Pixel 5.6-0.2mdk - RC2 * Thu Mar 9 2000 Pixel 5.6-0.1mdk - new version * Wed Mar 1 2000 Pixel 5.5.670-1mdk - new version * Thu Feb 24 2000 Pixel 5.5.660-1mdk - remove the strip'ing and man page bzip'ing - new version * Wed Feb 9 2000 Pixel 5.5.650-1mdk - new version * Thu Feb 3 2000 Pixel 5.5.640-6mdk - new version (and new version numbering) * Mon Jan 17 2000 François Pons - changed asm/*.h to asm*/*.h during .ph generation for sparc. * Fri Dec 17 1999 Pixel - clean up - fixed the reference to the egcs package * Mon Nov 29 1999 Pixel - removed the `Provides: perl' in perl-base * Mon Nov 22 1999 Stefan van der Eijk - changed i386 into ${RPM_ARCH} * Mon Oct 25 1999 Chmouel Boudjnah - Fix forget manpages from %files. * Thu Oct 14 1999 Pixel - create hackperl based on perl's spec - split in two packages - removed csh dependencie - merged redhat's spec (not everything) * Mon Jul 12 1999 Chmouel Boudjnah - ln /usr/lib/perl5 to /usr/lib/perl5%{current_version} - bzip2 manpages. * Tue Apr 13 1999 Chmouel Boudjnah - Add patch from RedHat6.0. - Update to 5.005_03 * Sat Apr 10 1999 Bernhard Rosenkraenzer - Mandrake adaptions - bzip2 man/info pages - handle RPM_OPT_FLAGS - add de locale * Thu Jan 07 1999 Cristian Gafton - guilty of the inlined Makefile in the spec file - adapted for the arm build * Wed Sep 09 1998 Preston Brown - added newer CGI.pm to the build - changed the version naming scheme around to work with RPM * Sun Jul 19 1998 Jeff Johnson - attempt to generate *.ph files reproducibly * Mon Jun 15 1998 Jeff Johnson - update to 5.004_04-m4 (pre-5.005 maintenance release) * Tue Jun 12 1998 Christopher McCrory - added a patch to correct the .ph constructs unless defined (foo) to read unless(defined(foo)) * Thu May 07 1998 Prospector System - translations modified for de, fr, tr * Tue Mar 10 1998 Cristian Gafton - fixed strftime problem * Sun Mar 08 1998 Cristian Gafton - added a patch to fix a security race - do not use setres[ug]id - those are not implemented on 2.0.3x kernels * Mon Mar 02 1998 Cristian Gafton - upgraded to 5.004_04 - 5.004_01 had some nasty memory leaks. - fixed the spec file to be version-independent * Fri Dec 05 1997 Erik Troan - Config.pm wasn't right do to the builtrooting * Mon Oct 20 1997 Erik Troan - fixed arch-specfic part of spec file * Sun Oct 19 1997 Erik Troan - updated to perl 5.004_01 - users a build root * Thu Jun 12 1997 Erik Troan - built against glibc * Tue Apr 22 1997 Erik Troan - Incorporated security patch from Chip Salzenberg * Fri Feb 07 1997 Erik Troan - Use -Darchname=i386-linux - Require csh (for glob) - Use RPM_ARCH during configuration and installation for arch independence