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.93 by elmer, Fri Jan 18 21:22:01 2008 UTC vs.
Revision 1.150 by elmer, Wed Mar 18 19:51:41 2009 UTC

# Line 1 | Line 1
1 < ### RPM lcg root 5.18.00-CMS19
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
6  
7 < Patch0: root-5.18-00-libpng
8 < Patch1: root-5.18-00-CINT-maxlongline
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 > Patch6:  root-5.22-00a-fireworks-graf3d-gui
14  
15   %define cpu %(echo %cmsplatf | cut -d_ -f2)
16   %define pythonv %(echo $PYTHON_VERSION | cut -d. -f1,2)
12 Requires: gccxml python qt gsl castor openssl mysql libpng libjpg dcap pcre zlib oracle libungif xrootd
17  
18 < %if "%cpu" != "amd64"
18 > Requires: gccxml gsl castor libjpg dcap pcre python
19 >
20 > %if "%cmsplatf" != "slc4onl_ia32_gcc346"
21 > Requires: qt openssl mysql libpng zlib libungif xrootd
22 > %else
23 > %define skiplibtiff true
24 > %endif
25 >
26 > %if "%cpu" == "amd64"
27 > %define skiplibtiff true
28 > %endif
29 >
30 > %if "%skiplibtiff" != "true"
31   Requires: libtiff
32   %endif
33  
# Line 19 | Line 35 | Requires: libtiff
35   %setup -n root
36   %patch0 -p1
37   %patch1 -p1
38 + %patch2 -p1
39 + %patch3 -p1
40 + %patch4 -p1
41 + %patch5 -p1
42 + %patch6 -p1
43  
44   %build
45   mkdir -p %i
46   export ROOTSYS=%_builddir/root
47 < CONFIG_ARGS="--enable-table
47 >
48 > %if "%cmsplatf" == "slc4onl_ia32_gcc346"
49 > # Build without mysql, and use system qt.
50 > # Also skip xrootd and odbc for online case:
51 >
52 > EXTRA_CONFIG_ARGS="
53 >             --disable-mysql
54 >             --disable-xrootd
55 >             --disable-odbc
56 >             --enable-qt"
57 > %else
58 > EXTRA_CONFIG_ARGS="
59 >             --with-xrootd=$XROOTD_ROOT
60 >             --enable-mysql --with-mysql-libdir=${MYSQL_ROOT}/lib --with-mysql-incdir=${MYSQL_ROOT}/include
61 >             --enable-qt --with-qt-libdir=${QT_ROOT}/lib --with-qt-incdir=${QT_ROOT}/include
62 >             --with-ssl-incdir=${OPENSSL_ROOT}/include
63 >             --with-ssl-libdir=${OPENSSL_ROOT}/lib"
64 > %endif
65 >
66 > CONFIG_ARGS="--with-f77=${GCC_ROOT}
67 >             --enable-table
68               --disable-builtin-pcre
69               --disable-builtin-freetype
70               --disable-builtin-zlib
71               --with-gccxml=${GCCXML_ROOT}
72               --enable-python --with-python-libdir=${PYTHON_ROOT}/lib --with-python-incdir=${PYTHON_ROOT}/include/python2.4
32             --enable-mysql --with-mysql-libdir=${MYSQL_ROOT}/lib --with-mysql-incdir=${MYSQL_ROOT}/include
73               --enable-explicitlink
74               --enable-qtgsi
35             --enable-qt --with-qt-libdir=${QT_ROOT}/lib --with-qt-incdir=${QT_ROOT}/include
36             --enable-mathcore
75               --enable-mathmore
76               --enable-reflex  
77               --enable-cintex
# Line 41 | Line 79 | CONFIG_ARGS="--enable-table
79               --enable-roofit
80               --disable-ldap
81               --disable-krb5
44             --with-ssl-incdir=${OPENSSL_ROOT}/include
45             --with-ssl-libdir=${OPENSSL_ROOT}/lib
82               --with-gsl-incdir=${GSL_ROOT}/include
83               --with-gsl-libdir=${GSL_ROOT}/lib
84               --with-dcap-libdir=${DCAP_ROOT}/lib
85               --with-dcap-incdir=${DCAP_ROOT}/include
50             --with-xrootd=$XROOTD_ROOT
86               --disable-pgsql
87 <             --disable-xml"
87 >             --disable-xml ${EXTRA_CONFIG_ARGS}"
88  
89 < %if (("%cmsplatf" == "slc4_ia32_gcc412")||("%cmsplatf" == "slc4_ia32_gcc422")||("%cmsplatf" == "slc4_amd64_gcc345"))
90 <  CONFIG_ARGS="$CONFIG_ARGS --disable-cern"
91 < %endif
89 > #case %gccver in
90 > #  4.*)
91 > #  CONFIG_ARGS="$CONFIG_ARGS --disable-cern"
92 > #  ;;
93 > #esac
94  
95   case $(uname)-$(uname -p) in
96    Linux-x86_64)
97 <    ./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;;
97 >    ./configure linuxx8664gcc $CONFIG_ARGS --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift --disable-astiff;;
98    Linux-i*86)
99 <    ./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;;
99 >    ./configure linux  $CONFIG_ARGS --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift;;
100    Darwin*)
101      ./configure macosx $CONFIG_ARGS --disable-rfio;;
102    Linux-ppc64*)
103      ./configure linux $CONFIG_ARGS --disable-rfio;;
104   esac
105  
106 < make  %makeprocesses
106 > case %cmsplatf in
107 >  osx*)
108 >   makeopts=
109 >  ;;
110 >  *)
111 >   makeopts="%makeprocesses"
112 >  ;;
113 > esac
114 >
115 > make $makeopts
116   make cintdlls
117 +
118   %install
119   # Override installers if we are using GNU fileutils cp.  On OS X
120   # ROOT's INSTALL is defined to "cp -pPR", which only works with
# Line 83 | Line 130 | fi
130   export ROOTSYS=%i
131   make INSTALL="$cp" INSTALLDATA="$cp" install
132   mkdir -p $ROOTSYS/lib/python
133 < cp -r reflex/python/genreflex $ROOTSYS/lib/python
133 > cp -r cint/reflex/python/genreflex $ROOTSYS/lib/python
134   #
135  
136   # SCRAM ToolBox toolfile
# Line 113 | Line 160 | cat << \EOF_TOOLFILE >%i/etc/scram.d/roo
160   </Tool>
161   EOF_TOOLFILE
162  
163 < # root toolfile
163 > # root toolfile, alias for rootphysics. Using rootphysics is preferred.
164   cat << \EOF_TOOLFILE >%i/etc/scram.d/root
165   <doc type=BuildSystem::ToolDoc version=1.0>
166   <Tool name=root version=%v>
167   <info url="http://root.cern.ch/root/"></info>
168 + <use name=rootphysics>
169 + </Tool>
170 + EOF_TOOLFILE
171 +
172 + # roothistmatrix toolfile
173 + cat << \EOF_TOOLFILE >%i/etc/scram.d/roothistmatrix
174 + <doc type=BuildSystem::ToolDoc version=1.0>
175 + <Tool name=roothistmatrix version=%v>
176 + <info url="http://root.cern.ch/root/"></info>
177 + <lib name=Hist>
178 + <lib name=Matrix>
179 + <use name=ROOTCore>
180 + </Tool>
181 + EOF_TOOLFILE
182 +
183 + # rootphysics toolfile
184 + cat << \EOF_TOOLFILE >%i/etc/scram.d/rootphysics
185 + <doc type=BuildSystem::ToolDoc version=1.0>
186 + <Tool name=rootphysics version=%v>
187 + <info url="http://root.cern.ch/root/"></info>
188 + <lib name=Physics>
189 + <use name=roothistmatrix>
190 + </Tool>
191 + EOF_TOOLFILE
192 +
193 + # rootgraphics toolfile, identical to old "root" toolfile
194 + cat << \EOF_TOOLFILE >%i/etc/scram.d/rootgraphics
195 + <doc type=BuildSystem::ToolDoc version=1.0>
196 + <Tool name=rootgraphics version=%v>
197 + <info url="http://root.cern.ch/root/"></info>
198   <lib name=TreePlayer>
199   <lib name=Gpad>
200   <lib name=Graf3d>
# Line 141 | Line 218 | cat << \EOF_TOOLFILE >%i/etc/scram.d/roo
218   </Tool>
219   EOF_TOOLFILE
220  
221 < # rootinteractive toolfile
221 > # (temporarily eviscerated) rootinteractive toolfile (GQt/qt lib dependencies
222 > # have been removed for the moment)
223   cat << \EOF_TOOLFILE >%i/etc/scram.d/rootinteractive
224   <doc type=BuildSystem::ToolDoc version=1.0>
225   <Tool name=rootinteractive version=%v>
226   <info url="http://root.cern.ch/root/"></info>
227   <lib name=Rint>
228 + <use name=libjpg>
229 + <use name=libpng>
230 + <use name=ROOT>
231 + </Tool>
232 + EOF_TOOLFILE
233 +
234 + # rootinteractive2 toolfile (temporary, to allow access to Qt4)
235 + cat << \EOF_TOOLFILE >%i/etc/scram.d/rootinteractive2
236 + <doc type=BuildSystem::ToolDoc version=1.0>
237 + <Tool name=rootinteractive2 version=%v>
238 + <info url="http://root.cern.ch/root/"></info>
239 + <lib name=Rint>
240   <lib name=GQt>
241   <use name=qt>
242   <use name=libjpg>
# Line 155 | Line 245 | cat << \EOF_TOOLFILE >%i/etc/scram.d/roo
245   </Tool>
246   EOF_TOOLFILE
247  
248 +
249   # rootmath toolfile
250   cat << \EOF_TOOLFILE >%i/etc/scram.d/rootmath
251   <doc type=BuildSystem::ToolDoc version=1.0>
# Line 162 | Line 253 | cat << \EOF_TOOLFILE >%i/etc/scram.d/roo
253   <info url="http://root.cern.ch/root/"></info>
254   <lib name=MathCore>
255   <lib name=MathMore>
256 + <lib name=GenVector>
257   <use name=ROOTCore>
258   <use name=gsl>
259   </Tool>
# Line 261 | Line 353 | EOF_TOOLFILE
353   %post
354   %{relocateConfig}etc/scram.d/root
355   %{relocateConfig}etc/scram.d/rootcore
356 + %{relocateConfig}etc/scram.d/roothistmatrix
357 + %{relocateConfig}etc/scram.d/rootphysics
358 + %{relocateConfig}etc/scram.d/rootgraphics
359   %{relocateConfig}etc/scram.d/rootcintex
360   %{relocateConfig}etc/scram.d/rootinteractive
361   %{relocateConfig}etc/scram.d/rootmath

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines