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.13 by eulisse, Wed May 16 13:06:17 2007 UTC vs.
Revision 1.16 by elmer, Thu Jun 28 15:12:08 2007 UTC

# Line 1 | Line 1
1 < ### RPM external p5-xml-parser 2.34
1 > ### RPM external p5-xml-parser 2.34-CMS3
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}')
5   %define downloadn XML-Parser
6   %define expatversion 2.0.0
7 < Source0: http://mirror.switch.ch/ftp/mirror/CPAN/authors/id/M/MS/MSERGEANT/%{downloadn}-%{v}.tar.gz
7 > Source0: http://mirror.switch.ch/ftp/mirror/CPAN/authors/id/M/MS/MSERGEANT/%{downloadn}-%{realversion}.tar.gz
8   Source1: http://dl.sourceforge.net/sourceforge/expat/expat-%expatversion.tar.gz
9   %prep
10 < %setup -T -b 0 -n %{downloadn}-%v
10 > %setup -T -b 0 -n %{downloadn}-%{realversion}
11   %setup -D -T -b 1 -n expat-%expatversion
12   %build
13   # We statically compile expat so that the perl module itself,
# Line 18 | Line 18 | which gcc
18   rm -rf %_builddir/tmp
19   cd ../expat-%expatversion
20   mkdir -p %_builddir/tmp
21 < ./configure --prefix=%_builddir/tmp --disable-shared --enable-static
21 > ./configure --prefix=%_builddir/tmp --disable-shared --enable-static --with-pic
22   make clean
23   make
24   make install
25 < cd ../%{downloadn}-%v
25 > cd ../%{downloadn}-%{realversion}
26  
27   perl Makefile.PL PREFIX=%i LIB=%i/lib/site_perl/%perlversion \
28                   EXPATLIBPATH=%_builddir/tmp/lib \
# Line 49 | Line 49 | case %{cmsos} in
49              setarch x86_64 make clean
50              setarch x86_64 make
51              setarch x86_64 make install
52 <            cd ../%{downloadn}-%{v}
52 >            cd ../%{downloadn}-%{realversion}
53              perl Makefile.PL PREFIX=%i LIB=%i/lib/site_perl/%perlversion \
54                               EXPATLIBPATH=%_builddir/tmp/lib64 \
55                               EXPATINCPATH=%_builddir/tmp/include
56              make
57              make install
58 +        else
59 +            make install
60          fi;;
61      *)
62 +        make install
63      ;;
64   esac
65  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines