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(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-DESTDIR.patch
19 Patch2: perl-File-Spec-0.7.patch
20 Patch3: perl-CPAN-1.50.patch
21 Patch4: perl-find-provides.patch
22 URL: http://www.perl.org/
24 Buildroot: /tmp/%{name}-%{version}-root
27 Perl is an interpreted language optimized for scanning arbitrary text
28 files, extracting information from those text files, and printing reports
29 based on that information. It's also a good language for many system
30 management tasks. The language is intended to be practical (easy to use,
31 efficient, complete) rather than beautiful (tiny, elegant, minimal).
33 This version has support for threads compiled in.
36 Perl ist eine Interpreter-Sprache, die zum Durchsuchen beliebiger Text-
37 dateien, Extrahieren von Informationen aus diesen Dateien und Drucken von
38 auf diesen Informationen basierenden Berichten optimiert ist. Die Sprache
39 eignet sich außerdem für viele Systemverwaltungsaufgaben. Sie ist eher
40 praktisch (einfache Anwendung,effizient, vollständig) als schön (winzig,
44 Perl est un langage interprété, optimisé pour filtrer des fichiers texte,
45 extraire des informations de ces fichiers, et imprimer des rapports basés
46 sur ces informations. C'est aussi un bon langage pour de nombreuses procédures
47 de gestion système. Ce langage se veut pratique (simple à utiliser, efficace,
48 complet) autant qu'agréable (conscrit, élégant, minimal).
51 Perl jest jêzykiem przeznaczonym do skanowania plików tekstowych, wyci±gania
52 z nich informacji i drukowania raportu bazuj±cego na tych informacjach. Jest
53 równie¿ doskona³ym jêzykiem dla wielu narzêdzi do nadzoru systemu. Jêzyk ten
54 jest w zamierzeniu praktycznym (³atwym w u¿yciu, efektywnym, kompletnym)
55 bardziej ni¿ piêkny ;) (skromny, elegancki, minimalny).
58 Perl, metin dosyalarýný taramak, bu metin dosyalarýndan bilgi çýkarmak ve
59 bu bilgiye dayalý raporlar hazýrlamak icin geliþtirilmiþ bir yorumlamalý
60 dildir. Ayrýca pek çok sistem yönetimi görevleri için de yararlý yetenekleri
61 vardýr. Perl, güzel (ufak, zarif, minimum) olmaktan çok, pratik olmaya
62 yönelik (kullanýmý kolay, verimli, eksiksiz) olarak tasarlanmýþtýr.
65 Summary: Practical Extraction and Report Language (SUID root binary)
66 Summary(pl): Practical Extraction and Report Language (SUID root binaria)
68 Group(pl): Narzêdzia/Tekst
69 Requires: %{name} = %{version}
72 Practical Extraction and Report Language (SUID root binary).
74 %description -n sperl -l pl
75 Practical Extraction and Report Language (SUID root binaria).
78 %setup -q -n %{name}%{version}
87 sed "s|FPPATH|%{_builddir}/%{name}%{version}|g" < $i.old > $i
88 chmod 755 $i; rm -f $i.old
93 cat > config.over <<EOF
94 installprefix=$RPM_BUILD_ROOT%{_prefix}
95 test -d \$installprefix || mkdir -p \$installprefix
96 test -d \$installprefix/bin || mkdir -p \$installprefix/bin
97 installarchlib=\`echo \$installarchlib | sed "s!\$prefix!\$installprefix!"\`
98 installbin=\`echo \$installbin | sed "s!\$prefix!\$installprefix!"\`
99 installman1dir=\`echo \$installman1dir | sed "s!\$prefix!\$installprefix!"\`
100 installman3dir=\`echo \$installman3dir | sed "s!\$prefix!\$installprefix!"\`
101 installprivlib=\`echo \$installprivlib | sed "s!\$prefix!\$installprefix!"\`
102 installscript=\`echo \$installscript | sed "s!\$prefix!\$installprefix!"\`
103 installsitelib=\`echo \$installsitelib | sed "s!\$prefix!\$installprefix!"\`
104 installsitearch=\`echo \$installsitearch | sed "s!\$prefix!\$installprefix!"\`
110 -Darchname=%{_target_platform} \
111 -Dprefix=%{_prefix} \
112 -Dscriptdir=%{_bindir} \
113 -Dman1dir=%{_mandir}/man1 \
114 -Dman3dir=%{_mandir}/man3 \
116 -Doptimize="$RPM_OPT_FLAGS" \
125 # Strip binaries (done now rather than at install)
127 strip {perl,suidperl,x2p/a2p}
130 rm -rf $RPM_BUILD_ROOT
131 install -d $RPM_BUILD_ROOT
134 install utils/pl2pm $RPM_BUILD_ROOT%{_bindir}/pl2pm
136 ## Generate *.ph files with a trick (based on RH).
137 # Everybody else is using it so why can't we? ;)
139 PKGS = glibc-devel gdbm-devel gpm-devel libgr-devel libjpeg-devel \
140 libpng-devel libtiff-devel ncurses-devel popt-devel \
141 zlib-devel binutils libelf e2fsprogs-devel pam-devel pwdb-devel \
143 STDH = \$(filter /usr/include/%%, \$(shell rpm -q --queryformat '[%%{FILENAMES}\n]' \$(PKGS)))
144 STDH += \$(wildcard /usr/include/linux/*.h) \$(wildcard /usr/include/asm/*.h) \$(wildcard /usr/include/scsi/*.h)
145 GCCDIR = \$(shell gcc --print-file-name include)
146 GCCH = \$(filter \$(GCCDIR)/%%, \$(shell rpm -q --queryformat '[%%{FILENAMES}\n]' gcc))
148 LIBPATH = %{_builddir}/%{name}%{perlver}_%{perlrel}
149 PERLLIB = $RPM_BUILD_ROOT%{_libdir}/perl5/%{perlver}%{perlrel}
150 PERLBIN = $RPM_BUILD_ROOT%{_bindir}/perl
151 PERL = LD_LIBRARY_PATH=\$(LIBPATH) PERL5LIB=\$(PERLLIB) \$(PERLBIN)
152 PHDIR = \$(PERLLIB)/%{_target_platform}%{perlthread}
153 PHBIN = $RPM_BUILD_ROOT%{_bindir}/h2ph
154 H2PH = \$(PERL) \$(PHBIN) -d \$(PHDIR)/
156 all: std-headers gcc-headers
158 std-headers: \$(STDH)
159 cd /usr/include && \$(H2PH) \$(STDH:/usr/include/%%=%%)
161 gcc-headers: \$(GCCH)
162 cd \$(GCCDIR) && \$(H2PH) \$(GCCH:\$(GCCDIR)/%%=%%)
168 ( cd $RPM_BUILD_ROOT%{_libdir}/perl5/%{perlver}%{perlrel}/%{_target_platform}%{perlthread}/
170 mv .packlist .packlist.old
171 sed "s|$RPM_BUILD_ROOT||g" < .packlist.old > .packlist
174 mv Config.pm Config.pm.old
175 sed "s|$RPM_BUILD_ROOT||g" < Config.pm.old > Config.pm
176 rm -f Config.pm.old )
178 gzip -9fn $RPM_BUILD_ROOT%{_mandir}/man*/* \
181 find $RPM_BUILD_ROOT%{_libdir}/perl5 -name \*.so -exec strip --strip-unneeded {} \;
184 rm -rf $RPM_BUILD_ROOT
187 %defattr(644,root,root,755)
188 %doc README.gz Change*
190 %attr(755,root,root) %{_bindir}/a2p
191 %attr(755,root,root) %{_bindir}/c2ph
192 %attr(755,root,root) %{_bindir}/find2perl
193 %attr(755,root,root) %{_bindir}/h2ph
194 %attr(755,root,root) %{_bindir}/h2xs
195 %attr(755,root,root) %{_bindir}/perl
196 %attr(755,root,root) %{_bindir}/perl%{perlver}%{perlrel}
197 %attr(755,root,root) %{_bindir}/perlbug
198 %attr(755,root,root) %{_bindir}/perlcc
199 %attr(755,root,root) %{_bindir}/perldoc
200 %attr(755,root,root) %{_bindir}/pl2pm
201 %attr(755,root,root) %{_bindir}/pod2html
202 %attr(755,root,root) %{_bindir}/pod2latex
203 %attr(755,root,root) %{_bindir}/pod2man
204 %attr(755,root,root) %{_bindir}/pod2text
205 %attr(755,root,root) %{_bindir}/pstruct
206 %attr(755,root,root) %{_bindir}/s2p
207 %attr(755,root,root) %{_bindir}/splain
209 %dir %{_libdir}/perl5
210 %attr( - ,root,root) %{_libdir}/perl5/*
211 #%dir %{_libdir}/site_perl
212 #%attr( - ,root,root) %{_libdir}/site_perl/*
216 %attr(4755,root,root) %{_bindir}/sperl%{perlver}%{perlrel}
217 %attr(4755,root,root) %{_bindir}/suidperl