/[packages]/updates/1/perl/current/SPECS/perl.spec
ViewVC logotype

Annotation of /updates/1/perl/current/SPECS/perl.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 394717 - (hide annotations) (download)
Tue Feb 5 19:29:12 2013 UTC (8 years, 7 months ago) by luigiwalser
File size: 21659 byte(s)
fix Locale-Maketext CVE-2012-6329 (mga#8815)
1 blino 5247 %define threading 1
2     %define debugging 0
3    
4     #%%define _default_patch_fuzz 2
5    
6     %if %threading
7     %define thread_arch -thread-multi
8     %else
9     %define thread_arch %{nil}
10     %endif
11    
12     %define arch %(echo %{_arch} | sed -e "s/amd64/x86_64/")
13     %define full_arch %{arch}-%{_os}%{thread_arch}
14     # Don't change to %{_libdir} as perl is clean and has arch-dependent subdirs
15     %define perl_root %{_prefix}/lib/perl5
16    
17 jquelin 52620 %define lc_distro %(echo %{distribution} | cut -d" " -f1 | tr "A-Z" "a-z")
18 blino 5285
19 blino 5247 Name: perl
20 jquelin 52620 Version: 5.12.3
21 luigiwalser 394717 %define subrel 4
22 jquelin 99222 Release: %mkrel 4
23 blino 5247 Epoch: 2
24    
25     %define rel %{nil}
26     #define rel -RC4
27    
28     Summary: The Perl programming language
29     License: GPL+ or Artistic
30     Group: Development/Perl
31     Url: http://www.perl.org/
32    
33     # ftp://ftp.funet.fi/pub/languages/perl/snap/perl@17574.tbz
34     #ftp://ftp.funet.fi/pub/languages/perl/CPAN/src/perl-%{version}.tar.bz2
35     Source0: http://www.cpan.org/src/perl-%{version}%{rel}.tar.gz
36     Source1: perl-headers-wanted
37     Source2: perl-5.8.0-RC2-special-h2ph-not-failing-on-machine_ansi_header.patch
38     Patch6: perl-5.12.0-RC0-fix-LD_RUN_PATH-for-MakeMaker.patch
39     Patch14: perl-5.12.0-RC0-install-files-using-chmod-644.patch
40     Patch15: perl-5.10.1-RC1-lib64.patch
41     Patch16: perl-5.12.0-RC0-perldoc-use-nroff-compatibility-option.patch
42     #(peroyvind) use -fPIC in stead of -fpic or else compile will fail on sparc (taken from redhat)
43     Patch21: perl-5.8.1-RC4-fpic-fPIC.patch
44     Patch23: perl-5.12.0-patchlevel.patch
45     Patch29: perl-5.12.0-RC0-rpmdebug.patch
46     Patch32: perl-5.10.0-incversionlist.patch
47     Patch38: perl-donot-defer-sig11.patch
48    
49     Patch43: perl-5.12.0-RC0-skip-tests-using-dev-log-for-iurt.patch
50     Patch44: perl-5.10.1-RC1-h2ph--handle-relative-include.patch
51    
52     # mdvbz#34505, get rid of this patch as soon as possible :-/
53     Patch48: perl-5.10.0-workaround-segfault-freeing-scalar-a-second-time.patch
54     Patch49: perl-5.10.0-workaround-error-copying-freed-scalar.patch
55     # mdv#60956 - fix h2ph
56     Patch50: perl-5.12.2-fix-h2ph.patch
57     # (oe) http://rt.perl.org/rt3/Public/Bug/Display.html?id=74088
58     Patch51: 0001-perl-74088.patch
59 jquelin 99222 # https://bugs.mageia.org/show_bug.cgi?id=1300
60     Patch52: perl-5.12.3-fix_uc_lctaint-66b429813d-cve_2011-1487.patch
61 fwang 197880 Patch53: perl-5.12.3-CVE-2011-3597.patch
62 fwang 195870 Patch54: perl-5.12.3-CVE-2011-2939.patch
63 luigiwalser 326216 Patch55: perl-5.14.2-segfault_long_string.patch
64 luigiwalser 394717 Patch56: perl-5.12-Locale-Maketext-CVE.patch
65 blino 5247
66     #
67     # fixes taken from debian
68     #
69     # Fix a segmentation fault occurring in the mod_perl2 test suite (debian #475498, perl #33807)
70     Patch65: local_symtab.diff
71    
72     BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}
73    
74     Requires: perl-base = %{epoch}:%{version}-%{release}
75    
76     # the following modules are part of perl normally, but are shipped in
77     # separated rpm packages. let's require them in order to please people
78     # that think that installing "perl" will have a full perl as shipped by
79     # upstream. (cf tom christiansen and the lengthy thread:
80     # http://www.nntp.perl.org/group/perl.perl5.porters/2009/08/msg149747.html)
81     Suggests: perl-Archive-Extract
82     Suggests: perl-Archive-Tar
83     Suggests: perl-CGI
84     Suggests: perl-CPANPLUS
85     Suggests: perl-CPANPLUS-Dist-Build
86     Suggests: perl-Digest-SHA
87     Suggests: perl-Module-Build
88     Suggests: perl-Module-CoreList
89     Suggests: perl-Time-Piece
90    
91     Provides: perl(getopts.pl)
92     Provides: perl(ctime.pl)
93     Provides: perl(flush.pl)
94     Provides: perl(find.pl)
95    
96     Provides: perl(attributes)
97 jquelin 52448 Provides: perl(charnames)
98 blino 5247 Provides: perl(fields)
99     Provides: perl(if)
100     Provides: perl(locale)
101 jquelin 38277 Provides: perl(re)
102 blino 5247 Provides: perl(subs)
103 jquelin 40024 Provides: perl(warnings::register)
104 blino 5247
105     Provides: perl-MIME-Base64 = 3.080.0
106     Obsoletes: perl-MIME-Base64 < 3.080.0
107     Provides: perl-libnet
108     Provides: perl-Storable = 2.200.0
109     Obsoletes: perl-Storable < 2.200.0
110     Provides: perl-Digest-MD5 = 2.390.0
111     Obsoletes: perl-Digest-MD5 < 2.390.0
112     Provides: perl-Time-HiRes = 1:1.971.900
113     Obsoletes: perl-Time-HiRes < 1:1.971.900
114     Provides: perl-Locale-Codes
115     Provides: perl-Test-Simple = 0.920.0
116     Obsoletes: perl-Test-Simple < 0.920.0
117     Provides: perl-Test-Builder-Tester = 1.180.0
118     Obsoletes: perl-Test-Builder-Tester < 1.180.0
119    
120 jquelin 99222 Provides: perl(version) = 1:0.820.0
121     Provides: perl-version = 1:0.820.0
122     Obsoletes: perl-version < 1:0.820.0
123 blino 5247 Provides: perl-File-Fetch = 0.14
124     Obsoletes: perl-File-Fetch < 0.14
125     Provides: perl-CPAN = 1.9205
126     Obsoletes: perl-CPAN < 1.9205
127     Provides: perl-IO-Zlib = 1.07
128     Obsoletes: perl-IO-Zlib < 1.07
129     Provides: perl-Pod-Simple = 3.05
130     Obsoletes: perl-Pod-Simple < 3.05
131     %define _requires_exceptions Mac\\|VMS\\|perl >=\\|perl(Errno)\\|perl(Fcntl)\\|perl(IO)\\|perl(IO::File)\\|perl(IO::Socket::INET)\\|perl(IO::Socket::UNIX)\\|perl(Tk)\\|perl(Tk::Pod)\\|perlapi-
132    
133     # for NDBM
134     BuildRequires: db4-devel
135     BuildRequires: gdbm-devel
136     %if "%{_lib}" == "lib64"
137     BuildRequires: devel(libgdbm_compat(64bit))
138     %else
139     BuildRequires: devel(libgdbm_compat)
140     %endif
141 blino 5285 BuildRequires: rpm-%{lc_distro}-setup-build
142 blino 5247
143     BuildRequires: man
144    
145     %package base
146     Version: %{version}
147     Summary: The Perl programming language (base)
148     Provides: perl(v5.6.0) perl(base) perl(bytes) perl(constant) perl(integer) perl(lib) perl(overload) perl(strict) perl(utf8) perl(vars) perl(warnings) perl(Carp::Heavy)
149     Group: Development/Perl
150     Url: http://www.perl.org/
151     Provides: perlapi-5.12.0
152     Provides: perlapi-5.12.1
153     Provides: perlapi-5.12.2
154 jquelin 52620 Provides: perlapi-5.12.3
155 blino 5247 # explicit file provides
156     Provides: /usr/bin/perl
157     # perlapi-xxx didn't exist for 5.8.8, so we need to put the more important conflicts:
158     Conflicts: perl-URPM < 3.07-2
159     Conflicts: perl-RPM4 < 0.23-4
160     Conflicts: perl-Locale-gettext < 1.05-6
161     Conflicts: perl-Digest-SHA1 < 2.11-4
162     Conflicts: perl-Net-DBus < 0.33.5-2
163     Conflicts: perl-XML-Parser < 2.35
164     Conflicts: drakxtools-backend < 10.6.4
165     # perl-suid is gone is perl 5.12
166     Obsoletes: perl-suid
167    
168     %package devel
169     Version: %{version}
170     Summary: The Perl programming language (devel)
171     Group: Development/Perl
172     Url: http://www.perl.org/
173     # for each package linked against libperl.so, rpm will
174     # add an automatic dependency on devel(libperl) for
175     # the corresponding devel package, but rpm will not
176     # automatically provides it, as libperl.so is not in
177     # standard library path
178     %ifarch %ix86
179     Provides: devel(libperl)
180     %endif
181     %ifarch x86_64
182     Provides: devel(libperl(64bit))
183     %endif
184     Requires: %{name} = %{epoch}:%{version}-%{release}
185    
186     %package doc
187     Version: %{version}
188     Summary: The Perl programming language (documentation)
189     Group: Development/Perl
190     Url: http://www.perl.org/
191     Requires: %{name} = %{epoch}:%{version}-%{release}
192     Requires: groff-for-man
193     Requires: perl(Pod::Perldoc)
194    
195     %description
196     Perl is a high-level programming language with roots in C, sed, awk
197     and shell scripting. Perl is good at handling processes and files,
198     and is especially good at handling text. Perl's hallmarks are
199     practicality and efficiency. While it is used to do a lot of
200     different things, Perl's most common applications (and what it excels
201     at) are probably system administration utilities and web programming.
202     A large proportion of the CGI scripts on the web are written in Perl.
203     You need the perl package installed on your system so that your
204     system can handle Perl scripts.
205    
206     You need perl-base to have a full perl.
207    
208     %description base
209     This is the base package for %{name}.
210    
211     %description devel
212     This is the devel package for %{name}.
213    
214     %description doc
215     This is the documentation package for %{name}.
216     It contains also the 'perldoc' program.
217    
218     %prep
219     %setup -q -n %{name}-%{version}%{rel}
220     %patch6 -p0
221     %patch14 -p0
222     %patch15 -p1
223     %patch16 -p0
224     %patch21 -p1 -b .peroyvind
225     %patch23 -p0
226     %patch29 -p0
227     %patch32 -p1
228     %patch38 -p0
229     %patch43 -p0
230     %patch44 -p0
231     %patch48 -p0
232     %patch49 -p1
233     %patch50 -p1
234     %patch51 -p1
235 jquelin 99222 %patch52 -p1 -b .lctaint
236 fwang 195870 %patch53 -p1
237     %patch54 -p1
238 luigiwalser 326216 %patch55 -p1
239 luigiwalser 394717 %patch56 -p1 -b .lmcve
240 blino 5247 %patch65 -p1
241    
242     remove_from_lists() {
243     perl -ni -e "m!^\Q$1! or print" MANIFEST
244     perl -ni -e "m!^\Q$1! or print" utils.lst
245     }
246     remove_files() {
247     rm -r $1
248     remove_from_lists $1
249     }
250     remove_files_all() {
251     rm -r $1*
252     remove_from_lists $1
253     }
254     remove_util() {
255     perl -pi -e "/^pl(extract)?\s/ and s/\s$1\b//" utils/Makefile.SH
256     }
257    
258     chmod u+w -R *
259     # perl-Archive-Tar
260     remove_files cpan/Archive-Tar/
261     remove_files_all utils/ptar.PL
262     remove_files_all utils/ptardiff.PL
263     remove_util ptar
264     remove_util ptardiff
265     # perl-Digest-SHA
266     remove_files cpan/Digest-SHA/
267     remove_files_all utils/shasum
268     remove_util shasum
269     # perl-CPANPLUS
270     remove_files cpan/CPANPLUS/
271     remove_files_all utils/cpan2dist.PL
272     remove_files_all utils/cpanp-run-perl.PL
273     remove_files_all utils/cpanp.PL
274     remove_util cpan2dist
275     remove_util cpanp-run-perl
276     remove_util cpanp
277     # perl-CPANPLUS-Dist-Build
278     remove_files cpan/CPANPLUS-Dist-Build/
279     # perl-Module-CoreList
280     remove_files dist/Module-CoreList/
281     remove_files_all utils/corelist.PL
282     remove_util corelist
283     # perl-Module-Build
284     remove_files cpan/Module-Build/
285     remove_files_all utils/config_data.PL
286     remove_util config_data
287     # perl-CGI
288     remove_files cpan/CGI/
289     # perl-Archive-Extract
290     remove_files cpan/Archive-Extract/
291     # perl-Time-Piece
292     remove_files cpan/Time-Piece/
293     # perl-Pod-Perldoc
294     remove_files dist/Pod-Perldoc/
295     remove_files_all utils/perldoc.PL
296     remove_util perldoc
297    
298     %build
299     %ifarch ppc
300     RPM_OPT_FLAGS=`echo "$RPM_OPT_FLAGS"|sed -e 's/-O2/-O1/g'`
301     %endif
302    
303     sh Configure -des \
304 jquelin 52900 -Dinc_version_list="5.12.2 5.12.2/%{full_arch} 5.12.1 5.12.1/%{full_arch} 5.12.0 5.12.0/%{full_arch} 5.10.1 5.10.0 5.8.8 5.8.7 5.8.6 5.8.5 5.8.4 5.8.3 5.8.2 5.8.1 5.8.0 5.6.1 5.6.0" \
305 blino 5247 -Darchname=%{arch}-%{_os} \
306     -Dcc='%{__cc}' \
307     %if %debugging
308     -Doptimize=-g -DDEBUGGING \
309     %else
310     -Doptimize="$RPM_OPT_FLAGS" -DDEBUGGING=-g \
311     %endif
312     -Dprefix=%_prefix -Dvendorprefix=%_prefix \
313     -Dsiteprefix=%_prefix -Dsitebin=%_prefix/local/bin \
314     -Dsiteman1dir=%_prefix/local/share/man/man1 \
315     -Dsiteman3dir=%_prefix/local/share/man/man3 \
316 jquelin 45158 -Dman3dir=%_mandir/man3pm \
317     -Dvendorman3dir=%_mandir/man3 \
318 blino 5247 -Dman3ext=3pm \
319 blino 5285 -Dcf_by=%{distribution} -Dmyhostname=localhost -Dperladmin=root@localhost -Dcf_email=root@localhost \
320 blino 5247 -Ud_csh \
321     -Duseshrplib \
322     %if %threading
323     -Duseithreads \
324     %endif
325     %ifarch %{sunsparc}
326     -Ud_longdbl \
327     %endif
328     -Di_db \
329     -Di_ndbm \
330     -Di_gdbm \
331    
332     %make
333    
334     %check
335     # for test, building a perl with no rpath
336     # for test, unset RPM_BUILD_ROOT so that the MakeMaker trick is not triggered
337     rm -f perl
338     %define nbprocs %(/usr/bin/getconf _NPROCESSORS_ONLN)
339     RPM_BUILD_ROOT="" TEST_JOBS=%{nbprocs} make test_harness_notty CCDLFLAGS=
340     rm -f perl
341     make perl
342    
343     %install
344     rm -rf $RPM_BUILD_ROOT
345    
346     %makeinstall_std
347    
348     install -d $RPM_BUILD_ROOT%{perl_root}/vendor_perl/%{version}/%{full_arch}/auto
349    
350     # We prefer 0755 instead of 0555
351     find $RPM_BUILD_ROOT -name "*.so" | xargs chmod 0755
352    
353     cp -f utils/h2ph utils/h2ph_patched
354     cat %{SOURCE2} | patch -p1
355    
356     # LD_PRELOAD doesn't work... why?
357     LD_LIBRARY_PATH=`pwd` ./perl -Ilib utils/h2ph_patched -a -d $RPM_BUILD_ROOT%{perl_root}/%{version}/%{full_arch} `cat %{SOURCE1}` > /dev/null ||:
358    
359     (
360     # i don't like hardlinks, having symlinks instead:
361     cd $RPM_BUILD_ROOT%{_bindir}
362     ln -sf perl5 perl
363     ln -s perl%{version} perl5
364     )
365    
366     rm -f $RPM_BUILD_ROOT%{_bindir}/perlivp $RPM_BUILD_ROOT%{_mandir}/man1/perlivp.1
367    
368     %ifarch ppc
369     perl -ni -e 'print if !/sub __syscall_nr/' $RPM_BUILD_ROOT%{perl_root}/%{version}/%{full_arch}/asm/unistd.ph
370     %endif
371    
372     %ifarch ppc
373     perl -ni -e 'print unless m/sub __syscall_nr/' $RPM_BUILD_ROOT/%{perl_root}/%{version}/%{full_arch}/asm/unistd.ph
374     %endif
375    
376     # call spec-helper before creating the file list
377     # (spec-helper removes some files, and compress some others)
378     %define dont_strip 1
379     %{?__spec_helper_post}
380     %undefine dont_strip
381    
382     (
383     cat > perl-base.list <<EOF
384     %{_bindir}/perl
385     %{_bindir}/perl5
386     %{_bindir}/perl%{version}
387     %dir %{perl_root}
388     %dir %{perl_root}/%{version}
389     %dir %{perl_root}/%{version}/File
390     %{perl_root}/%{version}/File/Basename.pm
391     %{perl_root}/%{version}/File/Find.pm
392     %{perl_root}/%{version}/File/Path.pm
393     %dir %{perl_root}/%{version}/Getopt
394     %{perl_root}/%{version}/Getopt/Long.pm
395     %{perl_root}/%{version}/Getopt/Std.pm
396     %dir %{perl_root}/%{version}/Time
397     %{perl_root}/%{version}/Time/Local.pm
398     %{perl_root}/%{version}/AutoLoader.pm
399     %dir %{perl_root}/%{version}/Carp
400     %{perl_root}/%{version}/Carp.pm
401     %{perl_root}/%{version}/Carp/Heavy.pm
402     %{perl_root}/%{version}/DirHandle.pm
403     %{perl_root}/%{version}/%{full_arch}/Errno.pm
404     %dir %{perl_root}/%{version}/Exporter
405     %{perl_root}/%{version}/Exporter/Heavy.pm
406     %{perl_root}/%{version}/Exporter.pm
407     %{perl_root}/%{version}/FileHandle.pm
408     %{perl_root}/%{version}/PerlIO.pm
409     %{perl_root}/%{version}/SelectSaver.pm
410     %{perl_root}/%{version}/Symbol.pm
411     %dir %{perl_root}/%{version}/Tie
412     %{perl_root}/%{version}/Tie/Hash.pm
413     %{perl_root}/%{version}/XSLoader.pm
414     %{perl_root}/%{version}/base.pm
415     %{perl_root}/%{version}/bytes.pm
416     %{perl_root}/%{version}/bytes_heavy.pl
417     %{perl_root}/%{version}/constant.pm
418     %{perl_root}/%{version}/feature.pm
419     %{perl_root}/%{version}/integer.pm
420     %{perl_root}/%{version}/overload.pm
421     %{perl_root}/%{version}/strict.pm
422     %{perl_root}/%{version}/utf8.pm
423     %{perl_root}/%{version}/utf8_heavy.pl
424     %{perl_root}/%{version}/unicore/To/Lower.pl
425     %{perl_root}/%{version}/unicore/To/Fold.pl
426     %{perl_root}/%{version}/unicore/To/Upper.pl
427     %{perl_root}/%{version}/vars.pm
428     %dir %{perl_root}/%{version}/warnings
429     %{perl_root}/%{version}/warnings/register.pm
430     %{perl_root}/%{version}/warnings.pm
431     %dir %{perl_root}/%{version}/%{full_arch}
432     %{perl_root}/%{version}/%{full_arch}/lib.pm
433     %{perl_root}/%{version}/%{full_arch}/Cwd.pm
434     %{perl_root}/%{version}/%{full_arch}/File/Spec.pm
435     %{perl_root}/%{version}/%{full_arch}/File/Spec/Unix.pm
436     %dir %{perl_root}/%{version}/%{full_arch}/File/Spec
437     %{perl_root}/%{version}/%{full_arch}/Fcntl.pm
438     %{perl_root}/%{version}/%{full_arch}/IO.pm
439     %dir %{perl_root}/%{version}/%{full_arch}/IO
440     %{perl_root}/%{version}/%{full_arch}/IO/File.pm
441     %{perl_root}/%{version}/%{full_arch}/IO/Handle.pm
442     %{perl_root}/%{version}/%{full_arch}/IO/Seekable.pm
443     %{perl_root}/%{version}/%{full_arch}/IO/Select.pm
444     %{perl_root}/%{version}/%{full_arch}/IO/Socket.pm
445     %dir %{perl_root}/%{version}/%{full_arch}/auto
446     %dir %{perl_root}/%{version}/%{full_arch}/auto/Cwd
447     %{perl_root}/%{version}/%{full_arch}/auto/Cwd/Cwd.so
448     %dir %{perl_root}/%{version}/%{full_arch}/auto/DynaLoader
449     %{perl_root}/%{version}/%{full_arch}/auto/DynaLoader/dl_findfile.al
450     %dir %{perl_root}/%{version}/%{full_arch}/auto/Data
451     %dir %{perl_root}/%{version}/%{full_arch}/auto/Data/Dumper
452     %{perl_root}/%{version}/%{full_arch}/auto/Data/Dumper/Dumper.so
453     %dir %{perl_root}/%{version}/%{full_arch}/auto/Fcntl
454     %{perl_root}/%{version}/%{full_arch}/auto/Fcntl/Fcntl.so
455     %dir %{perl_root}/%{version}/%{full_arch}/auto/File
456     %dir %{perl_root}/%{version}/%{full_arch}/auto/File/Glob
457     %{perl_root}/%{version}/%{full_arch}/auto/File/Glob/Glob.so
458     %{perl_root}/%{version}/%{full_arch}/File/Glob.pm
459     %dir %{perl_root}/%{version}/%{full_arch}/auto/IO
460     %{perl_root}/%{version}/%{full_arch}/auto/IO/IO.so
461     %dir %{perl_root}/%{version}/%{full_arch}/auto/POSIX
462     %{perl_root}/%{version}/%{full_arch}/auto/POSIX/POSIX.so
463     %{perl_root}/%{version}/%{full_arch}/auto/POSIX/autosplit.ix
464     %{perl_root}/%{version}/%{full_arch}/auto/POSIX/load_imports.al
465     %{perl_root}/%{version}/%{full_arch}/auto/POSIX/tmpfile.al
466     %dir %{perl_root}/%{version}/%{full_arch}/auto/Socket
467     %{perl_root}/%{version}/%{full_arch}/auto/Socket/Socket.so
468     %dir %{perl_root}/%{version}/%{full_arch}/auto/Storable
469     %{perl_root}/%{version}/%{full_arch}/auto/Storable/Storable.so
470     %{perl_root}/%{version}/%{full_arch}/auto/Storable/autosplit.ix
471     %{perl_root}/%{version}/%{full_arch}/auto/Storable/store.al
472     %{perl_root}/%{version}/%{full_arch}/auto/Storable/_store.al
473     %{perl_root}/%{version}/%{full_arch}/auto/Storable/retrieve.al
474     %{perl_root}/%{version}/%{full_arch}/auto/Storable/_retrieve.al
475     %dir %{perl_root}/%{version}/%{full_arch}/auto/re
476     %{perl_root}/%{version}/%{full_arch}/auto/re/re.so
477     %{perl_root}/%{version}/%{full_arch}/Config.pm
478     %{perl_root}/%{version}/%{full_arch}/Config_heavy.pl
479     %{perl_root}/%{version}/%{full_arch}/DynaLoader.pm
480     %{perl_root}/%{version}/%{full_arch}/POSIX.pm
481     %{perl_root}/%{version}/%{full_arch}/Socket.pm
482     %{perl_root}/%{version}/%{full_arch}/Storable.pm
483     %{perl_root}/%{version}/%{full_arch}/re.pm
484     %dir %{perl_root}/%{version}/%{full_arch}/CORE
485     %{perl_root}/%{version}/%{full_arch}/CORE/libperl.so
486     %dir %{perl_root}/%{version}/%{full_arch}/asm
487     %dir %{perl_root}/%{version}/%{full_arch}/bits
488     %dir %{perl_root}/%{version}/%{full_arch}/sys
489     %{perl_root}/%{version}/%{full_arch}/asm/unistd.ph
490     %ifarch %mips
491     %{perl_root}/%{version}/%{full_arch}/asm/sgidefs.ph
492     %endif
493     %ifarch ia64
494     %{perl_root}/%{version}/%{full_arch}/asm/break.ph
495     %endif
496     %ifarch x86_64
497     %{perl_root}/%{version}/%{full_arch}/bits/wordsize.ph
498     %endif
499     %ifarch %ix86 x86_64
500     %{perl_root}/%{version}/%{full_arch}/asm/unistd_32.ph
501     %{perl_root}/%{version}/%{full_arch}/asm/unistd_64.ph
502     %endif
503     %ifarch ppc64
504     %{perl_root}/%{version}/%{full_arch}/asm-ppc/unistd.ph
505     %{perl_root}/%{version}/%{full_arch}/asm-ppc64/unistd.ph
506     %{perl_root}/%{version}/%{full_arch}/bits/wordsize.ph
507     %endif
508     %{perl_root}/%{version}/%{full_arch}/bits/syscall.ph
509     %{perl_root}/%{version}/%{full_arch}/sys/syscall.ph
510     %{perl_root}/%{version}/%{full_arch}/_h2ph_pre.ph
511     %{perl_root}/%{version}/%{full_arch}/syscall.ph
512     EOF
513    
514     cat > perl.list <<EOF
515     %doc README
516     %doc Artistic
517     %{_bindir}/a2p
518     %{_bindir}/perlbug
519     %{_bindir}/perlthanks
520     %{_bindir}/find2perl
521     %{_bindir}/pod2man
522     %{_bindir}/pod2html
523     %{_bindir}/pod2text
524     %{_bindir}/pod2latex
525     %{_bindir}/splain
526     %{_bindir}/s2p
527     EOF
528    
529     cat > perl-devel.list <<EOF
530     %{_bindir}/cpan
531     %{_bindir}/pstruct
532     %{_bindir}/piconv
533     %{_bindir}/dprofpp
534     %{_bindir}/c2ph
535     %{_bindir}/h2xs
536     %{_bindir}/enc2xs
537     %{_bindir}/instmodsh
538     %{_bindir}/libnetcfg
539     %{_bindir}/h2ph
540     %{_bindir}/pl2pm
541     %{_bindir}/podchecker
542     %{_bindir}/podselect
543     %{_bindir}/pod2usage
544     %{_bindir}/psed
545     %{_bindir}/prove
546     %{_bindir}/xsubpp
547     %{perl_root}/%{version}/Encode/encode.h
548     %{perl_root}/%{version}/%{full_arch}/CORE/EXTERN.h
549     %{perl_root}/%{version}/%{full_arch}/CORE/INTERN.h
550     %{perl_root}/%{version}/%{full_arch}/CORE/XSUB.h
551     %{perl_root}/%{version}/%{full_arch}/CORE/av.h
552     %{perl_root}/%{version}/%{full_arch}/CORE/cc_runtime.h
553     %{perl_root}/%{version}/%{full_arch}/CORE/cop.h
554     %{perl_root}/%{version}/%{full_arch}/CORE/cv.h
555     %{perl_root}/%{version}/%{full_arch}/CORE/dosish.h
556     %{perl_root}/%{version}/%{full_arch}/CORE/embed.h
557     %{perl_root}/%{version}/%{full_arch}/CORE/embedvar.h
558     %{perl_root}/%{version}/%{full_arch}/CORE/fakesdio.h
559     %{perl_root}/%{version}/%{full_arch}/CORE/fakethr.h
560     %{perl_root}/%{version}/%{full_arch}/CORE/form.h
561     %{perl_root}/%{version}/%{full_arch}/CORE/gv.h
562     %{perl_root}/%{version}/%{full_arch}/CORE/handy.h
563     %{perl_root}/%{version}/%{full_arch}/CORE/hv.h
564     %{perl_root}/%{version}/%{full_arch}/CORE/intrpvar.h
565     %{perl_root}/%{version}/%{full_arch}/CORE/iperlsys.h
566     %{perl_root}/%{version}/%{full_arch}/CORE/keywords.h
567     %{perl_root}/%{version}/%{full_arch}/CORE/malloc_ctl.h
568     %{perl_root}/%{version}/%{full_arch}/CORE/mg.h
569     %{perl_root}/%{version}/%{full_arch}/CORE/nostdio.h
570     %{perl_root}/%{version}/%{full_arch}/CORE/op.h
571     %{perl_root}/%{version}/%{full_arch}/CORE/opcode.h
572     %{perl_root}/%{version}/%{full_arch}/CORE/opnames.h
573     %{perl_root}/%{version}/%{full_arch}/CORE/overload.h
574     %{perl_root}/%{version}/%{full_arch}/CORE/pad.h
575     %{perl_root}/%{version}/%{full_arch}/CORE/parser.h
576     %{perl_root}/%{version}/%{full_arch}/CORE/patchlevel.h
577     %{perl_root}/%{version}/%{full_arch}/CORE/perlapi.h
578     %{perl_root}/%{version}/%{full_arch}/CORE/perlio.h
579     %{perl_root}/%{version}/%{full_arch}/CORE/perliol.h
580     %{perl_root}/%{version}/%{full_arch}/CORE/perlsdio.h
581     %{perl_root}/%{version}/%{full_arch}/CORE/perlsfio.h
582     %{perl_root}/%{version}/%{full_arch}/CORE/perlvars.h
583     %{perl_root}/%{version}/%{full_arch}/CORE/perly.h
584     %{perl_root}/%{version}/%{full_arch}/CORE/pp.h
585     %{perl_root}/%{version}/%{full_arch}/CORE/pp_proto.h
586     %{perl_root}/%{version}/%{full_arch}/CORE/proto.h
587     %{perl_root}/%{version}/%{full_arch}/CORE/reentr.h
588     %{perl_root}/%{version}/%{full_arch}/CORE/regcharclass.h
589     %{perl_root}/%{version}/%{full_arch}/CORE/regcomp.h
590     %{perl_root}/%{version}/%{full_arch}/CORE/regexp.h
591     %{perl_root}/%{version}/%{full_arch}/CORE/regnodes.h
592     %{perl_root}/%{version}/%{full_arch}/CORE/scope.h
593     %{perl_root}/%{version}/%{full_arch}/CORE/sv.h
594     %{perl_root}/%{version}/%{full_arch}/CORE/thread.h
595     %{perl_root}/%{version}/%{full_arch}/CORE/uconfig.h
596     %{perl_root}/%{version}/%{full_arch}/CORE/unixish.h
597     %{perl_root}/%{version}/%{full_arch}/CORE/utf8.h
598     %{perl_root}/%{version}/%{full_arch}/CORE/utfebcdic.h
599     %{perl_root}/%{version}/%{full_arch}/CORE/util.h
600     %{perl_root}/%{version}/%{full_arch}/CORE/uudmap.h
601     %{perl_root}/%{version}/%{full_arch}/CORE/warnings.h
602     EOF
603    
604     rel_perl_root=`echo %{perl_root} | sed "s,/,,"`
605     rel_mandir=`echo %{_mandir} | sed "s,/,,"`
606     (cd $RPM_BUILD_ROOT ; find $rel_perl_root/%{version} "(" -name "*.pod" -o -iname "Changes*" -o -iname "ChangeLog*" -o -iname "README*" ")" -a -not -name perldiag.pod -printf "%%%%doc /%%p\n") >> perl-doc.list
607     (cd $RPM_BUILD_ROOT ; find $rel_mandir/man1 ! -name "perlivp.1*" ! -type d -printf "/%%p\n") >> perl.list
608 jquelin 45158 (cd $RPM_BUILD_ROOT ; find $rel_mandir/man3pm ! -type d ! -name "Pod::Perldoc*" -printf "/%%p\n") >> perl.list
609 blino 5247 (cd $RPM_BUILD_ROOT ; find $rel_perl_root/%{version} ! -type d -printf "/%%p\n") >> perl.list
610     (cd $RPM_BUILD_ROOT ; find $rel_perl_root/%{version} -type d -printf "%%%%dir /%%p\n") >> perl.list
611    
612     perl -ni -e 'BEGIN { open F, "perl-base.list"; $s{$_} = 1 foreach <F>; } print unless $s{$_}' perl.list
613     perl -ni -e 'BEGIN { open F, "perl-devel.list"; $s{$_} = 1 foreach <F>; } print unless $s{$_}' perl.list
614     perl -ni -e 'BEGIN { open F, "perl-doc.list"; s/^.doc //, $s{$_} = 1 foreach <F>; } print unless $s{$_}' perl.list
615     )
616    
617     %clean
618     rm -rf $RPM_BUILD_ROOT
619    
620     %files -f perl.list
621     %defattr(-,root,root)
622    
623     %files base -f perl-base.list
624     %defattr(-,root,root)
625     %{perl_root}/vendor_perl
626    
627     %files devel -f perl-devel.list
628     %defattr(-,root,root)
629    
630     %files doc -f perl-doc.list
631     %defattr(-,root,root)
632 blino 5285
633    

  ViewVC Help
Powered by ViewVC 1.1.28