1 |
|
### RPM external p5-xml-parser 2.34-CMS19 |
2 |
|
## INITENV +PATH PERL5LIB %i/lib/site_perl/%perlversion |
3 |
< |
%define perlversion %(perl -e 'printf "%%vd", $^V') |
4 |
< |
%define perlarch %(perl -MConfig -e 'print $Config{archname}') |
3 |
> |
%define perl /usr/bin/env perl |
4 |
> |
%if "%(echo %cmsplatf | cut -f1 -d_ | sed -e 's|\([A-Za-z]*\)[0-9]*|\1|')" == "osx" |
5 |
> |
%define perl /usr/bin/perl |
6 |
> |
%endif |
7 |
> |
|
8 |
> |
%define perlversion %(%perl -e 'printf "%%vd", $^V') |
9 |
> |
%define perlarch %(%perl -MConfig -e 'print $Config{archname}') |
10 |
|
%define downloadn XML-Parser |
11 |
|
%define expatversion 2.0.0 |
12 |
|
Source0: http://mirror.switch.ch/ftp/mirror/CPAN/authors/id/M/MS/MSERGEANT/%{downloadn}-%{realversion}.tar.gz |
32 |
|
make install |
33 |
|
cd ../%{downloadn}-%{realversion} |
34 |
|
|
35 |
< |
perl Makefile.PL PREFIX=%i LIB=%i/lib/site_perl/%perlversion \ |
35 |
> |
%perl Makefile.PL PREFIX=%i LIB=%i/lib/site_perl/%perlversion \ |
36 |
|
EXPATLIBPATH=%_builddir/tmp/lib \ |
37 |
|
EXPATINCPATH=%_builddir/tmp/include |
38 |
|
make |
58 |
|
setarch x86_64 make |
59 |
|
setarch x86_64 make install |
60 |
|
cd ../%{downloadn}-%{realversion} |
61 |
< |
perl Makefile.PL PREFIX=%i LIB=%i/lib/site_perl/%perlversion \ |
61 |
> |
%perl Makefile.PL PREFIX=%i LIB=%i/lib/site_perl/%perlversion \ |
62 |
|
EXPATLIBPATH=%_builddir/tmp/lib64 \ |
63 |
|
EXPATINCPATH=%_builddir/tmp/include |
64 |
|
make |