X-Git-Url: https://git.pld-linux.org/?a=blobdiff_plain;f=perl.spec;h=7e6546befea62c0b29a430fcac2d68d03a77c402;hb=d6fc75f5bf0a30a745a765635adef2c3e350caaa;hp=a880fa21d2ca4fc9b3dda0b1ca1764786264d32b;hpb=c627fc9b8647d08f973114e0f36384e5c27b411a;p=packages%2Fperl.git diff --git a/perl.spec b/perl.spec index a880fa2..7e6546b 100644 --- a/perl.spec +++ b/perl.spec @@ -1,67 +1,113 @@ +%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 -%define perlver 5.005 -%define perlrel 02 -%define perlthread -thread -Version: %{perlver}_%{perlrel} -Release: 2 -Copyright: GPL -Group: Utilities/Text -Group(pl): Narzêdzia/Tekst -####### ftp://ftp.funet.fi/pub/languages/perl/CPAN/src/5.0 -Source: %{name}%{version}.tar.gz -Patch0: perl-noroot_install.patch +Version: 5.6.1 +Release: 6 +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 +Patch12: %{name}-db3.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: Libraries + +%description lib +Provides a shared library for programs which embed a Perl interpreter. -%package -n sperl +%package devel +Summary: Perl development files +Group: Development/Libraries +Requires: %{name}-lib = %{version} + +%description devel +Files for developing applications which embed a Perl interpreter. + +%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 @@ -70,16 +116,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} +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} -%patch -p1 +%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 +%patch12 -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 + +%{__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 -bzip2 -9 README Change* +## Generate *.ph files with a trick (based on RH). -(cd /usr/include ; -PERL5LIB=$RPM_BUILD_ROOT/usr/lib/perl5 $RPM_BUILD_ROOT/usr/bin/perl \ -$RPM_BUILD_ROOT/usr/lib/perl5/%{perlver}%{perlrel}/${RPM_ARCH}-linux%{perlthread} \ -$RPM_BUILD_ROOT/usr/bin/h2ph \ --d $RPM_BUILD_ROOT/usr/lib/perl5/${RPM_ARCH}-linux/%{perlver}%{perlrel}/ \ -*.h sys/*.h linux/*.h asm/*.h net/*.h netinet/*.h arpa/*.h ) +%{__make} all -f - < Config.pm -rm -f Config.pm.old +all: std-headers gcc-headers -mv $RPM_BUILD_ROOT/usr/lib/perl5/5.00502/man/man3 $RPM_BUILD_ROOT/usr/man +std-headers: \$(STDH) + cd /usr/include && \$(H2PH) \$(STDH:/usr/include/%%=%%) -gzip -9fn $RPM_BUILD_ROOT/usr/man/man3 +gcc-headers: \$(GCCH) + cd \$(GCCDIR) && \$(H2PH) \$(GCCH:\$(GCCDIR)/%%=%%) -find $RPM_BUILD_ROOT/usr/lib/perl5 -name \*.so -exec strip --strip-debug {} \; +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 {} \; + +## 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 + +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.bz2 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/perl5.00502 -%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 - -%attr(-,root,root,755) /usr/lib/perl5 -/usr/man/man[13]/* +%doc README.gz Change* + +%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}/perldoc +%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 + +%{_mandir}/man1/* + +%files lib +%defattr(644,root,root,755) +%attr(755,root,root) %{_libdir}/lib*.so.*.*.* + +%files devel +%defattr(644,root,root,755) +%attr(755,root,root) %{_libdir}/lib*.so +%{_mandir}/man3/* %files -n sperl -%attr(4711, root, root) /usr/bin/sperl5.00502 -%attr(4711, root, root) /usr/bin/suidperl - -%changelog -* 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}/Cwd.pm +%{_libdir}/perl5/%{version}/DirHandle.pm +%{_libdir}/perl5/%{version}/Exporter.pm +%{_libdir}/perl5/%{version}/File/Basename.pm +%{_libdir}/perl5/%{version}/File/Find.pm +%{_libdir}/perl5/%{version}/File/Path.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}/Time/Local.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}*/DynaLoader.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 +%{_libdir}/perl5/%{version}/%{_target_platform}*/auto/DynaLoader/dl_findfile.al +%{_libdir}/perl5/%{version}/%{_target_platform}*/auto/IO/IO.so +%{_libdir}/perl5/%{version}/%{_target_platform}*/auto/POSIX/POSIX.so +%{_libdir}/perl5/%{version}/%{_target_platform}*/auto/POSIX/tmpfile.al +%{_libdir}/perl5/%{version}/%{_target_platform}*/auto/Socket/Socket.so + +%dir %{_libdir}/perl5/%{version}/File +%dir %{_libdir}/perl5/%{version}/File/Spec +%dir %{_libdir}/perl5/%{version}/IO +%dir %{_libdir}/perl5/%{version}/IO/Socket +%dir %{_libdir}/perl5/%{version}/IPC +%dir %{_libdir}/perl5/%{version}/Text +%dir %{_libdir}/perl5/%{version}/Time +%dir %{_libdir}/perl5/%{version}/warnings +%dir %{_libdir}/perl5/%{version}/%{_target_platform}* +%dir %{_libdir}/perl5/%{version}/%{_target_platform}*/IO +%dir %{_libdir}/perl5/%{version}/%{_target_platform}*/auto +%dir %{_libdir}/perl5/%{version}/%{_target_platform}*/auto/DynaLoader +%dir %{_libdir}/perl5/%{version}/%{_target_platform}*/auto/IO +%dir %{_libdir}/perl5/%{version}/%{_target_platform}*/auto/POSIX +%dir %{_libdir}/perl5/%{version}/%{_target_platform}*/auto/Socket