%define __find_provides %{_builddir}/%{name}-%{version}/find-perl-provides %define perlthread %{!?bcond_off_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: 5.6.0 Release: 14 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}-CPAN-1.58.patch Patch4: %{name}-find-provides.patch Patch5: %{name}-prereq.patch Patch6: %{name}-syslog.patch Patch7: %{name}-CGI-upload-tmpdir.patch Patch8: %{name}-LD_RUN_PATH.patch Patch9: %{name}-errno_h-parsing.patch Patch10: %{name}-use-LD_PRELOAD-for-libperl.so.patch Patch11: %{name}-fix-typo-in-syslog.patch Patch12: %{name}-fix-for-coredump-bug-20000607.003.patch URL: http://www.perl.org/ #Requires: csh Provides: perl-ANSIColor Provides: perl-Devel-Peek Provides: perl-DProf Provides: perl-PodParser Obsoletes: perl-ANSIColor Obsoletes: perl-Devel-Peek Obsoletes: perl-DProf Obsoletes: perl-PodParser 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). 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). %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). %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). %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. %package -n sperl Summary: Practical Extraction and Report Language (SUID root binary) Summary(pl): Practical Extraction and Report Language (SUID root binaria) Group: Applications/Text Group(de): Applikationen/Text Group(fr): Utilitaires/Texte Group(pl): Aplikacje/Tekst Requires: %{name} = %{version} %description -n sperl Practical Extraction and Report Language (SUID root binary). %description -n sperl -l pl Practical Extraction and Report Language (SUID root binaria). %prep %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 cat > config.over < 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 -9nf README Change* %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %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 %attr( - ,root,root) %{_libdir}/perl5/* #%dir %{_libdir}/site_perl #%attr( - ,root,root) %{_libdir}/site_perl/* %{_mandir}/man[13]/* %files -n sperl %defattr(644,root,root,755) %attr(4755,root,root) %{_bindir}/sperl%{version} %attr(4755,root,root) %{_bindir}/suidperl