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.149 by elmer, Wed Mar 4 17:55:37 2009 UTC

# Line 1 | Line 1
1 < ### RPM lcg root 5.14.00g-CMS11
1 > ### RPM lcg root 5.22.00a
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-TMVA-shut-the-hell-up-for-once
10 > Patch3:  root-5.22-00a-TMVA-shut-the-hell-up-again
11 > Patch4:  root-5.22-00a-CINTFunctional
12 > Patch5:  root-5.22-00a-TClass
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 xrootd
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 >             --with-xrootd=$XROOTD_ROOT
58 >             --enable-mysql --with-mysql-libdir=${MYSQL_ROOT}/lib --with-mysql-incdir=${MYSQL_ROOT}/include
59 >             --enable-qt --with-qt-libdir=${QT_ROOT}/lib --with-qt-incdir=${QT_ROOT}/include
60 >             --with-ssl-incdir=${OPENSSL_ROOT}/include
61 >             --with-ssl-libdir=${OPENSSL_ROOT}/lib"
62 > %endif
63 >
64 > CONFIG_ARGS="--with-f77=${GCC_ROOT}
65 >             --enable-table
66               --disable-builtin-pcre
67               --disable-builtin-freetype
68               --disable-builtin-zlib
69               --with-gccxml=${GCCXML_ROOT}
70               --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
71               --enable-explicitlink
72               --enable-qtgsi
49             --enable-qt --with-qt-libdir=${QT_ROOT}/lib --with-qt-incdir=${QT_ROOT}/include
50             --enable-mathcore
73               --enable-mathmore
74               --enable-reflex  
75               --enable-cintex
# Line 55 | Line 77 | CONFIG_ARGS="--enable-table
77               --enable-roofit
78               --disable-ldap
79               --disable-krb5
58             --with-ssl-incdir=${OPENSSL_ROOT}/include
59             --with-ssl-libdir=${OPENSSL_ROOT}/lib
80               --with-gsl-incdir=${GSL_ROOT}/include
81               --with-gsl-libdir=${GSL_ROOT}/lib
82               --with-dcap-libdir=${DCAP_ROOT}/lib
83               --with-dcap-incdir=${DCAP_ROOT}/include
64             --with-xrootd=$XROOTD_ROOT
84               --disable-pgsql
85 <             --disable-xml"
85 >             --disable-xml ${EXTRA_CONFIG_ARGS}"
86 >
87 > #case %gccver in
88 > #  4.*)
89 > #  CONFIG_ARGS="$CONFIG_ARGS --disable-cern"
90 > #  ;;
91 > #esac
92  
93   case $(uname)-$(uname -p) in
94    Linux-x86_64)
95 <    ./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;;
95 >    ./configure linuxx8664gcc $CONFIG_ARGS --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift --disable-astiff;;
96    Linux-i*86)
97 <    ./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;;
97 >    ./configure linux  $CONFIG_ARGS --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift;;
98    Darwin*)
99      ./configure macosx $CONFIG_ARGS --disable-rfio;;
100    Linux-ppc64*)
101      ./configure linux $CONFIG_ARGS --disable-rfio;;
102   esac
103  
104 < make  %makeprocesses
104 > case %cmsplatf in
105 >  osx*)
106 >   makeopts=
107 >  ;;
108 >  *)
109 >   makeopts="%makeprocesses"
110 >  ;;
111 > esac
112 >
113 > make $makeopts
114   make cintdlls
115 +
116   %install
117   # Override installers if we are using GNU fileutils cp.  On OS X
118   # ROOT's INSTALL is defined to "cp -pPR", which only works with
# Line 93 | Line 128 | fi
128   export ROOTSYS=%i
129   make INSTALL="$cp" INSTALLDATA="$cp" install
130   mkdir -p $ROOTSYS/lib/python
131 < cp -r reflex/python/genreflex $ROOTSYS/lib/python
131 > cp -r cint/reflex/python/genreflex $ROOTSYS/lib/python
132   #
133  
134   # SCRAM ToolBox toolfile
# Line 105 | Line 140 | cat << \EOF_TOOLFILE >%i/etc/scram.d/roo
140   <info url="http://root.cern.ch/root/"></info>
141   <lib name=Cint>
142   <lib name=Core>
143 + <lib name=RIO>
144 + <lib name=Net>
145   <lib name=Tree>
146   <Client>
147   <Environment name=ROOTCORE_BASE default="%i"></Environment>
# Line 121 | Line 158 | cat << \EOF_TOOLFILE >%i/etc/scram.d/roo
158   </Tool>
159   EOF_TOOLFILE
160  
161 < # root toolfile
161 > # root toolfile, alias for rootphysics. Using rootphysics is preferred.
162   cat << \EOF_TOOLFILE >%i/etc/scram.d/root
163   <doc type=BuildSystem::ToolDoc version=1.0>
164   <Tool name=root version=%v>
165   <info url="http://root.cern.ch/root/"></info>
166 + <use name=rootphysics>
167 + </Tool>
168 + EOF_TOOLFILE
169 +
170 + # roothistmatrix toolfile
171 + cat << \EOF_TOOLFILE >%i/etc/scram.d/roothistmatrix
172 + <doc type=BuildSystem::ToolDoc version=1.0>
173 + <Tool name=roothistmatrix version=%v>
174 + <info url="http://root.cern.ch/root/"></info>
175 + <lib name=Hist>
176 + <lib name=Matrix>
177 + <use name=ROOTCore>
178 + </Tool>
179 + EOF_TOOLFILE
180 +
181 + # rootphysics toolfile
182 + cat << \EOF_TOOLFILE >%i/etc/scram.d/rootphysics
183 + <doc type=BuildSystem::ToolDoc version=1.0>
184 + <Tool name=rootphysics version=%v>
185 + <info url="http://root.cern.ch/root/"></info>
186 + <lib name=Physics>
187 + <use name=roothistmatrix>
188 + </Tool>
189 + EOF_TOOLFILE
190 +
191 + # rootgraphics toolfile, identical to old "root" toolfile
192 + cat << \EOF_TOOLFILE >%i/etc/scram.d/rootgraphics
193 + <doc type=BuildSystem::ToolDoc version=1.0>
194 + <Tool name=rootgraphics version=%v>
195 + <info url="http://root.cern.ch/root/"></info>
196   <lib name=TreePlayer>
197   <lib name=Gpad>
198   <lib name=Graf3d>
# Line 149 | Line 216 | cat << \EOF_TOOLFILE >%i/etc/scram.d/roo
216   </Tool>
217   EOF_TOOLFILE
218  
219 < # rootinteractive toolfile
219 > # (temporarily eviscerated) rootinteractive toolfile (GQt/qt lib dependencies
220 > # have been removed for the moment)
221   cat << \EOF_TOOLFILE >%i/etc/scram.d/rootinteractive
222   <doc type=BuildSystem::ToolDoc version=1.0>
223   <Tool name=rootinteractive version=%v>
224   <info url="http://root.cern.ch/root/"></info>
225   <lib name=Rint>
226 + <use name=libjpg>
227 + <use name=libpng>
228 + <use name=ROOT>
229 + </Tool>
230 + EOF_TOOLFILE
231 +
232 + # rootinteractive2 toolfile (temporary, to allow access to Qt4)
233 + cat << \EOF_TOOLFILE >%i/etc/scram.d/rootinteractive2
234 + <doc type=BuildSystem::ToolDoc version=1.0>
235 + <Tool name=rootinteractive2 version=%v>
236 + <info url="http://root.cern.ch/root/"></info>
237 + <lib name=Rint>
238   <lib name=GQt>
239   <use name=qt>
240   <use name=libjpg>
# Line 163 | Line 243 | cat << \EOF_TOOLFILE >%i/etc/scram.d/roo
243   </Tool>
244   EOF_TOOLFILE
245  
246 +
247   # rootmath toolfile
248   cat << \EOF_TOOLFILE >%i/etc/scram.d/rootmath
249   <doc type=BuildSystem::ToolDoc version=1.0>
# Line 170 | Line 251 | cat << \EOF_TOOLFILE >%i/etc/scram.d/roo
251   <info url="http://root.cern.ch/root/"></info>
252   <lib name=MathCore>
253   <lib name=MathMore>
254 + <lib name=GenVector>
255   <use name=ROOTCore>
256   <use name=gsl>
257   </Tool>
# Line 229 | Line 311 | cat << \EOF_TOOLFILE >%i/etc/scram.d/roo
311   <doc type=BuildSystem::ToolDoc version=1.0>
312   <Tool name=rootroofit version=%v>
313   <info url="http://root.cern.ch/root/"></info>
314 + <lib name=RooFitCore>
315   <lib name=RooFit>
316   <use name=ROOTMinuit>
317   <use name=ROOTHtml>
# Line 268 | Line 351 | EOF_TOOLFILE
351   %post
352   %{relocateConfig}etc/scram.d/root
353   %{relocateConfig}etc/scram.d/rootcore
354 + %{relocateConfig}etc/scram.d/roothistmatrix
355 + %{relocateConfig}etc/scram.d/rootphysics
356 + %{relocateConfig}etc/scram.d/rootgraphics
357   %{relocateConfig}etc/scram.d/rootcintex
358   %{relocateConfig}etc/scram.d/rootinteractive
359   %{relocateConfig}etc/scram.d/rootmath

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines