1 ## |
1 ## |
2 ## perl.spec -- OpenPKG RPM Package Specification |
2 ## perl.spec -- OpenPKG RPM Package Specification |
3 ## Copyright (c) 2000-2011 OpenPKG Foundation e.V. <http://openpkg.net/> |
3 ## Copyright (c) 2000-2012 OpenPKG Foundation e.V. <http://openpkg.net/> |
4 ## |
4 ## |
5 ## Permission to use, copy, modify, and distribute this software for |
5 ## Permission to use, copy, modify, and distribute this software for |
6 ## any purpose with or without fee is hereby granted, provided that |
6 ## any purpose with or without fee is hereby granted, provided that |
7 ## the above copyright notice and this permission notice appear in all |
7 ## the above copyright notice and this permission notice appear in all |
8 ## copies. |
8 ## copies. |
29 Packager: OpenPKG Foundation e.V. |
29 Packager: OpenPKG Foundation e.V. |
30 Distribution: OpenPKG Community |
30 Distribution: OpenPKG Community |
31 Class: CORE |
31 Class: CORE |
32 Group: Perl |
32 Group: Perl |
33 License: GPL/Artistic |
33 License: GPL/Artistic |
34 Version: 5.14.1 |
34 Version: 5.16.0 |
35 Release: 20110914 |
35 Release: 20120712 |
36 |
36 |
37 # list of sources |
37 # list of sources |
38 Source0: http://www.cpan.org/src/perl-%{version}.tar.gz |
38 Source0: http://www.cpan.org/src/perl-%{version}.tar.gz |
39 Patch0: perl.patch |
39 Patch0: perl.patch |
40 |
40 |
41 # build information |
41 # build information |
42 Prefix: %{l_prefix} |
42 BuildPreReq: OpenPKG, openpkg >= 20100101, gcc |
43 BuildRoot: %{l_buildroot} |
43 PreReq: OpenPKG, openpkg >= 20100101 |
44 BuildPreReq: OpenPKG, openpkg >= 20060823, gcc |
|
45 PreReq: OpenPKG, openpkg >= 20060823 |
|
46 AutoReq: no |
|
47 AutoReqProv: no |
|
48 |
44 |
49 %description |
45 %description |
50 Perl ("Practical Reporting and Extraction Language") is a very |
46 Perl ("Practical Reporting and Extraction Language") is a very |
51 sophisticated and flexible (but this way also complex) programming |
47 sophisticated and flexible (but this way also complex) programming |
52 language. This is the original implementation of the Perl 5 |
48 language. This is the original implementation of the Perl 5 |
117 |
113 |
118 # build the Perl package |
114 # build the Perl package |
119 %{l_make} %{l_mflags} -f Makefile |
115 %{l_make} %{l_mflags} -f Makefile |
120 |
116 |
121 %install |
117 %install |
122 # remove build cruft |
|
123 rm -rf $RPM_BUILD_ROOT |
|
124 |
118 |
125 # install the Perl package via standard procedure |
119 # install the Perl package via standard procedure |
126 %{l_make} %{l_mflags} -f Makefile install DESTDIR=$RPM_BUILD_ROOT |
120 %{l_make} %{l_mflags} -f Makefile install DESTDIR=$RPM_BUILD_ROOT |
127 |
121 |
128 # allow us to already use the temporary install perl(1) |
122 # allow us to already use the temporary install perl(1) |
199 $RPM_BUILD_ROOT%{l_prefix}/man/man1/instmodsh.1 |
193 $RPM_BUILD_ROOT%{l_prefix}/man/man1/instmodsh.1 |
200 |
194 |
201 # resolve file conflicts (with perl-sys) |
195 # resolve file conflicts (with perl-sys) |
202 rm -f $RPM_BUILD_ROOT%{l_prefix}/bin/ptar \ |
196 rm -f $RPM_BUILD_ROOT%{l_prefix}/bin/ptar \ |
203 $RPM_BUILD_ROOT%{l_prefix}/bin/ptardiff \ |
197 $RPM_BUILD_ROOT%{l_prefix}/bin/ptardiff \ |
|
198 $RPM_BUILD_ROOT%{l_prefix}/bin/ptargrep \ |
204 $RPM_BUILD_ROOT%{l_prefix}/man/man1/ptar.1 \ |
199 $RPM_BUILD_ROOT%{l_prefix}/man/man1/ptar.1 \ |
205 $RPM_BUILD_ROOT%{l_prefix}/man/man1/ptardiff.1 |
200 $RPM_BUILD_ROOT%{l_prefix}/man/man1/ptardiff.1 \ |
|
201 $RPM_BUILD_ROOT%{l_prefix}/man/man1/ptargrep.1 |
206 |
202 |
207 # resolve file conflicts (with perl-crypto) |
203 # resolve file conflicts (with perl-crypto) |
208 rm -f $RPM_BUILD_ROOT%{l_prefix}/bin/shasum \ |
204 rm -f $RPM_BUILD_ROOT%{l_prefix}/bin/shasum \ |
209 $RPM_BUILD_ROOT%{l_prefix}/man/man1/shasum.1 |
205 $RPM_BUILD_ROOT%{l_prefix}/man/man1/shasum.1 |
210 |
206 |
|
207 # resolve file conflicts (with perl-comp) |
|
208 rm -f $RPM_BUILD_ROOT%{l_prefix}/bin/zipdetails \ |
|
209 $RPM_BUILD_ROOT%{l_prefix}/man/man1/zipdetails.1 |
|
210 |
211 # determine installed files |
211 # determine installed files |
212 %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} |
212 %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} |
213 |
213 |
214 %files -f files |
214 %files -f files |
215 |
215 |
216 %clean |
216 %clean |
217 rm -rf $RPM_BUILD_ROOT |
217 |
218 |
|