X-Git-Url: https://git.pld-linux.org/?a=blobdiff_plain;f=perl.spec;h=061919a856825aabf26342cfd1594a4a920f35a0;hb=7da49777709a0680068b7bb1ff37cde77a53cfbc;hp=4ad9cd79b4296371d2e6376c88a66f450f1befb9;hpb=e1b8b3c97e71cc9d3d99d41309956c20e63a5d2f;p=packages%2Fperl.git diff --git a/perl.spec b/perl.spec index 4ad9cd7..061919a 100644 --- a/perl.spec +++ b/perl.spec @@ -1,68 +1,121 @@ -%define perlver 5.005 -%define perlrel 03 -%define perlthread -thread - +%define __find_provides %{_builddir}/%{name}-%{version}/find-perl-provides +%define perlthread %{?bcond_on_perl_threads:-thread-multi} Summary: Practical Extraction and Report Language Summary(de): Praktische Extraktions- und Berichtsprache Summary(fr): Practical Extraction and Report Language (Perl) Summary(pl): Practical Extraction and Report Language (Perl) Summary(tr): Kabuk yorumlama dili Name: perl -Version: %{perlver}_%{perlrel} +Version: 5.6.1 Release: 4 -Copyright: GPL -Group: Utilities/Text -Group(pl): Narzêdzia/Tekst -Source: ftp://ftp.perl.org/pub/perl/CPAN/src/5.0/%{name}%{version}.tar.gz -Patch0: perl-noroot_install.patch -Patch1: perl-db1.patch +Epoch: 1 +License: GPL +Group: Applications/Text +Group(de): Applikationen/Text +Group(fr): Utilitaires/Texte +Group(pl): Aplikacje/Tekst +Source0: ftp://ftp.perl.org/pub/perl/CPAN/src/%{name}-%{version}.tar.gz +Patch0: %{name}-noroot_install.patch +Patch1: %{name}-nodb.patch +Patch2: %{name}-DESTDIR.patch +Patch3: %{name}-find-provides.patch +Patch4: %{name}-prereq.patch +Patch5: %{name}-syslog.patch +Patch6: %{name}-CGI-upload-tmpdir.patch +Patch7: %{name}-LD_RUN_PATH.patch +Patch8: %{name}-errno_h-parsing.patch +Patch9: %{name}-use-LD_PRELOAD-for-libperl.so.patch +Patch10: %{name}-sitearch.patch +Patch11: %{name}-soname.patch URL: http://www.perl.org/ -Requires: csh -Buildroot: /tmp/%{name}-%{version}-root +#Requires: csh +Provides: perl-ANSIColor +Provides: perl-Devel-Peek +Provides: perl-DProf +Provides: perl-PodParser +Provides: perl-CGI +Obsoletes: perl-ANSIColor +Obsoletes: perl-Devel-Peek +Obsoletes: perl-DProf +Obsoletes: perl-PodParser +Obsoletes: perl-CGI +Prereq: %{name}-lib = %{version} +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description Perl is an interpreted language optimized for scanning arbitrary text -files, extracting information from those text files, and printing reports -based on that information. It's also a good language for many system -management tasks. The language is intended to be practical (easy to use, -efficient, complete) rather than beautiful (tiny, elegant, minimal). +files, extracting information from those text files, and printing +reports based on that information. It's also a good language for many +system management tasks. The language is intended to be practical +(easy to use, efficient, complete) rather than beautiful (tiny, +elegant, minimal). -This version has support for threads compiled in. +#This version has support for threads compiled in. %description -l de -Perl ist eine Interpreter-Sprache, die zum Durchsuchen beliebiger Text- -dateien, Extrahieren von Informationen aus diesen Dateien und Drucken von -auf diesen Informationen basierenden Berichten optimiert ist. Die Sprache -eignet sich außerdem für viele Systemverwaltungsaufgaben. Sie ist eher -praktisch (einfache Anwendung,effizient, vollständig) als schön (winzig, -elegant, minimal). +Perl ist eine Interpreter-Sprache, die zum Durchsuchen beliebiger +Text- dateien, Extrahieren von Informationen aus diesen Dateien und +Drucken von auf diesen Informationen basierenden Berichten optimiert +ist. Die Sprache eignet sich außerdem für viele +Systemverwaltungsaufgaben. Sie ist eher praktisch (einfache +Anwendung,effizient, vollständig) als schön (winzig, elegant, +minimal). %description -l fr -Perl est un langage interprété, optimisé pour filtrer des fichiers texte, -extraire des informations de ces fichiers, et imprimer des rapports basés -sur ces informations. C'est aussi un bon langage pour de nombreuses procédures -de gestion système. Ce langage se veut pratique (simple à utiliser, efficace, -complet) autant qu'agréable (conscrit, élégant, minimal). +Perl est un langage interprété, optimisé pour filtrer des fichiers +texte, extraire des informations de ces fichiers, et imprimer des +rapports basés sur ces informations. C'est aussi un bon langage pour +de nombreuses procédures de gestion système. Ce langage se veut +pratique (simple à utiliser, efficace, complet) autant qu'agréable +(conscrit, élégant, minimal). %description -l pl -Perl jest jêzykiem przeznaczonym do skanowania plików tekstowych, wyci±gania -z nich informacji i drukowania raportu bazuj±cego na tych informacjach. Jest -równie¿ doskona³ym jêzykiem dla wielu narzêdzi do nadzoru systemu. Jêzyk ten -jest w zamierzeniu praktycznym (³atwym w u¿yciu, efektywnym, kompletnym) -bardziej ni¿ piêkny ;) (skromny, elegancki, minimalny). +Perl jest jêzykiem przeznaczonym do skanowania plików tekstowych, +wyci±gania z nich informacji i drukowania raportu bazuj±cego na tych +informacjach. Jest równie¿ doskona³ym jêzykiem dla wielu narzêdzi do +nadzoru systemu. Jêzyk ten jest w zamierzeniu praktycznym (³atwym w +u¿yciu, efektywnym, kompletnym) bardziej ni¿ piêkny ;) (skromny, +elegancki, minimalny). %description -l tr -Perl, metin dosyalarýný taramak, bu metin dosyalarýndan bilgi çýkarmak ve -bu bilgiye dayalý raporlar hazýrlamak icin geliþtirilmiþ bir yorumlamalý -dildir. Ayrýca pek çok sistem yönetimi görevleri için de yararlý yetenekleri -vardýr. Perl, güzel (ufak, zarif, minimum) olmaktan çok, pratik olmaya -yönelik (kullanýmý kolay, verimli, eksiksiz) olarak tasarlanmýþtýr. +Perl, metin dosyalarýný taramak, bu metin dosyalarýndan bilgi çýkarmak +ve bu bilgiye dayalý raporlar hazýrlamak icin geliþtirilmiþ bir +yorumlamalý dildir. Ayrýca pek çok sistem yönetimi görevleri için de +yararlý yetenekleri vardýr. Perl, güzel (ufak, zarif, minimum) +olmaktan çok, pratik olmaya yönelik (kullanýmý kolay, verimli, +eksiksiz) olarak tasarlanmýþtýr. + +%package lib +Summary: Shared Perl library and other version dependant files +Group: Applications/Text + +%description lib +Provides a shared library for programs which embed a Perl interpreter. + +%package lib-devel +Summary: Shared Perl library - development files +Group: Applications/Text +Requires: %{name}-lib = %{version} + +%description lib-devel +Files for developing applications which embed a Perl interpreter. + +%package doc +Summary: Perl documentation +Group: Applications/Text +Requires: %{name} = %{version} + +%description doc +Perl manual pages and POD docs. If you are writing Perl programs, you +almost certainly need this. -%package -n sperl +%package -n sperl Summary: Practical Extraction and Report Language (SUID root binary) Summary(pl): Practical Extraction and Report Language (SUID root binaria) -Group: Utilities/Text -Group(pl): Narzêdzia/Tekst +Group: Applications/Text +Group(de): Applikationen/Text +Group(fr): Utilitaires/Texte +Group(pl): Aplikacje/Tekst Requires: %{name} = %{version} %description -n sperl @@ -71,17 +124,55 @@ Practical Extraction and Report Language (SUID root binary). %description -n sperl -l pl Practical Extraction and Report Language (SUID root binaria). +%package minimal +Summary: Practical Extraction and Report Language - base files +Summary(pl): Practical Extraction and Report Language - pliki podstawowe +Group: Applications/Text +Group(de): Applikationen/Text +Group(fr): Utilitaires/Texte +Group(pl): Aplikacje/Tekst +Prereq: %{name}-lib = %{version} +Provides: %{name} = %{version} +Conflicts: %{name} + +%description minimal +Practical Extraction and Report Language - base files, usefull +on embedded systems. + +%description minimal -l pl +Practical Extraction and Report Language - pliki podstawowe, przydatne +dla systemów osadzonych. + + %prep -%setup -q -n %{name}%{version} +%setup -q %patch0 -p1 %patch1 -p1 +%patch2 -p1 +%patch3 -p1 +%patch4 -p1 +%patch5 -p1 +%patch6 -p1 +%patch7 -p1 +%patch8 -p1 +%patch9 -p1 +%patch10 -p1 +%patch11 -p1 + +for i in find-* ; do + mv -f $i $i.old + sed "s|FPPATH|%{_builddir}/%{name}-%{version}|g" < $i.old > $i + chmod 755 $i; rm -f $i.old +done %build # this is gross +# i added more ugly stuff here +# i know that is ugly way to set that but i dont know how do it better cat > config.over < Makefile -# Strip binaries (done now rather than at install) - -strip {perl,suidperl,x2p/a2p} +%{__make} %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT -make install -install utils/pl2pm $RPM_BUILD_ROOT/usr/bin/pl2pm +%{__make} install +install utils/pl2pm $RPM_BUILD_ROOT%{_bindir}/pl2pm + +## Generate *.ph files with a trick (based on RH). + +%{__make} all -f - < .packlist -rm -f .packlist.old +gcc-headers: \$(GCCH) + cd \$(GCCDIR) && \$(H2PH) \$(GCCH:\$(GCCDIR)/%%=%%) -mv Config.pm Config.pm.old -sed "s|$RPM_BUILD_ROOT||g" < Config.pm.old > Config.pm -rm -f Config.pm.old ) +EOF + +## Fix paths +( +cd $RPM_BUILD_ROOT%{_libdir}/perl5/%{version}/%{_target_platform}%{perlthread} +sed -e "s|$RPM_BUILD_ROOT||g" < Config.pm > Config.pm.new +mv -f Config.pm.new Config.pm +sed -e "s|$RPM_BUILD_ROOT||g" < .packlist > .packlist.new +mv -f .packlist.new .packlist +) + +## Fix permissions +find $RPM_BUILD_ROOT%{_libdir}/perl5 -name \*.ph -exec chmod 444 {} \; +find $RPM_BUILD_ROOT%{_libdir}/perl5 -type d -exec chmod 755 {} \; -gzip -9fn $RPM_BUILD_ROOT/usr/share/man/man*/* \ - README Change* +## Fix lib +rm -f $RPM_BUILD_ROOT%{_libdir}/perl5/%{version}/*/CORE/libperl.so* +install libperl.so.%{version} $RPM_BUILD_ROOT%{_libdir}/ +ln -sf libperl.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libperl.so -find $RPM_BUILD_ROOT/usr/lib/perl5 -name \*.so -exec strip --strip-unneeded {} \; +gzip -9nf README Change* %clean rm -rf $RPM_BUILD_ROOT +%post lib -p /sbin/ldconfig +%postun lib -p /sbin/ldconfig + %files %defattr(644,root,root,755) %doc README.gz Change* -%attr(755,root,root) /usr/bin/a2p -%attr(755,root,root) /usr/bin/c2ph -%attr(755,root,root) /usr/bin/find2perl -%attr(755,root,root) /usr/bin/h2ph -%attr(755,root,root) /usr/bin/h2xs -%attr(755,root,root) /usr/bin/perl -%attr(755,root,root) /usr/bin/perl%{perlver}%{perlrel} -%attr(755,root,root) /usr/bin/perlbug -%attr(755,root,root) /usr/bin/perlcc -%attr(755,root,root) /usr/bin/perldoc -%attr(755,root,root) /usr/bin/pl2pm -%attr(755,root,root) /usr/bin/pod2html -%attr(755,root,root) /usr/bin/pod2latex -%attr(755,root,root) /usr/bin/pod2man -%attr(755,root,root) /usr/bin/pod2text -%attr(755,root,root) /usr/bin/pstruct -%attr(755,root,root) /usr/bin/s2p -%attr(755,root,root) /usr/bin/splain - -%dir /usr/lib/perl5 -%attr( - ,root,root) /usr/lib/perl5/* -%attr(644,root,root) /usr/share/man/man[13]/* +%attr(755,root,root) %{_bindir}/a2p +%attr(755,root,root) %{_bindir}/c2ph +%attr(755,root,root) %{_bindir}/find2perl +%attr(755,root,root) %{_bindir}/h2ph +%attr(755,root,root) %{_bindir}/h2xs +%attr(755,root,root) %{_bindir}/perl +%attr(755,root,root) %{_bindir}/perl%{version} +%attr(755,root,root) %{_bindir}/perlbug +%attr(755,root,root) %{_bindir}/perlcc +%attr(755,root,root) %{_bindir}/pl2pm +%attr(755,root,root) %{_bindir}/pod2html +%attr(755,root,root) %{_bindir}/pod2latex +%attr(755,root,root) %{_bindir}/pod2man +%attr(755,root,root) %{_bindir}/pod2text +%attr(755,root,root) %{_bindir}/podselect +%attr(755,root,root) %{_bindir}/pstruct +%attr(755,root,root) %{_bindir}/s2p +%attr(755,root,root) %{_bindir}/splain + +%dir %{_libdir}/perl5 +%dir %{_libdir}/perl5/%{version} +%dir %{_libdir}/perl5/site_perl +%dir %{_libdir}/perl5/site_perl/%{_target_platform}* +%dir %{_libdir}/perl5/site_perl/%{_target_platform}*/%{version} + +%attr( - ,root,root) %{_libdir}/perl5/%{version}/[A-Z]* +%attr( - ,root,root) %{_libdir}/perl5/%{version}/[a-z]*.* +%attr( - ,root,root) %{_libdir}/perl5/%{version}/auto +%attr( - ,root,root) %{_libdir}/perl5/%{version}/%{_target_platform}* +%attr( - ,root,root) %{_libdir}/perl5/%{version}/unicode +%attr( - ,root,root) %{_libdir}/perl5/%{version}/warnings + +%files lib +%defattr(644,root,root,755) +%attr(755,root,root) %{_libdir}/lib*.so.*.*.* + +%files lib-devel +%defattr(644,root,root,755) +%attr(755,root,root) %{_libdir}/lib*.so + +%files doc +%defattr(644,root,root,755) +%attr(755,root,root) %{_bindir}/perldoc +%{_mandir}/man[13]/* +%{_libdir}/perl5/%{version}/pod/* %files -n sperl -%attr(4755,root,root) /usr/bin/sperl%{perlver}%{perlrel} -%attr(4755,root,root) /usr/bin/suidperl - -%changelog -* Wed Apr 28 1999 Artur Frysiak - [5.005_03-3] -- added db1 patch from RH 6.0 - -* Tue Apr 20 1999 Artur Frysiak - [5.005_03-2] -- updated to 5.005_03 -- changed source URL -- added -Dman3dir=/usr/man/man3 -Dman3ext=3pm -Duseshrplib to Configure -- corrected .packlist -- changed --strip-debug to --strip-unneeded -- gzipped %doc (instead bzipping2) -- commpiled on rpm 3 - -* Mon Oct 26 1998 Tomasz K³oczko - [5.005_02-2] -- added using $RPM_OPT_FLAGS during compile, -- added stripping modules, -- added URL, -- added sperl subpackage with suid perl binaries. - -* Tue Sep 15 1998 Wojtek ¦lusarczyk - [5.005_02-1] -- updated to 5.005_02 - (based on Ian Macdonald spec files), -- install -d instead mkdir -p, -- added %defattr, but It's still unable to build from non root's account, -- man3 subdirectory moved to /usr/man/man3, -- minor modifications of spec file. - -* Mon Jun 15 1998 Wojtek ¦lusarczyk - [5.005_01-1] -- added pl translation, -- moved %changelog to end of spec, -- removed all old patches. -- start at RH spec file. +%defattr(644,root,root,755) +%attr(4755,root,root) %{_bindir}/sperl%{version} +%attr(4755,root,root) %{_bindir}/suidperl + +%files minimal +%defattr(644,root,root,755) +%attr(755,root,root) %{_bindir}/perl +%attr(755,root,root) %{_bindir}/perl%{version} + +%dir %{_libdir}/perl5 +%dir %{_libdir}/perl5/%{version} +%dir %{_libdir}/perl5/site_perl +%dir %{_libdir}/perl5/site_perl/%{_target_platform}* +%dir %{_libdir}/perl5/site_perl/%{_target_platform}*/%{version} + +%{_libdir}/perl5/%{version}/AutoLoader.pm +%{_libdir}/perl5/%{version}/Carp.pm +%{_libdir}/perl5/%{version}/Carp/Heavy.pm +%{_libdir}/perl5/%{version}/Cwd.pm +%{_libdir}/perl5/%{version}/Exporter.pm +%{_libdir}/perl5/%{version}/Exporter/Heavy.pm +%{_libdir}/perl5/%{version}/File/Spec.pm +%{_libdir}/perl5/%{version}/File/Spec/Unix.pm +%{_libdir}/perl5/%{version}/FileHandle.pm +%{_libdir}/perl5/%{version}/IO/Socket/INET.pm +%{_libdir}/perl5/%{version}/IO/Socket/UNIX.pm +%{_libdir}/perl5/%{version}/IPC/Open2.pm +%{_libdir}/perl5/%{version}/IPC/Open3.pm +%{_libdir}/perl5/%{version}/SelectSaver.pm +%{_libdir}/perl5/%{version}/Symbol.pm +%{_libdir}/perl5/%{version}/Text/Tabs.pm +%{_libdir}/perl5/%{version}/Text/Wrap.pm +%{_libdir}/perl5/%{version}/attributes.pm +%{_libdir}/perl5/%{version}/base.pm +%{_libdir}/perl5/%{version}/constant.pm +%{_libdir}/perl5/%{version}/fields.pm +%{_libdir}/perl5/%{version}/integer.pm +%{_libdir}/perl5/%{version}/lib.pm +%{_libdir}/perl5/%{version}/locale.pm +%{_libdir}/perl5/%{version}/overload.pm +%{_libdir}/perl5/%{version}/strict.pm +%{_libdir}/perl5/%{version}/vars.pm +%{_libdir}/perl5/%{version}/warnings.pm +%{_libdir}/perl5/%{version}/warnings/register.pm +%{_libdir}/perl5/%{version}/%{_target_platform}*/Config.pm +%{_libdir}/perl5/%{version}/%{_target_platform}*/Data/Dumper.pm +%{_libdir}/perl5/%{version}/%{_target_platform}*/DynaLoader.pm +%{_libdir}/perl5/%{version}/%{_target_platform}*/Errno.pm +%{_libdir}/perl5/%{version}/%{_target_platform}*/Fcntl.pm +%{_libdir}/perl5/%{version}/%{_target_platform}*/IO.pm +%{_libdir}/perl5/%{version}/%{_target_platform}*/IO/*.pm +%{_libdir}/perl5/%{version}/%{_target_platform}*/POSIX.pm +%{_libdir}/perl5/%{version}/%{_target_platform}*/Socket.pm +%{_libdir}/perl5/%{version}/%{_target_platform}*/XSLoader.pm +%attr( - , root, root) %{_libdir}/perl5/%{version}/%{_target_platform}*/auto/Data/Dumper +%attr( - , root, root) %{_libdir}/perl5/%{version}/%{_target_platform}*/auto/DynaLoader +%attr( - , root, root) %{_libdir}/perl5/%{version}/%{_target_platform}*/auto/Fcntl +%attr( - , root, root) %{_libdir}/perl5/%{version}/%{_target_platform}*/auto/IO +%attr( - , root, root) %{_libdir}/perl5/%{version}/%{_target_platform}*/auto/POSIX +%attr( - , root, root) %{_libdir}/perl5/%{version}/%{_target_platform}*/auto/Socket