1 ## |
1 ## |
2 ## perl.spec -- OpenPKG RPM Package Specification |
2 ## perl.spec -- OpenPKG RPM Package Specification |
3 ## Copyright (c) 2000-2008 OpenPKG Foundation e.V. <http://openpkg.net/> |
3 ## Copyright (c) 2000-2011 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.10.0 |
34 Version: 5.14.1 |
35 Release: 20090106 |
35 Release: 20110618 |
36 |
36 |
37 # list of sources |
37 # list of sources |
38 Source0: ftp://ftp.cpan.org/pub/CPAN/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 >= 20040130, gcc |
|
45 PreReq: OpenPKG, openpkg >= 20040130 |
|
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 |
53 interpreter from Larry Wall and his community. |
49 interpreter from Larry Wall and his community. |
54 |
50 |
55 %track |
51 %track |
56 prog perl = { |
52 prog perl = { |
57 version = %{version} |
53 version = %{version} |
58 url = ftp://ftp.cpan.org/pub/CPAN/src/ |
54 url = http://www.cpan.org/src/ |
59 regex = perl-(5\.10\.\d+)\.tar\.gz |
55 regex = perl-(5\.(?:[02468]|1[02468])\.\d+)\.tar\.gz |
60 } |
56 } |
61 |
57 |
62 %prep |
58 %prep |
63 %setup -q |
59 %setup -q |
64 %patch -p0 |
60 %patch -p0 |
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 rm -rf $RPM_BUILD_ROOT |
|
123 |
118 |
124 # install the Perl package via standard procedure |
119 # install the Perl package via standard procedure |
125 %{l_make} %{l_mflags} -f Makefile install DESTDIR=$RPM_BUILD_ROOT |
120 %{l_make} %{l_mflags} -f Makefile install DESTDIR=$RPM_BUILD_ROOT |
126 |
121 |
127 # allow us to already use the temporary install perl(1) |
122 # allow us to already use the temporary install perl(1) |
183 # strip binary files |
178 # strip binary files |
184 strip $RPM_BUILD_ROOT%{l_prefix}/bin/* 2>/dev/null || true |
179 strip $RPM_BUILD_ROOT%{l_prefix}/bin/* 2>/dev/null || true |
185 |
180 |
186 # resolve file conflicts (with perl-locale) |
181 # resolve file conflicts (with perl-locale) |
187 rm -f $RPM_BUILD_ROOT%{l_prefix}/bin/enc2xs \ |
182 rm -f $RPM_BUILD_ROOT%{l_prefix}/bin/enc2xs \ |
188 $RPM_BUILD_ROOT%{l_prefix}/bin/piconv |
183 $RPM_BUILD_ROOT%{l_prefix}/bin/piconv \ |
|
184 $RPM_BUILD_ROOT%{l_prefix}/man/man1/enc2xs.1 \ |
|
185 $RPM_BUILD_ROOT%{l_prefix}/man/man1/piconv.1 |
189 |
186 |
190 # resolve file conflicts (with perl-module) |
187 # resolve file conflicts (with perl-module) |
191 rm -f $RPM_BUILD_ROOT%{l_prefix}/bin/corelist \ |
188 rm -f $RPM_BUILD_ROOT%{l_prefix}/bin/corelist \ |
192 $RPM_BUILD_ROOT%{l_prefix}/bin/config_data \ |
189 $RPM_BUILD_ROOT%{l_prefix}/bin/config_data \ |
193 $RPM_BUILD_ROOT%{l_prefix}/man/man1/config_data.1 |
190 $RPM_BUILD_ROOT%{l_prefix}/man/man1/config_data.1 \ |
|
191 $RPM_BUILD_ROOT%{l_prefix}/man/man1/corelist.1 \ |
|
192 $RPM_BUILD_ROOT%{l_prefix}/man/man1/cpan.1 \ |
|
193 $RPM_BUILD_ROOT%{l_prefix}/man/man1/instmodsh.1 |
194 |
194 |
195 # resolve file conflicts (with perl-sys) |
195 # resolve file conflicts (with perl-sys) |
196 rm -f $RPM_BUILD_ROOT%{l_prefix}/bin/ptar \ |
196 rm -f $RPM_BUILD_ROOT%{l_prefix}/bin/ptar \ |
197 $RPM_BUILD_ROOT%{l_prefix}/bin/ptardiff \ |
197 $RPM_BUILD_ROOT%{l_prefix}/bin/ptardiff \ |
198 $RPM_BUILD_ROOT%{l_prefix}/man/man1/ptar.1 \ |
198 $RPM_BUILD_ROOT%{l_prefix}/man/man1/ptar.1 \ |