1 %define __find_provides %{_builddir}/%{name}-%{version}/find-perl-provides
2 %define perlthread %{!?bcond_off_perl_threads:-thread-multi}
3 Summary: Practical Extraction and Report Language
4 Summary(de): Praktische Extraktions- und Berichtsprache
5 Summary(fr): Practical Extraction and Report Language (Perl)
6 Summary(pl): Practical Extraction and Report Language (Perl)
7 Summary(tr): Kabuk yorumlama dili
13 Group: Applications/Text
14 Group(de): Applikationen/Text
15 Group(fr): Utilitaires/Texte
16 Group(pl): Aplikacje/Tekst
17 Source0: ftp://ftp.perl.org/pub/perl/CPAN/src/%{name}-%{version}.tar.gz
18 Patch0: %{name}-noroot_install.patch
19 Patch1: %{name}-nodb.patch
20 Patch2: %{name}-DESTDIR.patch
21 Patch3: %{name}-CPAN-1.58.patch
22 Patch4: %{name}-find-provides.patch
23 Patch5: %{name}-prereq.patch
24 Patch6: %{name}-syslog.patch
25 Patch7: %{name}-CGI-upload-tmpdir.patch
26 Patch8: %{name}-LD_RUN_PATH.patch
27 Patch9: %{name}-errno_h-parsing.patch
28 Patch10: %{name}-use-LD_PRELOAD-for-libperl.so.patch
29 Patch11: %{name}-fix-typo-in-syslog.patch
30 Patch12: %{name}-fix-for-coredump-bug-20000607.003.patch
31 URL: http://www.perl.org/
33 Provides: perl-ANSIColor
34 Provides: perl-Devel-Peek
36 Provides: perl-PodParser
37 Obsoletes: perl-ANSIColor
38 Obsoletes: perl-Devel-Peek
40 Obsoletes: perl-PodParser
41 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
44 Perl is an interpreted language optimized for scanning arbitrary text
45 files, extracting information from those text files, and printing
46 reports based on that information. It's also a good language for many
47 system management tasks. The language is intended to be practical
48 (easy to use, efficient, complete) rather than beautiful (tiny,
51 This version has support for threads compiled in.
54 Perl ist eine Interpreter-Sprache, die zum Durchsuchen beliebiger
55 Text- dateien, Extrahieren von Informationen aus diesen Dateien und
56 Drucken von auf diesen Informationen basierenden Berichten optimiert
57 ist. Die Sprache eignet sich außerdem für viele
58 Systemverwaltungsaufgaben. Sie ist eher praktisch (einfache
59 Anwendung,effizient, vollständig) als schön (winzig, elegant,
63 Perl est un langage interprété, optimisé pour filtrer des fichiers
64 texte, extraire des informations de ces fichiers, et imprimer des
65 rapports basés sur ces informations. C'est aussi un bon langage pour
66 de nombreuses procédures de gestion système. Ce langage se veut
67 pratique (simple à utiliser, efficace, complet) autant qu'agréable
68 (conscrit, élégant, minimal).
71 Perl jest jêzykiem przeznaczonym do skanowania plików tekstowych,
72 wyci±gania z nich informacji i drukowania raportu bazuj±cego na tych
73 informacjach. Jest równie¿ doskona³ym jêzykiem dla wielu narzêdzi do
74 nadzoru systemu. Jêzyk ten jest w zamierzeniu praktycznym (³atwym w
75 u¿yciu, efektywnym, kompletnym) bardziej ni¿ piêkny ;) (skromny,
76 elegancki, minimalny).
79 Perl, metin dosyalarýný taramak, bu metin dosyalarýndan bilgi çýkarmak
80 ve bu bilgiye dayalý raporlar hazýrlamak icin geliþtirilmiþ bir
81 yorumlamalý dildir. Ayrýca pek çok sistem yönetimi görevleri için de
82 yararlý yetenekleri vardýr. Perl, güzel (ufak, zarif, minimum)
83 olmaktan çok, pratik olmaya yönelik (kullanýmý kolay, verimli,
84 eksiksiz) olarak tasarlanmýþtýr.
87 Summary: Practical Extraction and Report Language (SUID root binary)
88 Summary(pl): Practical Extraction and Report Language (SUID root binaria)
89 Group: Applications/Text
90 Group(de): Applikationen/Text
91 Group(fr): Utilitaires/Texte
92 Group(pl): Aplikacje/Tekst
93 Requires: %{name} = %{version}
96 Practical Extraction and Report Language (SUID root binary).
98 %description -n sperl -l pl
99 Practical Extraction and Report Language (SUID root binaria).
119 sed "s|FPPATH|%{_builddir}/%{name}-%{version}|g" < $i.old > $i
120 chmod 755 $i; rm -f $i.old
125 cat > config.over <<EOF
126 installprefix=$RPM_BUILD_ROOT%{_prefix}
127 test -d \$installprefix || mkdir -p \$installprefix
128 test -d \$installprefix/bin || mkdir -p \$installprefix/bin
129 installarchlib=\`echo \$installarchlib | sed "s!\$prefix!\$installprefix!"\`
130 installbin=\`echo \$installbin | sed "s!\$prefix!\$installprefix!"\`
131 installman1dir=\`echo \$installman1dir | sed "s!\$prefix!\$installprefix!"\`
132 installman3dir=\`echo \$installman3dir | sed "s!\$prefix!\$installprefix!"\`
133 installprivlib=\`echo \$installprivlib | sed "s!\$prefix!\$installprefix!"\`
134 installscript=\`echo \$installscript | sed "s!\$prefix!\$installprefix!"\`
135 installsitelib=\`echo \$installsitelib | sed "s!\$prefix!\$installprefix!"\`
136 installsitearch=\`echo \$installsitearch | sed "s!\$prefix!\$installprefix!"\`
139 USETHREADS=%{?bcond_off_perl_threads:-U}%{!?bcond_off_perl_threads:-D}
143 -Darchname=%{_target_platform} \
144 -Dcccdlflags='-fPIC' \
145 -Dprefix=%{_prefix} \
146 -Dscriptdir=%{_bindir} \
147 -Dman1dir=%{_mandir}/man1 \
148 -Dman3dir=%{_mandir}/man3 \
150 -Doptimize="$RPM_OPT_FLAGS" \
151 ${USETHREADS}usethreads \
153 %ifarch sparc sparc64
156 %ifnarch sparc sparc64
166 rm -rf $RPM_BUILD_ROOT
167 install -d $RPM_BUILD_ROOT
170 install utils/pl2pm $RPM_BUILD_ROOT%{_bindir}/pl2pm
172 ## Generate *.ph files with a trick (based on RH).
174 %{__make} all -f - <<EOF
175 PKGS = glibc-devel gdbm-devel gpm-devel libgr-devel libjpeg-devel \
176 libpng-devel libtiff-devel ncurses-devel popt-devel \
177 zlib-devel binutils libelf e2fsprogs-devel pam-devel pwdb-devel \
179 STDH = \$(filter /usr/include/%%, \$(shell rpm -q --queryformat '[%%{FILENAMES}\n]' \$(PKGS)))
180 STDH += \$(wildcard /usr/include/linux/*.h) \$(wildcard /usr/include/asm/*.h) \$(wildcard /usr/include/scsi/*.h)
181 GCCDIR = \$(shell gcc --print-file-name include)
182 GCCH = \$(filter \$(GCCDIR)/%%, \$(shell rpm -q --queryformat '[%%{FILENAMES}\n]' gcc))
184 LIBPATH = %{_builddir}/%{name}-%{version}
185 PERLLIB = $RPM_BUILD_ROOT%{_libdir}/perl5/%{version}
186 PERLBIN = $RPM_BUILD_ROOT%{_bindir}/perl
187 PERL = LD_LIBRARY_PATH=\$(LIBPATH) PERL5LIB=\$(PERLLIB) \$(PERLBIN)
188 PHDIR = \$(PERLLIB)/%{_target_platform}%{perlthread}
189 PHBIN = $RPM_BUILD_ROOT%{_bindir}/h2ph
190 H2PH = \$(PERL) \$(PHBIN) -d \$(PHDIR)/
192 all: std-headers gcc-headers
194 std-headers: \$(STDH)
195 cd /usr/include && \$(H2PH) \$(STDH:/usr/include/%%=%%)
197 gcc-headers: \$(GCCH)
198 cd \$(GCCDIR) && \$(H2PH) \$(GCCH:\$(GCCDIR)/%%=%%)
204 cd $RPM_BUILD_ROOT%{_libdir}/perl5/%{version}/%{_target_platform}%{perlthread}
205 sed -e "s|$RPM_BUILD_ROOT||g" < Config.pm > Config.pm.new
206 mv -f Config.pm.new Config.pm
207 sed -e "s|$RPM_BUILD_ROOT||g" < .packlist > .packlist.new
208 mv -f .packlist.new .packlist
212 find $RPM_BUILD_ROOT%{_libdir}/perl5 -name \*.ph -exec chmod 444 {} \;
213 find $RPM_BUILD_ROOT%{_libdir}/perl5 -type d -exec chmod 755 {} \;
215 gzip -9nf README Change*
218 rm -rf $RPM_BUILD_ROOT
221 %defattr(644,root,root,755)
222 %doc README.gz Change*
224 %attr(755,root,root) %{_bindir}/a2p
225 %attr(755,root,root) %{_bindir}/c2ph
226 %attr(755,root,root) %{_bindir}/find2perl
227 %attr(755,root,root) %{_bindir}/h2ph
228 %attr(755,root,root) %{_bindir}/h2xs
229 %attr(755,root,root) %{_bindir}/perl
230 %attr(755,root,root) %{_bindir}/perl%{version}
231 %attr(755,root,root) %{_bindir}/perlbug
232 %attr(755,root,root) %{_bindir}/perlcc
233 %attr(755,root,root) %{_bindir}/perldoc
234 %attr(755,root,root) %{_bindir}/pl2pm
235 %attr(755,root,root) %{_bindir}/pod2html
236 %attr(755,root,root) %{_bindir}/pod2latex
237 %attr(755,root,root) %{_bindir}/pod2man
238 %attr(755,root,root) %{_bindir}/pod2text
239 %attr(755,root,root) %{_bindir}/podselect
240 %attr(755,root,root) %{_bindir}/pstruct
241 %attr(755,root,root) %{_bindir}/s2p
242 %attr(755,root,root) %{_bindir}/splain
244 %dir %{_libdir}/perl5
245 %attr( - ,root,root) %{_libdir}/perl5/*
246 #%dir %{_libdir}/site_perl
247 #%attr( - ,root,root) %{_libdir}/site_perl/*
251 %defattr(644,root,root,755)
252 %attr(4755,root,root) %{_bindir}/sperl%{version}
253 %attr(4755,root,root) %{_bindir}/suidperl