3 %define perlthread -thread
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(pl): Narzêdzia/Tekst
16 Source: ftp://ftp.perl.org/pub/perl/CPAN/src/5.0/%{name}%{version}.tar.gz
17 Patch0: perl-noroot_install.patch
18 Patch1: perl-db1.patch
19 URL: http://www.perl.org/
21 Buildroot: /tmp/%{name}-%{version}-root
24 Perl is an interpreted language optimized for scanning arbitrary text
25 files, extracting information from those text files, and printing reports
26 based on that information. It's also a good language for many system
27 management tasks. The language is intended to be practical (easy to use,
28 efficient, complete) rather than beautiful (tiny, elegant, minimal).
30 This version has support for threads compiled in.
33 Perl ist eine Interpreter-Sprache, die zum Durchsuchen beliebiger Text-
34 dateien, Extrahieren von Informationen aus diesen Dateien und Drucken von
35 auf diesen Informationen basierenden Berichten optimiert ist. Die Sprache
36 eignet sich außerdem für viele Systemverwaltungsaufgaben. Sie ist eher
37 praktisch (einfache Anwendung,effizient, vollständig) als schön (winzig,
41 Perl est un langage interprété, optimisé pour filtrer des fichiers texte,
42 extraire des informations de ces fichiers, et imprimer des rapports basés
43 sur ces informations. C'est aussi un bon langage pour de nombreuses procédures
44 de gestion système. Ce langage se veut pratique (simple à utiliser, efficace,
45 complet) autant qu'agréable (conscrit, élégant, minimal).
48 Perl jest jêzykiem przeznaczonym do skanowania plików tekstowych, wyci±gania
49 z nich informacji i drukowania raportu bazuj±cego na tych informacjach. Jest
50 równie¿ doskona³ym jêzykiem dla wielu narzêdzi do nadzoru systemu. Jêzyk ten
51 jest w zamierzeniu praktycznym (³atwym w u¿yciu, efektywnym, kompletnym)
52 bardziej ni¿ piêkny ;) (skromny, elegancki, minimalny).
55 Perl, metin dosyalarýný taramak, bu metin dosyalarýndan bilgi çýkarmak ve
56 bu bilgiye dayalý raporlar hazýrlamak icin geliþtirilmiþ bir yorumlamalý
57 dildir. Ayrýca pek çok sistem yönetimi görevleri için de yararlý yetenekleri
58 vardýr. Perl, güzel (ufak, zarif, minimum) olmaktan çok, pratik olmaya
59 yönelik (kullanýmý kolay, verimli, eksiksiz) olarak tasarlanmýþtýr.
62 Summary: Practical Extraction and Report Language (SUID root binary)
63 Summary(pl): Practical Extraction and Report Language (SUID root binaria)
65 Group(pl): Narzêdzia/Tekst
66 Requires: %{name} = %{version}
69 Practical Extraction and Report Language (SUID root binary).
71 %description -n sperl -l pl
72 Practical Extraction and Report Language (SUID root binaria).
75 %setup -q -n %{name}%{version}
81 cat > config.over <<EOF
82 installprefix=$RPM_BUILD_ROOT/usr
83 test -d \$installprefix || mkdir \$installprefix
84 test -d \$installprefix/bin || mkdir \$installprefix/bin
85 installarchlib=\`echo \$installarchlib | sed "s!\$prefix!\$installprefix!"\`
86 installbin=\`echo \$installbin | sed "s!\$prefix!\$installprefix!"\`
87 installman1dir=\`echo \$installman1dir | sed "s!\$prefix!\$installprefix!"\`
88 installman3dir=\`echo \$installman3dir | sed "s!\$prefix!\$installprefix!"\`
89 installprivlib=\`echo \$installprivlib | sed "s!\$prefix!\$installprefix!"\`
90 installscript=\`echo \$installscript | sed "s!\$prefix!\$installprefix!"\`
91 installsitelib=\`echo \$installsitelib | sed "s!\$prefix!\$installprefix!"\`
92 installsitearch=\`echo \$installsitearch | sed "s!\$prefix!\$installprefix!"\`
97 -Darchname=%{_target} \
99 -Dman1dir=/usr/share/man/man1 \
100 -Dman3dir=/usr/share/man/man3 \
102 -Doptimize="$RPM_OPT_FLAGS" \
111 # Strip binaries (done now rather than at install)
113 strip {perl,suidperl,x2p/a2p}
116 rm -rf $RPM_BUILD_ROOT
117 install -d $RPM_BUILD_ROOT
120 install utils/pl2pm $RPM_BUILD_ROOT/usr/bin/pl2pm
124 PERL5LIB=$RPM_BUILD_ROOT/usr/lib/perl5 $RPM_BUILD_ROOT/usr/bin/perl \
125 $RPM_BUILD_ROOT/usr/lib/perl5/%{perlver}%{perlrel}/%{_target}%{perlthread} \
126 $RPM_BUILD_ROOT/usr/bin/h2ph \
127 -d $RPM_BUILD_ROOT/usr/lib/perl5/%{_target}/%{perlver}%{perlrel}/ \
128 *.h sys/*.h linux/*.h asm/*.h net/*.h netinet/*.h arpa/*.h )
130 ( cd $RPM_BUILD_ROOT/usr/lib/perl5/%{perlver}%{perlrel}/%{_target}%{perlthread}/
132 mv .packlist .packlist.old
133 sed "s|$RPM_BUILD_ROOT||g" < .packlist.old > .packlist
136 mv Config.pm Config.pm.old
137 sed "s|$RPM_BUILD_ROOT||g" < Config.pm.old > Config.pm
138 rm -f Config.pm.old )
140 gzip -9fn $RPM_BUILD_ROOT/usr/share/man/man*/* \
143 find $RPM_BUILD_ROOT/usr/lib/perl5 -name \*.so -exec strip --strip-unneeded {} \;
146 rm -rf $RPM_BUILD_ROOT
149 %defattr(644,root,root,755)
150 %doc README.gz Change*
152 %attr(755,root,root) /usr/bin/a2p
153 %attr(755,root,root) /usr/bin/c2ph
154 %attr(755,root,root) /usr/bin/find2perl
155 %attr(755,root,root) /usr/bin/h2ph
156 %attr(755,root,root) /usr/bin/h2xs
157 %attr(755,root,root) /usr/bin/perl
158 %attr(755,root,root) /usr/bin/perl%{perlver}%{perlrel}
159 %attr(755,root,root) /usr/bin/perlbug
160 %attr(755,root,root) /usr/bin/perlcc
161 %attr(755,root,root) /usr/bin/perldoc
162 %attr(755,root,root) /usr/bin/pl2pm
163 %attr(755,root,root) /usr/bin/pod2html
164 %attr(755,root,root) /usr/bin/pod2latex
165 %attr(755,root,root) /usr/bin/pod2man
166 %attr(755,root,root) /usr/bin/pod2text
167 %attr(755,root,root) /usr/bin/pstruct
168 %attr(755,root,root) /usr/bin/s2p
169 %attr(755,root,root) /usr/bin/splain
172 %attr( - ,root,root) /usr/lib/perl5/*
173 /usr/share/man/man[13]/*
176 %attr(4755,root,root) /usr/bin/sperl%{perlver}%{perlrel}
177 %attr(4755,root,root) /usr/bin/suidperl
180 * Sun May 9 1999 Piotr Czerwiñski <pius@pld.org.pl>
182 - FHS 2.0 compliant changes.
184 * Wed Apr 28 1999 Artur Frysiak <wiget@pld.org.pl>
186 - added db1 patch from RH 6.0
188 * Tue Apr 20 1999 Artur Frysiak <wiget@pld.org.pl>
190 - updated to 5.005_03
192 - added -Dman3dir=/usr/man/man3 -Dman3ext=3pm -Duseshrplib to Configure
193 - corrected .packlist
194 - changed --strip-debug to --strip-unneeded
195 - gzipped %doc (instead bzipping2)
198 * Mon Oct 26 1998 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
200 - added using $RPM_OPT_FLAGS during compile,
201 - added stripping modules,
203 - added sperl subpackage with suid perl binaries.
205 * Tue Sep 15 1998 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
207 - updated to 5.005_02
208 (based on Ian Macdonald <ianmacd@xs4all.nl> spec files),
209 - install -d instead mkdir -p,
210 - added %defattr, but It's still unable to build from non root's account,
211 - man3 subdirectory moved to /usr/man/man3,
212 - minor modifications of spec file.
214 * Mon Jun 15 1998 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
216 - added pl translation,
217 - moved %changelog to end of spec,
218 - removed all old patches.
219 - start at RH spec file.