ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/p5-xml-parser.spec
(Generate patch)

Comparing COMP/CMSDIST/p5-xml-parser.spec (file contents):
Revision 1.14 by elmer, Wed Jun 27 13:34:02 2007 UTC vs.
Revision 1.20 by eulisse, Wed Jan 9 16:00:42 2008 UTC

# Line 1 | Line 1
1 < ### RPM external p5-xml-parser 2.34-CMS3
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
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}-%{realversion}
19   %setup -D -T -b 1 -n expat-%expatversion
# Line 18 | Line 26 | which gcc
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}-%{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
# Line 50 | Line 58 | case %{cmsos} in
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
65              make install
66 +        else
67 +            make install
68          fi;;
69      *)
70 +        make install
71      ;;
72   esac
73  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines