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

Comparing COMP/CMSDIST/root.spec (file contents):
Revision 1.5 by eulisse, Tue Apr 11 14:52:58 2006 UTC vs.
Revision 1.56 by elmer, Sun Apr 22 13:30:37 2007 UTC

# Line 1 | Line 1
1 < ### RPM lcg root 5.10.00b
1 > ### RPM lcg root 5.14.00e
2   # INITENV +PATH PYTHONPATH %i/lib/python
3 < # Source: cvs://:pserver:cvs@root.cern.ch:2401/user/cvs?passwd=Ah<Z&tag=-rv%(echo %v | tr . -)&module=root&output=/%{n}_v%{v}.source.tar.gz
4 < Source: ftp://root.cern.ch/%n/%{n}_v%{v}.source.tar.gz
5 < Requires: gccxml python qt gsl
6 < Patch0: root
3 > %define realVersion %(echo %v | cut -d- -f1)
4 > Source: cvs://:pserver:cvs@root.cern.ch:2401/user/cvs?passwd=Ah<Z&tag=-rv%(echo %realVersion | tr . -)&module=root&output=/%{n}_v%{realVersion}.source.tar.gz
5 > #Source: ftp://root.cern.ch/%n/%{n}_v%{realVersion}.source.tar.gz
6 >
7 > %define cpu %(echo %cmsplatf | cut -d_ -f2)
8 > %define pythonv %(echo $PYTHON_VERSION | cut -d. -f1,2)
9 > Requires: gccxml python qt gsl castor openssl mysql libpng libjpg dcap pcre zlib oracle libungif
10 >
11 > %if "%cpu" != "amd64"
12 > Requires: libtiff
13 > %endif
14 >
15   %prep
16   %setup -n root
9 %patch0
17  
18   %build
19   mkdir -p %i
20 < export ROOTSYS=%i
20 > export ROOTSYS=%_builddir/root
21   CONFIG_ARGS="--enable-table
22 +             --disable-builtin-pcre
23 +             --disable-builtin-freetype
24 +             --disable-builtin-zlib
25               --with-gccxml=${GCCXML_ROOT}
26 <             --enable-python --with-python-libdir=${PYTHON_ROOT}/lib --with-python-incdir=${PYTHON_ROOT}/include
26 >             --enable-python --with-python-libdir=${PYTHON_ROOT}/lib --with-python-incdir=${PYTHON_ROOT}/include/python2.4
27 >             --enable-mysql --with-mysql-libdir=${MYSQL_ROOT}/lib --with-mysql-incdir=${MYSQL_ROOT}/include
28               --enable-explicitlink
29 +             --enable-qtgsi
30               --enable-qt --with-qt-libdir=${QT_ROOT}/lib --with-qt-incdir=${QT_ROOT}/include
31               --enable-mathcore
32 +             --enable-mathmore
33               --enable-reflex  
34               --enable-cintex
35               --enable-minuit2
36 <             --enable-roofit"
36 >             --enable-roofit
37 >             --disable-ldap
38 >             --disable-krb5
39 >                 --with-dcap-libdir=${DCAP_ROOT}/lib
40 >             --with-dcap-incdir=${DCAP_ROOT}/include
41 >             --with-ssl-incdir=${OPENSSL_ROOT}/include
42 >             --with-ssl-libdir=${OPENSSL_ROOT}/lib
43 >             --with-gsl-incdir=${GSL_ROOT}/include
44 >             --with-gsl-libdir=${GSL_ROOT}/lib
45 >             --disable-pgsql
46 >             --disable-xml"
47  
48 < case $(uname)-$(uname -m) in
48 > case $(uname)-$(uname -p) in
49    Linux-x86_64)
50 <    ./configure linuxx8664gcc $CONFIG_ARGS;;
51 <  Linux*)
52 <    ./configure linux $CONFIG_ARGS;;
53 <  Darwin)
54 <    ./configure macosx $CONFIG_ARGS;;
50 >    ./configure linuxx8664gcc $CONFIG_ARGS --enable-oracle --with-oracle-libdir=${ORACLE_ROOT}/lib --with-oracle-incdir=${ORACLE_ROOT}/include --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift --disable-astiff;;
51 >  Linux-i*86)
52 >    ./configure linux  $CONFIG_ARGS --enable-oracle --with-oracle-libdir=${ORACLE_ROOT}/lib --with-oracle-incdir=${ORACLE_ROOT}/include --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift;;
53 >  Darwin*)
54 >    ./configure macosx $CONFIG_ARGS --disable-rfio;;
55 >  Linux-ppc64*)
56 >    ./configure linux $CONFIG_ARGS --disable-rfio;;
57   esac
58  
59 < make %makeprocesses
60 <
59 > make
60 > make cintdlls
61   %install
62   # Override installers if we are using GNU fileutils cp.  On OS X
63   # ROOT's INSTALL is defined to "cp -pPR", which only works with
# Line 45 | Line 70 | else
70    cp="cp -pPR"
71   fi
72  
73 < export ROOTSYS=%i
73 > export ROOTSYS=%i/root
74   make INSTALL="$cp" INSTALLDATA="$cp" install
75 < mkdir -p %i/lib/python
76 < cp -r reflex/python/genreflex %i/lib/python
75 > mkdir -p %i/root/lib/python
76 > cp -r reflex/python/genreflex %i/root/lib/python
77 > #

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines