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.86 by elmer, Thu Jan 3 20:29:43 2008 UTC vs.
Revision 1.132 by elmer, Thu Jan 15 00:59:45 2009 UTC

# Line 1 | Line 1
1 < ### RPM lcg root 5.17.08-CMS19
1 > ### RPM lcg root 5.22.00
2   ## INITENV +PATH PYTHONPATH %i/lib/python
3   ## INITENV SET ROOTSYS %i
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 < #Patch: root-CINT-maxlongline
8 < #Patch1: root_libpng
9 < #Patch2: root_PositionVector
10 < #Patch3: root-fastmerge-ttree
11 < #Patch4: root_TXMLSetup
12 < #Patch5: root-Cintex
13 < #Patch6: root_Reflex_Cintex
14 < #Patch7: root_CallFunc
15 < ## The following patch should only be applied for gcc4.x (x>0) and when
16 < ## using gccxml 0.7.0
17 < #Patch9: root_5.14_reflex_gccxml070_update
18 < #Patch10: root-5.14-xrootd-20071001-0000a
19 < #Patch11: root-5.14-silence-tmva
7 > Patch0:  root-5.18-00-libpng
8 > Patch1:  root-5.21-04-CINT-maxlongline
9 > Patch2:  root-5.22-00-TClass-Clone
10 > Patch3:  root-5.22-00-gendict
11 > Patch4:  root-5.22-00-RootSys
12  
13   %define cpu %(echo %cmsplatf | cut -d_ -f2)
14   %define pythonv %(echo $PYTHON_VERSION | cut -d. -f1,2)
23 Requires: gccxml python qt gsl castor openssl mysql libpng libjpg dcap pcre zlib oracle libungif xrootd
15  
16 < %if "%cpu" != "amd64"
16 > Requires: gccxml gsl castor libjpg dcap pcre python
17 >
18 > %if "%cmsplatf" != "slc4onl_ia32_gcc346"
19 > Requires: qt openssl mysql libpng zlib libungif
20 > %else
21 > %define skiplibtiff true
22 > %endif
23 >
24 > %if "%cpu" == "amd64"
25 > %define skiplibtiff true
26 > %endif
27 >
28 > %if "%skiplibtiff" != "true"
29   Requires: libtiff
30   %endif
31  
32   %prep
33   %setup -n root
34 < #%patch -p0
35 < #%patch1 -p2
36 < #%patch2 -p2
37 < #%patch3 -p1
38 < #%patch4 -p0
36 < #%patch5 -p1
37 < #%patch6 -p0
38 < #%patch7 -p0
39 < #%if "%cmsplatf" == "slc4_ia32_gcc412"
40 < #%patch9 -p1
41 < #%endif
42 < #%patch10 -p1
43 < #%patch11 -p1
34 > %patch0 -p1
35 > %patch1 -p1
36 > %patch2 -p1
37 > %patch3 -p1
38 > %patch4 -p1
39  
40   %build
41   mkdir -p %i
42   export ROOTSYS=%_builddir/root
43 < CONFIG_ARGS="--enable-table
43 >
44 > %if "%cmsplatf" == "slc4onl_ia32_gcc346"
45 > # Build without mysql, and use system qt.
46 > # Also skip xrootd and odbc for online case:
47 >
48 > EXTRA_CONFIG_ARGS="
49 >             --disable-mysql
50 >             --disable-xrootd
51 >             --disable-odbc
52 >             --enable-qt"
53 > %else
54 > EXTRA_CONFIG_ARGS="
55 >             --enable-mysql --with-mysql-libdir=${MYSQL_ROOT}/lib --with-mysql-incdir=${MYSQL_ROOT}/include
56 >             --enable-qt --with-qt-libdir=${QT_ROOT}/lib --with-qt-incdir=${QT_ROOT}/include
57 >             --with-ssl-incdir=${OPENSSL_ROOT}/include
58 >             --with-ssl-libdir=${OPENSSL_ROOT}/lib"
59 > %endif
60 >
61 > CONFIG_ARGS="--with-f77=${GCC_ROOT}
62 >             --enable-table
63               --disable-builtin-pcre
64               --disable-builtin-freetype
65               --disable-builtin-zlib
66               --with-gccxml=${GCCXML_ROOT}
67               --enable-python --with-python-libdir=${PYTHON_ROOT}/lib --with-python-incdir=${PYTHON_ROOT}/include/python2.4
54             --enable-mysql --with-mysql-libdir=${MYSQL_ROOT}/lib --with-mysql-incdir=${MYSQL_ROOT}/include
68               --enable-explicitlink
69               --enable-qtgsi
57             --enable-qt --with-qt-libdir=${QT_ROOT}/lib --with-qt-incdir=${QT_ROOT}/include
58             --enable-mathcore
70               --enable-mathmore
71               --enable-reflex  
72               --enable-cintex
# Line 63 | Line 74 | CONFIG_ARGS="--enable-table
74               --enable-roofit
75               --disable-ldap
76               --disable-krb5
66             --with-ssl-incdir=${OPENSSL_ROOT}/include
67             --with-ssl-libdir=${OPENSSL_ROOT}/lib
77               --with-gsl-incdir=${GSL_ROOT}/include
78               --with-gsl-libdir=${GSL_ROOT}/lib
79               --with-dcap-libdir=${DCAP_ROOT}/lib
80               --with-dcap-incdir=${DCAP_ROOT}/include
72             --with-xrootd=$XROOTD_ROOT
81               --disable-pgsql
82 <             --disable-xml"
82 >             --disable-xml ${EXTRA_CONFIG_ARGS}"
83  
84 < %if (("%cmsplatf" == "slc4_ia32_gcc412")||("%cmsplatf" == "slc4_ia32_gcc422")||("%cmsplatf" == "slc4_amd64_gcc345"))
85 <  CONFIG_ARGS="$CONFIG_ARGS --disable-cern"
86 < %endif
84 > #case %gccver in
85 > #  4.*)
86 > #  CONFIG_ARGS="$CONFIG_ARGS --disable-cern"
87 > #  ;;
88 > #esac
89  
90   case $(uname)-$(uname -p) in
91    Linux-x86_64)
92 <    ./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 --disable-cern;;
92 >    ./configure linuxx8664gcc $CONFIG_ARGS --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift --disable-astiff --disable-cern;;
93    Linux-i*86)
94 <    ./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;;
94 >    ./configure linux  $CONFIG_ARGS --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift;;
95    Darwin*)
96      ./configure macosx $CONFIG_ARGS --disable-rfio;;
97    Linux-ppc64*)
# Line 105 | Line 115 | fi
115   export ROOTSYS=%i
116   make INSTALL="$cp" INSTALLDATA="$cp" install
117   mkdir -p $ROOTSYS/lib/python
118 < cp -r reflex/python/genreflex $ROOTSYS/lib/python
118 > cp -r cint/reflex/python/genreflex $ROOTSYS/lib/python
119   #
120  
121   # SCRAM ToolBox toolfile
# Line 135 | Line 145 | cat << \EOF_TOOLFILE >%i/etc/scram.d/roo
145   </Tool>
146   EOF_TOOLFILE
147  
148 < # root toolfile
148 > # root toolfile, alias for rootphysics. Using rootphysics is preferred.
149   cat << \EOF_TOOLFILE >%i/etc/scram.d/root
150   <doc type=BuildSystem::ToolDoc version=1.0>
151   <Tool name=root version=%v>
152   <info url="http://root.cern.ch/root/"></info>
153 + <use name=rootphysics>
154 + </Tool>
155 + EOF_TOOLFILE
156 +
157 + # roothistmatrix toolfile
158 + cat << \EOF_TOOLFILE >%i/etc/scram.d/roothistmatrix
159 + <doc type=BuildSystem::ToolDoc version=1.0>
160 + <Tool name=roothistmatrix version=%v>
161 + <info url="http://root.cern.ch/root/"></info>
162 + <lib name=Hist>
163 + <lib name=Matrix>
164 + <use name=ROOTCore>
165 + </Tool>
166 + EOF_TOOLFILE
167 +
168 + # rootphysics toolfile
169 + cat << \EOF_TOOLFILE >%i/etc/scram.d/rootphysics
170 + <doc type=BuildSystem::ToolDoc version=1.0>
171 + <Tool name=rootphysics version=%v>
172 + <info url="http://root.cern.ch/root/"></info>
173 + <lib name=Physics>
174 + <use name=roothistmatrix>
175 + </Tool>
176 + EOF_TOOLFILE
177 +
178 + # rootgraphics toolfile, identical to old "root" toolfile
179 + cat << \EOF_TOOLFILE >%i/etc/scram.d/rootgraphics
180 + <doc type=BuildSystem::ToolDoc version=1.0>
181 + <Tool name=rootgraphics version=%v>
182 + <info url="http://root.cern.ch/root/"></info>
183   <lib name=TreePlayer>
184   <lib name=Gpad>
185   <lib name=Graf3d>
# Line 184 | Line 224 | cat << \EOF_TOOLFILE >%i/etc/scram.d/roo
224   <info url="http://root.cern.ch/root/"></info>
225   <lib name=MathCore>
226   <lib name=MathMore>
227 + <lib name=GenVector>
228   <use name=ROOTCore>
229   <use name=gsl>
230   </Tool>
# Line 283 | Line 324 | EOF_TOOLFILE
324   %post
325   %{relocateConfig}etc/scram.d/root
326   %{relocateConfig}etc/scram.d/rootcore
327 + %{relocateConfig}etc/scram.d/roothistmatrix
328 + %{relocateConfig}etc/scram.d/rootphysics
329 + %{relocateConfig}etc/scram.d/rootgraphics
330   %{relocateConfig}etc/scram.d/rootcintex
331   %{relocateConfig}etc/scram.d/rootinteractive
332   %{relocateConfig}etc/scram.d/rootmath

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines