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.7 by eulisse, Tue May 2 17:08:03 2006 UTC vs.
Revision 1.57 by dlange, Mon May 14 02:43:18 2007 UTC

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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines