3 %define perlthread -thread
4 %define __find_provides %{_builddir}/%{name}%{version}/find-perl-provides
5 Summary: Practical Extraction and Report Language
6 Summary(de): Praktische Extraktions- und Berichtsprache
7 Summary(fr): Practical Extraction and Report Language (Perl)
8 Summary(pl): Practical Extraction and Report Language (Perl)
9 Summary(tr): Kabuk yorumlama dili
11 Version: %{perlver}_%{perlrel}
15 Group(fr): Utilitaires/Texte
16 Group(pl): Narzêdzia/Tekst
18 Source0: ftp://ftp.perl.org/pub/perl/CPAN/src/5.0/%{name}%{version}.tar.gz
19 Patch0: perl-noroot_install.patch
20 Patch1: perl-DESTDIR.patch
21 Patch2: perl-File-Spec-0.7.patch
22 Patch3: perl-CPAN-1.50.patch
23 Patch4: perl-find-provides.patch
24 URL: http://www.perl.org/
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 Perl is an interpreted language optimized for scanning arbitrary text
30 files, extracting information from those text files, and printing
31 reports based on that information. It's also a good language for many
32 system management tasks. The language is intended to be practical
33 (easy to use, efficient, complete) rather than beautiful (tiny,
36 This version has support for threads compiled in.
39 Perl ist eine Interpreter-Sprache, die zum Durchsuchen beliebiger
40 Text- dateien, Extrahieren von Informationen aus diesen Dateien und
41 Drucken von auf diesen Informationen basierenden Berichten optimiert
42 ist. Die Sprache eignet sich außerdem für viele
43 Systemverwaltungsaufgaben. Sie ist eher praktisch (einfache
44 Anwendung,effizient, vollständig) als schön (winzig, elegant,
48 Perl est un langage interprété, optimisé pour filtrer des fichiers
49 texte, extraire des informations de ces fichiers, et imprimer des
50 rapports basés sur ces informations. C'est aussi un bon langage pour
51 de nombreuses procédures de gestion système. Ce langage se veut
52 pratique (simple à utiliser, efficace, complet) autant qu'agréable
53 (conscrit, élégant, minimal).
56 Perl jest jêzykiem przeznaczonym do skanowania plików tekstowych,
57 wyci±gania z nich informacji i drukowania raportu bazuj±cego na tych
58 informacjach. Jest równie¿ doskona³ym jêzykiem dla wielu narzêdzi do
59 nadzoru systemu. Jêzyk ten jest w zamierzeniu praktycznym (³atwym w
60 u¿yciu, efektywnym, kompletnym) bardziej ni¿ piêkny ;) (skromny,
61 elegancki, minimalny).
64 Perl, metin dosyalarýný taramak, bu metin dosyalarýndan bilgi çýkarmak
65 ve bu bilgiye dayalý raporlar hazýrlamak icin geliþtirilmiþ bir
66 yorumlamalý dildir. Ayrýca pek çok sistem yönetimi görevleri için de
67 yararlý yetenekleri vardýr. Perl, güzel (ufak, zarif, minimum)
68 olmaktan çok, pratik olmaya yönelik (kullanýmý kolay, verimli,
69 eksiksiz) olarak tasarlanmýþtýr.
72 Summary: Practical Extraction and Report Language (SUID root binary)
73 Summary(pl): Practical Extraction and Report Language (SUID root binaria)
75 Group(fr): Utilitaires/Texte
76 Group(pl): Narzêdzia/Tekst
77 Requires: %{name} = %{version}
80 Practical Extraction and Report Language (SUID root binary).
82 %description -n sperl -l pl
83 Practical Extraction and Report Language (SUID root binaria).
86 %setup -q -n %{name}%{version}
95 sed "s|FPPATH|%{_builddir}/%{name}%{version}|g" < $i.old > $i
96 chmod 755 $i; rm -f $i.old
101 cat > config.over <<EOF
102 installprefix=$RPM_BUILD_ROOT%{_prefix}
103 test -d \$installprefix || mkdir -p \$installprefix
104 test -d \$installprefix/bin || mkdir -p \$installprefix/bin
105 installarchlib=\`echo \$installarchlib | sed "s!\$prefix!\$installprefix!"\`
106 installbin=\`echo \$installbin | sed "s!\$prefix!\$installprefix!"\`
107 installman1dir=\`echo \$installman1dir | sed "s!\$prefix!\$installprefix!"\`
108 installman3dir=\`echo \$installman3dir | sed "s!\$prefix!\$installprefix!"\`
109 installprivlib=\`echo \$installprivlib | sed "s!\$prefix!\$installprefix!"\`
110 installscript=\`echo \$installscript | sed "s!\$prefix!\$installprefix!"\`
111 installsitelib=\`echo \$installsitelib | sed "s!\$prefix!\$installprefix!"\`
112 installsitearch=\`echo \$installsitearch | sed "s!\$prefix!\$installprefix!"\`
118 -Darchname=%{_target_platform} \
119 -Dprefix=%{_prefix} \
120 -Dscriptdir=%{_bindir} \
121 -Dman1dir=%{_mandir}/man1 \
122 -Dman3dir=%{_mandir}/man3 \
124 -Doptimize="$RPM_OPT_FLAGS" \
133 # Strip binaries (done now rather than at install)
135 strip {perl,suidperl,x2p/a2p}
138 rm -rf $RPM_BUILD_ROOT
139 install -d $RPM_BUILD_ROOT
142 install utils/pl2pm $RPM_BUILD_ROOT%{_bindir}/pl2pm
144 ## Generate *.ph files with a trick (based on RH).
145 # Everybody else is using it so why can't we? ;)
146 %{__make} all -f - <<EOF
147 PKGS = glibc-devel gdbm-devel gpm-devel libgr-devel libjpeg-devel \
148 libpng-devel libtiff-devel ncurses-devel popt-devel \
149 zlib-devel binutils libelf e2fsprogs-devel pam-devel pwdb-devel \
151 STDH = \$(filter /usr/include/%%, \$(shell rpm -q --queryformat '[%%{FILENAMES}\n]' \$(PKGS)))
152 STDH += \$(wildcard /usr/include/linux/*.h) \$(wildcard /usr/include/asm/*.h) \$(wildcard /usr/include/scsi/*.h)
153 GCCDIR = \$(shell gcc --print-file-name include)
154 GCCH = \$(filter \$(GCCDIR)/%%, \$(shell rpm -q --queryformat '[%%{FILENAMES}\n]' gcc))
156 LIBPATH = %{_builddir}/%{name}%{perlver}_%{perlrel}
157 PERLLIB = $RPM_BUILD_ROOT%{_libdir}/perl5/%{perlver}%{perlrel}
158 PERLBIN = $RPM_BUILD_ROOT%{_bindir}/perl
159 PERL = LD_LIBRARY_PATH=\$(LIBPATH) PERL5LIB=\$(PERLLIB) \$(PERLBIN)
160 PHDIR = \$(PERLLIB)/%{_target_platform}%{perlthread}
161 PHBIN = $RPM_BUILD_ROOT%{_bindir}/h2ph
162 H2PH = \$(PERL) \$(PHBIN) -d \$(PHDIR)/
164 all: std-headers gcc-headers
166 std-headers: \$(STDH)
167 cd /usr/include && \$(H2PH) \$(STDH:/usr/include/%%=%%)
169 gcc-headers: \$(GCCH)
170 cd \$(GCCDIR) && \$(H2PH) \$(GCCH:\$(GCCDIR)/%%=%%)
174 ( cd $RPM_BUILD_ROOT%{_libdir}/perl5/%{perlver}%{perlrel}/%{_target_platform}%{perlthread}/
177 find . -name \*.ph -exec chmod 644 {} \;
178 find . -type d -exec chmod 755 {} \;
181 mv .packlist .packlist.old
182 sed "s|$RPM_BUILD_ROOT||g" < .packlist.old > .packlist
185 mv Config.pm Config.pm.old
186 sed "s|$RPM_BUILD_ROOT||g" < Config.pm.old > Config.pm
187 rm -f Config.pm.old )
189 gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man*/* \
192 find $RPM_BUILD_ROOT%{_libdir}/perl5 -name \*.so -exec strip --strip-unneeded {} \;
195 rm -rf $RPM_BUILD_ROOT
198 %defattr(644,root,root,755)
199 %doc README.gz Change*
201 %attr(755,root,root) %{_bindir}/a2p
202 %attr(755,root,root) %{_bindir}/c2ph
203 %attr(755,root,root) %{_bindir}/find2perl
204 %attr(755,root,root) %{_bindir}/h2ph
205 %attr(755,root,root) %{_bindir}/h2xs
206 %attr(755,root,root) %{_bindir}/perl
207 %attr(755,root,root) %{_bindir}/perl%{perlver}%{perlrel}
208 %attr(755,root,root) %{_bindir}/perlbug
209 %attr(755,root,root) %{_bindir}/perlcc
210 %attr(755,root,root) %{_bindir}/perldoc
211 %attr(755,root,root) %{_bindir}/pl2pm
212 %attr(755,root,root) %{_bindir}/pod2html
213 %attr(755,root,root) %{_bindir}/pod2latex
214 %attr(755,root,root) %{_bindir}/pod2man
215 %attr(755,root,root) %{_bindir}/pod2text
216 %attr(755,root,root) %{_bindir}/pstruct
217 %attr(755,root,root) %{_bindir}/s2p
218 %attr(755,root,root) %{_bindir}/splain
220 %dir %{_libdir}/perl5
221 %attr( - ,root,root) %{_libdir}/perl5/*
222 #%dir %{_libdir}/site_perl
223 #%attr( - ,root,root) %{_libdir}/site_perl/*
227 %defattr(644,root,root,755)
228 %attr(4755,root,root) %{_bindir}/sperl%{perlver}%{perlrel}
229 %attr(4755,root,root) %{_bindir}/suidperl