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.275 by zafar, Mon Jul 11 10:04:41 2011 UTC

# Line 1 | Line 1
1 < ### RPM lcg root 5.18.00-CMS19
1 > ### RPM lcg root 5.30.00-rc2
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
3 > ## INITENV SET ROOTSYS %i  
4 > #Source: ftp://root.cern.ch/%n/%{n}_v%{realversion}.source.tar.gz
5 > %define svntag %(echo %realversion | tr . -)
6 > Source: svn://root.cern.ch/svn/root/tags/v%{svntag}/?scheme=http&strategy=export&module=%n-%{realversion}&output=/%n-%{realversion}.tgz
7 > %define online %(case %cmsplatf in (*onl_*_*) echo true;; (*) echo false;; esac)
8 > %define ismac %(case %cmsplatf in (osx*) echo true;; (*) echo false;; esac)
9 >
10 > Patch0: root-5.28-00d-externals
11 > Patch1: root-5.28-00d-CINT-maxlongline-maxtypedef
12 > Patch2: root-5.28-00d-roofit-silence-static-printout
13 > Patch3: root-5.28-00d-linker-gnu-hash-style
14 > Patch4: root-5.28-00d-TBranchElement-dropped-data-member
15 > Patch5: root-5.28-00d-r37582-tmva
16 > #Patch6: root-5.28-00d-TTreeCache-r37919
17 > #Patch7: root-5.28-00d-r38248-r38259-r38264-r38265-r38267
18 > #Patch8: root-5.28-00d-fireworks1
19 > #Patch9: root-5.28-00d-r39155
20 > #Patch10: root-5.28-00d-r39525
21 > #Patch11: root-5.28-00d-r39657
22 > #Patch12: root-5.28-00d-r39759
23 > Patch13: root-5.28-00d-fix-tsystem-load-macosx
24 >
25 > %define cpu %(echo %cmsplatf | cut -d_ -f2)
26  
27 < Patch0: root-5.18-00-libpng
8 < Patch1: root-5.18-00-CINT-maxlongline
27 > Requires: gccxml gsl libjpg libpng libtiff libungif pcre python fftw3 xz xrootd
28  
29 < %define cpu %(echo %cmsplatf | cut -d_ -f2)
30 < %define pythonv %(echo $PYTHON_VERSION | cut -d. -f1,2)
31 < Requires: gccxml python qt gsl castor openssl mysql libpng libjpg dcap pcre zlib oracle libungif xrootd
29 > %if "%ismac" != "true"
30 > Requires: castor dcap
31 > %endif
32 >
33 > %if "%online" != "true"
34 > Requires: openssl zlib
35 > %endif
36  
37 < %if "%cpu" != "amd64"
38 < Requires: libtiff
37 > %if "%ismac" == "true"
38 > Requires: gfortran-macosx
39   %endif
40  
41   %prep
42 < %setup -n root
42 > %setup -n root-%realversion
43   %patch0 -p1
44   %patch1 -p1
45 + %patch2 -p1
46 + # patch3 is OS version dependent, see below
47 + %patch4 -p1
48 + %patch5 -p1
49 + # patch6 -p1
50 + # patch7 -p1
51 + # patch8 -p1
52 + # patch9 -p1
53 + # patch10 -p1 TRY AGAIN!
54 + # patch11 -p0
55 + # patch12 -p2
56 + %patch13 -p1
57 +
58 + # The following patch can only be applied on SLC5 or later (extra linker
59 + # options only available with the SLC5 binutils)
60 + case %cmsplatf in
61 +  slc5_* | slc5onl_* )
62 + %patch3 -p1
63 +  ;;
64 + esac
65 +
66 + # Delete these (irrelevant) files as the fits appear to confuse rpm on OSX
67 + # (It tries to run install_name_tool on them.)
68 + rm -fR tutorials/fitsio
69  
70   %build
71 +
72   mkdir -p %i
73 + export LIBJPG_ROOT
74   export ROOTSYS=%_builddir/root
75 + export PYTHONV=$(echo $PYTHON_VERSION | cut -f1,2 -d.)
76 +
77 + %if "%online" == "true"
78 + # Also skip xrootd and odbc for online case:
79 +
80 + EXTRA_CONFIG_ARGS="--with-f77=/usr
81 +             --disable-odbc --disable-astiff"
82 + %else
83 + export LIBPNG_ROOT ZLIB_ROOT LIBTIFF_ROOT LIBUNGIF_ROOT
84 + EXTRA_CONFIG_ARGS="--with-f77=${GCC_ROOT}
85 +             --with-ssl-incdir=${OPENSSL_ROOT}/include
86 +             --with-ssl-libdir=${OPENSSL_ROOT}/lib"
87 + %endif
88 +
89   CONFIG_ARGS="--enable-table
90               --disable-builtin-pcre
91               --disable-builtin-freetype
92               --disable-builtin-zlib
93               --with-gccxml=${GCCXML_ROOT}
94 <             --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
94 >             --enable-python --with-python-libdir=${PYTHON_ROOT}/lib --with-python-incdir=${PYTHON_ROOT}/include/python${PYTHONV}
95               --enable-explicitlink
34             --enable-qtgsi
35             --enable-qt --with-qt-libdir=${QT_ROOT}/lib --with-qt-incdir=${QT_ROOT}/include
36             --enable-mathcore
96               --enable-mathmore
97               --enable-reflex  
98               --enable-cintex
99 <             --enable-minuit2
100 <             --enable-roofit
99 >             --enable-minuit2
100 >             --enable-lzma
101 >             --with-lzma-incdir=${XZ_ROOT}/include
102 >             --with-lzma-libdir=${XZ_ROOT}/lib
103 >             --enable-fftw3
104 >             --with-fftw3-incdir=${FFTW3_ROOT}/include
105 >             --with-fftw3-libdir=${FFTW3_ROOT}/lib
106               --disable-ldap
107               --disable-krb5
108 <             --with-ssl-incdir=${OPENSSL_ROOT}/include
45 <             --with-ssl-libdir=${OPENSSL_ROOT}/lib
108 >             --with-xrootd=${XROOTD_ROOT}
109               --with-gsl-incdir=${GSL_ROOT}/include
110               --with-gsl-libdir=${GSL_ROOT}/lib
111               --with-dcap-libdir=${DCAP_ROOT}/lib
112               --with-dcap-incdir=${DCAP_ROOT}/include
50             --with-xrootd=$XROOTD_ROOT
113               --disable-pgsql
114 <             --disable-xml"
115 <
116 < %if (("%cmsplatf" == "slc4_ia32_gcc412")||("%cmsplatf" == "slc4_ia32_gcc422")||("%cmsplatf" == "slc4_amd64_gcc345"))
117 <  CONFIG_ARGS="$CONFIG_ARGS --disable-cern"
118 < %endif
119 <
120 < case $(uname)-$(uname -p) in
121 <  Linux-x86_64)
122 <    ./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;;
123 <  Linux-i*86)
124 <    ./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;;
125 <  Darwin*)
126 <    ./configure macosx $CONFIG_ARGS --disable-rfio;;
127 <  Linux-ppc64*)
114 >             --disable-mysql
115 >             --disable-qt --disable-qtgsi
116 >             --disable-oracle ${EXTRA_CONFIG_ARGS}"
117 >
118 > case %cmsos in
119 >  slc*_amd64)
120 >    ./configure linuxx8664gcc $CONFIG_ARGS --with-rfio-libdir=${CASTOR_ROOT}/lib --with-rfio-incdir=${CASTOR_ROOT}/include/shift --with-castor-libdir=${CASTOR_ROOT}/lib --with-castor-incdir=${CASTOR_ROOT}/include/shift ;;
121 >  slc*_ia32)
122 >    ./configure linux  $CONFIG_ARGS --with-rfio-libdir=${CASTOR_ROOT}/lib --with-rfio-incdir=${CASTOR_ROOT}/include/shift --with-castor-libdir=${CASTOR_ROOT}/lib --with-castor-incdir=${CASTOR_ROOT}/include/shift ;;
123 >  osx*)
124 >    case %cmsplatf in
125 >    *_ia32_* )
126 >      comparch=i386
127 >      macconfig=macosx
128 >      ;;
129 >    *_amd64_* )
130 >      comparch=x86_64
131 >      macconfig=macosx64
132 >      ;;
133 >    * )
134 >      comparch=ppc
135 >      macconfig=macosx
136 >      ;;
137 >    esac
138 >    export CC=`which gcc` CXX=`which g++`
139 >    ./configure $arch $CONFIG_ARGS --with-cc="$CC" --with-cxx="$CXX" --disable-rfio --disable-builtin_afterimage ;;
140 >  slc*_ppc64*)
141      ./configure linux $CONFIG_ARGS --disable-rfio;;
142   esac
143  
144 < make  %makeprocesses
145 < make cintdlls
144 > makeopts="%makeprocesses"
145 >
146 > make $makeopts
147 >
148   %install
149   # Override installers if we are using GNU fileutils cp.  On OS X
150   # ROOT's INSTALL is defined to "cp -pPR", which only works with
# Line 83 | Line 160 | fi
160   export ROOTSYS=%i
161   make INSTALL="$cp" INSTALLDATA="$cp" install
162   mkdir -p $ROOTSYS/lib/python
163 < cp -r reflex/python/genreflex $ROOTSYS/lib/python
164 < #
163 > cp -r cint/reflex/python/genreflex $ROOTSYS/lib/python
164 > # This file confuses rpm's find-requires because it starts with
165 > # a """ and it thinks is the shebang.
166 > rm -f %i/tutorials/pyroot/mrt.py
167 >
168  
89 # SCRAM ToolBox toolfile
90 mkdir -p %i/etc/scram.d
91 # rootcore toolfile
92 cat << \EOF_TOOLFILE >%i/etc/scram.d/rootcore
93 <doc type=BuildSystem::ToolDoc version=1.0>
94 <Tool name=rootcore version=%v>
95 <info url="http://root.cern.ch/root/"></info>
96 <lib name=Cint>
97 <lib name=Core>
98 <lib name=RIO>
99 <lib name=Net>
100 <lib name=Tree>
101 <Client>
102 <Environment name=ROOTCORE_BASE default="%i"></Environment>
103 <Environment name=LIBDIR default="$ROOTCORE_BASE/lib"></Environment>
104 <Environment name=INCLUDE default="$ROOTCORE_BASE/include"></Environment>
105 <Environment name=INCLUDE default="$ROOTCORE_BASE/cint"></Environment>
106 </Client>
107 <use name=sockets>
108 <use name=pcre>
109 <use name=zlib>
110 <Runtime name=PATH value="$ROOTCORE_BASE/bin" type=path>
111 <Runtime name=ROOTSYS value="$ROOTCORE_BASE/">
112 <Runtime name=PYTHONPATH value="$ROOTCORE_BASE/lib" type=path>
113 </Tool>
114 EOF_TOOLFILE
115
116 # root toolfile
117 cat << \EOF_TOOLFILE >%i/etc/scram.d/root
118 <doc type=BuildSystem::ToolDoc version=1.0>
119 <Tool name=root version=%v>
120 <info url="http://root.cern.ch/root/"></info>
121 <lib name=TreePlayer>
122 <lib name=Gpad>
123 <lib name=Graf3d>
124 <lib name=Graf>
125 <lib name=Hist>
126 <lib name=Matrix>
127 <lib name=Physics>
128 <lib name=Postscript>
129 <use name=ROOTCore>
130 </Tool>
131 EOF_TOOLFILE
132
133 # rootcintex toolfile
134 cat << \EOF_TOOLFILE >%i/etc/scram.d/rootcintex
135 <doc type=BuildSystem::ToolDoc version=1.0>
136 <Tool name=rootcintex version=%v>
137 <info url="http://root.cern.ch/root/"></info>
138 <lib name=Cintex>
139 <use name=ROOTRflx>
140 <use name=ROOTCore>
141 </Tool>
142 EOF_TOOLFILE
143
144 # rootinteractive toolfile
145 cat << \EOF_TOOLFILE >%i/etc/scram.d/rootinteractive
146 <doc type=BuildSystem::ToolDoc version=1.0>
147 <Tool name=rootinteractive version=%v>
148 <info url="http://root.cern.ch/root/"></info>
149 <lib name=Rint>
150 <lib name=GQt>
151 <use name=qt>
152 <use name=libjpg>
153 <use name=libpng>
154 <use name=ROOT>
155 </Tool>
156 EOF_TOOLFILE
157
158 # rootmath toolfile
159 cat << \EOF_TOOLFILE >%i/etc/scram.d/rootmath
160 <doc type=BuildSystem::ToolDoc version=1.0>
161 <Tool name=rootmath version=%v>
162 <info url="http://root.cern.ch/root/"></info>
163 <lib name=MathCore>
164 <lib name=MathMore>
165 <use name=ROOTCore>
166 <use name=gsl>
167 </Tool>
168 EOF_TOOLFILE
169
170 # rootminuit toolfile
171 cat << \EOF_TOOLFILE >%i/etc/scram.d/rootminuit
172 <doc type=BuildSystem::ToolDoc version=1.0>
173 <Tool name=rootminuit version=%v>
174 <info url="http://root.cern.ch/root/"></info>
175 <lib name=Minuit>
176 <use name=ROOT>
177 </Tool>
178 EOF_TOOLFILE
179
180 # rootminuit2 toolfile
181 cat << \EOF_TOOLFILE >%i/etc/scram.d/rootminuit2
182 <doc type=BuildSystem::ToolDoc version=1.0>
183 <Tool name=rootminuit2 version=%v>
184 <info url="http://root.cern.ch/root/"></info>
185 <lib name=Minuit2>
186 <use name=ROOT>
187 </Tool>
188 EOF_TOOLFILE
189
190 # rootrflx toolfile
191 cat << \EOF_TOOLFILE >%i/etc/scram.d/rootrflx
192 <doc type=BuildSystem::ToolDoc version=1.0>
193 <Tool name=rootrflx version=%v>
194 <info url="http://root.cern.ch/root/"></info>
195 <lib name=Reflex>
196 <Client>
197 <Environment name=ROOTRFLX_BASE default="%i"></Environment>
198 <Environment name=LIBDIR default="$ROOTRFLX_BASE/lib"></Environment>
199 <Environment name=INCLUDE default="$ROOTRFLX_BASE/include"></Environment>
200 </Client>
201 <use name=sockets>
202 <use name=gccxml>
203 <Runtime name=PATH value="$ROOTRFLX_BASE/bin" type=path>
204 <Runtime name=ROOTSYS value="$ROOTRFLX_BASE/">
205 <Runtime name=GENREFLEX value="$ROOTRFLX_BASE/bin/genreflex">
206 </Tool>
207 EOF_TOOLFILE
208
209 # roothtml toolfile
210 cat << \EOF_TOOLFILE >%i/etc/scram.d/roothtml
211 <doc type=BuildSystem::ToolDoc version=1.0>
212 <Tool name=roothtml version=%v>
213 <info url="http://root.cern.ch/root/"></info>
214 <lib name=Html>
215 <use name=ROOT>
216 </Tool>
217 EOF_TOOLFILE
218
219 # rootroofit toolfile
220 cat << \EOF_TOOLFILE >%i/etc/scram.d/rootroofit
221 <doc type=BuildSystem::ToolDoc version=1.0>
222 <Tool name=rootroofit version=%v>
223 <info url="http://root.cern.ch/root/"></info>
224 <lib name=RooFitCore>
225 <lib name=RooFit>
226 <use name=ROOTMinuit>
227 <use name=ROOTHtml>
228 </Tool>
229 EOF_TOOLFILE
230
231 # rootmlp toolfile
232 cat << \EOF_TOOLFILE >%i/etc/scram.d/rootmlp
233 <doc type=BuildSystem::ToolDoc version=1.0>
234 <Tool name=rootmlp version=%v>
235 <info url="http://root.cern.ch/root/"></info>
236 <lib name=MLP>
237 <use name=ROOT>
238 </Tool>
239 EOF_TOOLFILE
240
241 # roottmva toolfile
242 cat << \EOF_TOOLFILE >%i/etc/scram.d/roottmva
243 <doc type=BuildSystem::ToolDoc version=1.0>
244 <Tool name=roottmva version=%v>
245 <info url="http://root.cern.ch/root/"></info>
246 <lib name=TMVA>
247 <use name=ROOTMLP>
248 </Tool>
249 EOF_TOOLFILE
250
251 # rootthread toolfile
252 cat << \EOF_TOOLFILE >%i/etc/scram.d/rootthread
253 <doc type=BuildSystem::ToolDoc version=1.0>
254 <Tool name=rootthread version=%v>
255 <info url="http://root.cern.ch/root/"></info>
256 <lib name=Thread>
257 <use name=ROOTCore>
258 </Tool>
259 EOF_TOOLFILE
260
261 %post
262 %{relocateConfig}etc/scram.d/root
263 %{relocateConfig}etc/scram.d/rootcore
264 %{relocateConfig}etc/scram.d/rootcintex
265 %{relocateConfig}etc/scram.d/rootinteractive
266 %{relocateConfig}etc/scram.d/rootmath
267 %{relocateConfig}etc/scram.d/rootminuit
268 %{relocateConfig}etc/scram.d/rootminuit2
269 %{relocateConfig}etc/scram.d/rootrflx
270 %{relocateConfig}etc/scram.d/roothtml
271 %{relocateConfig}etc/scram.d/rootroofit
272 %{relocateConfig}etc/scram.d/rootmlp
273 %{relocateConfig}etc/scram.d/roottmva
274 %{relocateConfig}etc/scram.d/rootthread

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines