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.73 by dlange, Mon Oct 15 12:31:04 2007 UTC vs.
Revision 1.133 by elmer, Thu Jan 15 22:51:46 2009 UTC

# Line 1 | Line 1
1 < ### RPM lcg root 5.14.00g-CMS11
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
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 < Patch8: root-proofd
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 > Patch5:  root-5.22-00-TMVA-shut-the-hell-up-for-once
13  
14   %define cpu %(echo %cmsplatf | cut -d_ -f2)
15   %define pythonv %(echo $PYTHON_VERSION | cut -d. -f1,2)
19 Requires: gccxml python qt gsl castor openssl mysql libpng libjpg dcap pcre zlib oracle libungif xrootd
16  
17 < %if "%cpu" != "amd64"
17 > Requires: gccxml gsl castor libjpg dcap pcre python
18 >
19 > %if "%cmsplatf" != "slc4onl_ia32_gcc346"
20 > Requires: qt openssl mysql libpng zlib libungif
21 > %else
22 > %define skiplibtiff true
23 > %endif
24 >
25 > %if "%cpu" == "amd64"
26 > %define skiplibtiff true
27 > %endif
28 >
29 > %if "%skiplibtiff" != "true"
30   Requires: libtiff
31   %endif
32  
33   %prep
34   %setup -n root
35 < %patch -p0
36 < %patch1 -p2
37 < %patch2 -p2
35 > %patch0 -p1
36 > %patch1 -p1
37 > %patch2 -p1
38   %patch3 -p1
39 < %patch4 -p0
39 > %patch4 -p1
40   %patch5 -p1
33 %patch6 -p0
34 %patch7 -p0
35 %patch8 -p1
41  
42   %build
43   mkdir -p %i
44   export ROOTSYS=%_builddir/root
45 < CONFIG_ARGS="--enable-table
45 >
46 > %if "%cmsplatf" == "slc4onl_ia32_gcc346"
47 > # Build without mysql, and use system qt.
48 > # Also skip xrootd and odbc for online case:
49 >
50 > EXTRA_CONFIG_ARGS="
51 >             --disable-mysql
52 >             --disable-xrootd
53 >             --disable-odbc
54 >             --enable-qt"
55 > %else
56 > EXTRA_CONFIG_ARGS="
57 >             --enable-mysql --with-mysql-libdir=${MYSQL_ROOT}/lib --with-mysql-incdir=${MYSQL_ROOT}/include
58 >             --enable-qt --with-qt-libdir=${QT_ROOT}/lib --with-qt-incdir=${QT_ROOT}/include
59 >             --with-ssl-incdir=${OPENSSL_ROOT}/include
60 >             --with-ssl-libdir=${OPENSSL_ROOT}/lib"
61 > %endif
62 >
63 > CONFIG_ARGS="--with-f77=${GCC_ROOT}
64 >             --enable-table
65               --disable-builtin-pcre
66               --disable-builtin-freetype
67               --disable-builtin-zlib
68               --with-gccxml=${GCCXML_ROOT}
69               --enable-python --with-python-libdir=${PYTHON_ROOT}/lib --with-python-incdir=${PYTHON_ROOT}/include/python2.4
46             --enable-mysql --with-mysql-libdir=${MYSQL_ROOT}/lib --with-mysql-incdir=${MYSQL_ROOT}/include
70               --enable-explicitlink
71               --enable-qtgsi
49             --enable-qt --with-qt-libdir=${QT_ROOT}/lib --with-qt-incdir=${QT_ROOT}/include
50             --enable-mathcore
72               --enable-mathmore
73               --enable-reflex  
74               --enable-cintex
# Line 55 | Line 76 | CONFIG_ARGS="--enable-table
76               --enable-roofit
77               --disable-ldap
78               --disable-krb5
58             --with-ssl-incdir=${OPENSSL_ROOT}/include
59             --with-ssl-libdir=${OPENSSL_ROOT}/lib
79               --with-gsl-incdir=${GSL_ROOT}/include
80               --with-gsl-libdir=${GSL_ROOT}/lib
81               --with-dcap-libdir=${DCAP_ROOT}/lib
82               --with-dcap-incdir=${DCAP_ROOT}/include
64             --with-xrootd=$XROOTD_ROOT
83               --disable-pgsql
84 <             --disable-xml"
84 >             --disable-xml ${EXTRA_CONFIG_ARGS}"
85 >
86 > #case %gccver in
87 > #  4.*)
88 > #  CONFIG_ARGS="$CONFIG_ARGS --disable-cern"
89 > #  ;;
90 > #esac
91  
92   case $(uname)-$(uname -p) in
93    Linux-x86_64)
94 <    ./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;;
94 >    ./configure linuxx8664gcc $CONFIG_ARGS --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift --disable-astiff --disable-cern;;
95    Linux-i*86)
96 <    ./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;;
96 >    ./configure linux  $CONFIG_ARGS --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift;;
97    Darwin*)
98      ./configure macosx $CONFIG_ARGS --disable-rfio;;
99    Linux-ppc64*)
# Line 93 | Line 117 | fi
117   export ROOTSYS=%i
118   make INSTALL="$cp" INSTALLDATA="$cp" install
119   mkdir -p $ROOTSYS/lib/python
120 < cp -r reflex/python/genreflex $ROOTSYS/lib/python
120 > cp -r cint/reflex/python/genreflex $ROOTSYS/lib/python
121   #
122  
123   # SCRAM ToolBox toolfile
# Line 105 | Line 129 | cat << \EOF_TOOLFILE >%i/etc/scram.d/roo
129   <info url="http://root.cern.ch/root/"></info>
130   <lib name=Cint>
131   <lib name=Core>
132 + <lib name=RIO>
133 + <lib name=Net>
134   <lib name=Tree>
135   <Client>
136   <Environment name=ROOTCORE_BASE default="%i"></Environment>
# Line 121 | Line 147 | cat << \EOF_TOOLFILE >%i/etc/scram.d/roo
147   </Tool>
148   EOF_TOOLFILE
149  
150 < # root toolfile
150 > # root toolfile, alias for rootphysics. Using rootphysics is preferred.
151   cat << \EOF_TOOLFILE >%i/etc/scram.d/root
152   <doc type=BuildSystem::ToolDoc version=1.0>
153   <Tool name=root version=%v>
154   <info url="http://root.cern.ch/root/"></info>
155 + <use name=rootphysics>
156 + </Tool>
157 + EOF_TOOLFILE
158 +
159 + # roothistmatrix toolfile
160 + cat << \EOF_TOOLFILE >%i/etc/scram.d/roothistmatrix
161 + <doc type=BuildSystem::ToolDoc version=1.0>
162 + <Tool name=roothistmatrix version=%v>
163 + <info url="http://root.cern.ch/root/"></info>
164 + <lib name=Hist>
165 + <lib name=Matrix>
166 + <use name=ROOTCore>
167 + </Tool>
168 + EOF_TOOLFILE
169 +
170 + # rootphysics toolfile
171 + cat << \EOF_TOOLFILE >%i/etc/scram.d/rootphysics
172 + <doc type=BuildSystem::ToolDoc version=1.0>
173 + <Tool name=rootphysics version=%v>
174 + <info url="http://root.cern.ch/root/"></info>
175 + <lib name=Physics>
176 + <use name=roothistmatrix>
177 + </Tool>
178 + EOF_TOOLFILE
179 +
180 + # rootgraphics toolfile, identical to old "root" toolfile
181 + cat << \EOF_TOOLFILE >%i/etc/scram.d/rootgraphics
182 + <doc type=BuildSystem::ToolDoc version=1.0>
183 + <Tool name=rootgraphics version=%v>
184 + <info url="http://root.cern.ch/root/"></info>
185   <lib name=TreePlayer>
186   <lib name=Gpad>
187   <lib name=Graf3d>
# Line 170 | Line 226 | cat << \EOF_TOOLFILE >%i/etc/scram.d/roo
226   <info url="http://root.cern.ch/root/"></info>
227   <lib name=MathCore>
228   <lib name=MathMore>
229 + <lib name=GenVector>
230   <use name=ROOTCore>
231   <use name=gsl>
232   </Tool>
# Line 229 | Line 286 | cat << \EOF_TOOLFILE >%i/etc/scram.d/roo
286   <doc type=BuildSystem::ToolDoc version=1.0>
287   <Tool name=rootroofit version=%v>
288   <info url="http://root.cern.ch/root/"></info>
289 + <lib name=RooFitCore>
290   <lib name=RooFit>
291   <use name=ROOTMinuit>
292   <use name=ROOTHtml>
# Line 268 | Line 326 | EOF_TOOLFILE
326   %post
327   %{relocateConfig}etc/scram.d/root
328   %{relocateConfig}etc/scram.d/rootcore
329 + %{relocateConfig}etc/scram.d/roothistmatrix
330 + %{relocateConfig}etc/scram.d/rootphysics
331 + %{relocateConfig}etc/scram.d/rootgraphics
332   %{relocateConfig}etc/scram.d/rootcintex
333   %{relocateConfig}etc/scram.d/rootinteractive
334   %{relocateConfig}etc/scram.d/rootmath

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines