1 |
< |
### RPM external p5-xml-parser 2.34 |
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}-%{v}.tar.gz |
12 |
> |
Source0: http://mirror.switch.ch/ftp/mirror/CPAN/authors/id/M/MS/MSERGEANT/%{downloadn}-%{realversion}.tar.gz |
13 |
|
Source1: http://dl.sourceforge.net/sourceforge/expat/expat-%expatversion.tar.gz |
14 |
+ |
Provides: libc.so.6()(64bit) |
15 |
+ |
Provides: libc.so.6(GLIBC_2.2.5)(64bit) |
16 |
+ |
|
17 |
|
%prep |
18 |
< |
%setup -T -b 0 -n %{downloadn}-%v |
18 |
> |
%setup -T -b 0 -n %{downloadn}-%{realversion} |
19 |
|
%setup -D -T -b 1 -n expat-%expatversion |
20 |
|
%build |
21 |
|
# We statically compile expat so that the perl module itself, |
26 |
|
rm -rf %_builddir/tmp |
27 |
|
cd ../expat-%expatversion |
28 |
|
mkdir -p %_builddir/tmp |
29 |
< |
./configure --prefix=%_builddir/tmp --disable-shared --enable-static |
29 |
> |
./configure --prefix=%_builddir/tmp --disable-shared --enable-static --with-pic |
30 |
|
make clean |
31 |
|
make |
32 |
|
make install |
33 |
< |
cd ../%{downloadn}-%v |
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 |
57 |
|
setarch x86_64 make clean |
58 |
|
setarch x86_64 make |
59 |
|
setarch x86_64 make install |
60 |
< |
cd ../%{downloadn}-%{v} |
61 |
< |
perl Makefile.PL PREFIX=%i LIB=%i/lib/site_perl/%perlversion \ |
60 |
> |
cd ../%{downloadn}-%{realversion} |
61 |
> |
%perl Makefile.PL PREFIX=%i LIB=%i/lib/site_perl/%perlversion \ |
62 |
|
EXPATLIBPATH=%_builddir/tmp/lib64 \ |
63 |
|
EXPATINCPATH=%_builddir/tmp/include |
64 |
|
make |
65 |
|
make install |
66 |
+ |
else |
67 |
+ |
make install |
68 |
|
fi;; |
69 |
|
*) |
70 |
+ |
make install |
71 |
|
;; |
72 |
|
esac |
73 |
|
|