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.3 by eulisse, Wed Apr 5 10:23:27 2006 UTC vs.
Revision 1.189 by eulisse, Mon Feb 15 14:12:21 2010 UTC

# Line 1 | Line 1
1 < ### RPM lcg root 5.10.00b
2 < # Source: cvs://:pserver:cvs@root.cern.ch:2401/user/cvs?passwd=Ah<Z&tag=-rv%(echo %v | tr . -)&module=root&output=/%{n}_v%{v}.source.tar.gz
3 < Source: ftp://root.cern.ch/%n/%{n}_v%{v}.source.tar.gz
4 < Requires: gccxml python qt gsl
1 > ### RPM lcg root 5.26.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 > %define closingbrace )
7 > %define online %(case %cmsplatf in *onl_*_*%closingbrace echo true;; *%closingbrace echo false;; esac)
8 >
9 > Patch0:  root-5.18-00-libpng
10 > Patch1:  root-5.22-00-TMVA-shut-the-hell-up-for-once
11 > Patch2:  root-5.22-00a-roofit-silence-static-printout
12 > Patch3:  root-5.22-00d-linker-gnu-hash-style
13 > Patch4:  root-5.26-00a-CINT-maxlongline
14 > Patch5:  root-5.26-00a-silence-TMVA
15 >
16 > %define cpu %(echo %cmsplatf | cut -d_ -f2)
17 >
18 > Requires: gccxml gsl castor libjpg dcap pcre python
19 >
20 > %if "%online" != "true"
21 > Requires: qt openssl 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 >
34   %prep
35   %setup -n root
36 + %patch0 -p1
37 + %patch1 -p1
38 + %patch2 -p1
39 + %patch3 -p1
40 + %patch4 -p1
41 + %patch5 -p1
42  
43   %build
44 +
45   mkdir -p %i
46 < export ROOTSYS=%i
46 > export ROOTSYS=%_builddir/root
47 > export PYTHONV=$(echo $PYTHON_VERSION | cut -f1,2 -d.)
48 >
49 > %if "%online" == "true"
50 > # Use system qt. Also skip xrootd and odbc for online case:
51 >
52 > EXTRA_CONFIG_ARGS="--with-f77=/usr
53 >             --disable-xrootd
54 >             --disable-odbc
55 >             --disable-qt --disable-qtgsi"
56 > %else
57 > EXTRA_CONFIG_ARGS="--with-f77=${GCC_ROOT}
58 >             --with-xrootd=$XROOTD_ROOT
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 >             --enable-qtgsi"
63 > %endif
64 >
65   CONFIG_ARGS="--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
70 >             --enable-python --with-python-libdir=${PYTHON_ROOT}/lib --with-python-incdir=${PYTHON_ROOT}/include/python${PYTHONV}
71               --enable-explicitlink
72 <             --enable-qt --with-qt-libdir=${QT_ROOT}/lib --with-qt-incdir=${QT_ROOT}/include
16 <             --enable-mathcore
72 >             --enable-mathmore
73               --enable-reflex  
74               --enable-cintex
75               --enable-minuit2
76 <             --enable-roofit"
76 >             --disable-ldap
77 >             --disable-krb5
78 >             --with-gsl-incdir=${GSL_ROOT}/include
79 >             --with-gsl-libdir=${GSL_ROOT}/lib
80 >             --with-dcap-libdir=${DCAP_ROOT}/lib
81 >             --with-dcap-incdir=${DCAP_ROOT}/include
82 >             --disable-pgsql
83 >             --disable-mysql
84 >             --disable-xml ${EXTRA_CONFIG_ARGS}"
85  
86   case $(uname)-$(uname -m) in
87    Linux-x86_64)
88 <    ./configure linuxx8664gcc $CONFIG_ARGS;;
89 <  Linux*)
90 <    ./configure linux $CONFIG_ARGS;;
91 <  Darwin)
92 <    ./configure macosx $CONFIG_ARGS;;
88 >    ./configure linuxx8664gcc $CONFIG_ARGS --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift --disable-astiff;;
89 >  Linux-i*86)
90 >    ./configure linux  $CONFIG_ARGS --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift;;
91 >  Darwin*)
92 >    ./configure macosx $CONFIG_ARGS --disable-rfio --disable-builtin_afterimage ;;
93 >  Linux-ppc64*)
94 >    ./configure linux $CONFIG_ARGS --disable-rfio;;
95   esac
96  
97 < make %makeprocesses
97 > case %cmsplatf in
98 >  osx*)
99 >   makeopts=
100 >  ;;
101 >  *)
102 >   makeopts="%makeprocesses"
103 >  ;;
104 > esac
105 >
106 > make $makeopts
107 > make cintdlls
108  
109   %install
110   # Override installers if we are using GNU fileutils cp.  On OS X
# Line 44 | Line 120 | fi
120  
121   export ROOTSYS=%i
122   make INSTALL="$cp" INSTALLDATA="$cp" install
123 + mkdir -p $ROOTSYS/lib/python
124 + cp -r cint/reflex/python/genreflex $ROOTSYS/lib/python
125 + #
126 +
127 + # SCRAM ToolBox toolfile
128 + mkdir -p %i/etc/scram.d
129 + # rootcore toolfile
130 + cat << \EOF_TOOLFILE >%i/etc/scram.d/rootcore.xml
131 +  <tool name="rootcore" version="%v">
132 +    <info url="http://root.cern.ch/root/"/>
133 +    <lib name="Tree"/>
134 +    <lib name="Net"/>
135 +    <lib name="Thread"/>
136 +    <lib name="MathCore"/>
137 +    <lib name="RIO"/>
138 +    <lib name="Core"/>
139 +    <lib name="Cint"/>
140 +    <client>
141 +      <environment name="ROOTCORE_BASE" default="%i"/>
142 +      <environment name="LIBDIR" default="$ROOTCORE_BASE/lib"/>
143 +      <environment name="INCLUDE" default="$ROOTCORE_BASE/include"/>
144 +      <environment name="INCLUDE" default="$ROOTCORE_BASE/cint"/>
145 +    </client>
146 +    <runtime name="PATH" value="$ROOTCORE_BASE/bin" type="path"/>
147 +    <runtime name="ROOTSYS" value="$ROOTCORE_BASE/"/>
148 +    <runtime name="PYTHONPATH" value="$ROOTCORE_BASE/lib" type="path"/>
149 +    <use name="sockets"/>
150 +    <use name="pcre"/>
151 +    <use name="zlib"/>
152 +  </tool>
153 + EOF_TOOLFILE
154 +
155 + # root toolfile, alias for rootphysics. Using rootphysics is preferred.
156 + cat << \EOF_TOOLFILE >%i/etc/scram.d/root.xml
157 +  <tool name="root" version="%v">
158 +    <info url="http://root.cern.ch/root/"/>
159 +    <use name="rootphysics"/>
160 +  </tool>
161 + EOF_TOOLFILE
162 +
163 + # roothistmatrix toolfile
164 + cat << \EOF_TOOLFILE >%i/etc/scram.d/roothistmatrix.xml
165 +  <tool name="roothistmatrix" version="%v">
166 +    <info url="http://root.cern.ch/root/"/>
167 +    <lib name="Hist"/>
168 +    <lib name="Matrix"/>
169 +    <use name="ROOTCore"/>
170 +  </tool>
171 + EOF_TOOLFILE
172 +
173 + # rootgpad toolfile
174 + cat << \EOF_TOOLFILE >%i/etc/scram.d/rootgpad.xml
175 +  <tool name="rootgpad" version="%v">
176 +    <info url="http://root.cern.ch/root/"/>
177 +    <lib name="Gpad"/>
178 +    <lib name="Graf"/>
179 +    <use name="roothistmatrix"/>
180 +  </tool>
181 + EOF_TOOLFILE
182 +
183 + # rootphysics toolfile
184 + cat << \EOF_TOOLFILE >%i/etc/scram.d/rootphysics.xml
185 +  <tool name="rootphysics" version="%v">
186 +    <info url="http://root.cern.ch/root/"/>
187 +    <lib name="Physics"/>
188 +    <use name="roothistmatrix"/>
189 +  </tool>
190 + EOF_TOOLFILE
191 +
192 + # rootgraphics toolfile, identical to old "root" toolfile
193 + cat << \EOF_TOOLFILE >%i/etc/scram.d/rootgraphics.xml
194 +  <tool name="rootgraphics" version="%v">
195 +    <info url="http://root.cern.ch/root/"/>
196 +    <lib name="TreePlayer"/>
197 +    <lib name="Graf3d"/>
198 +    <lib name="Postscript"/>
199 +    <use name="rootgpad"/>
200 +  </tool>
201 + EOF_TOOLFILE
202 +
203 + # rootcintex toolfile
204 + cat << \EOF_TOOLFILE >%i/etc/scram.d/rootcintex.xml
205 +  <tool name="rootcintex" version="%v">
206 +    <info url="http://root.cern.ch/root/"/>
207 +    <lib name="Cintex"/>
208 +    <use name="ROOTRflx"/>
209 +    <use name="ROOTCore"/>
210 +  </tool>
211 + EOF_TOOLFILE
212 +
213 + # rootinteractive toolfile (GQt/qt lib dependencies
214 + # have been moved to rootqt.xml)
215 + cat << \EOF_TOOLFILE >%i/etc/scram.d/rootinteractive.xml
216 +  <tool name="rootinteractive" version="%v">
217 +    <info url="http://root.cern.ch/root/"/>
218 +    <lib name="Rint"/>
219 +    <lib name="Gui"/>
220 +    <use name="libjpg"/>
221 +    <use name="libpng"/>
222 +    <use name="rootgpad"/>
223 +  </tool>
224 + EOF_TOOLFILE
225 +
226 + cat << \EOF_TOOLFILE >%i/etc/scram.d/rootqt.xml
227 +  <tool name="rootqt" version="%v">
228 +    <info url="http://root.cern.ch/root/"/>
229 +    <lib name="GQt"/>
230 +    <use name="qt"/>
231 +  </tool>
232 + EOF_TOOLFILE
233 +
234 + # rootmath toolfile
235 + cat << \EOF_TOOLFILE >%i/etc/scram.d/rootmath.xml
236 +  <tool name="rootmath" version="%v">
237 +    <info url="http://root.cern.ch/root/"/>
238 +    <lib name="GenVector"/>
239 +    <lib name="MathMore"/>
240 +    <use name="ROOTCore"/>
241 +    <use name="gsl"/>
242 +  </tool>
243 + EOF_TOOLFILE
244 +
245 + # rootminuit toolfile
246 + cat << \EOF_TOOLFILE >%i/etc/scram.d/rootminuit.xml
247 +  <tool name="rootminuit" version="%v">
248 +    <info url="http://root.cern.ch/root/"/>
249 +    <lib name="Minuit"/>
250 +    <use name="rootgpad"/>
251 +  </tool>
252 + EOF_TOOLFILE
253 +
254 + # rootminuit2 toolfile
255 + cat << \EOF_TOOLFILE >%i/etc/scram.d/rootminuit2.xml
256 +  <tool name="rootminuit2" version="%v">
257 +    <info url="http://root.cern.ch/root/"/>
258 +    <lib name="Minuit2"/>
259 +    <use name="rootgpad"/>
260 +  </tool>
261 + EOF_TOOLFILE
262 +
263 + # rootrflx toolfile
264 + cat << \EOF_TOOLFILE >%i/etc/scram.d/rootrflx.xml
265 +  <tool name="rootrflx" version="%v">
266 +    <info url="http://root.cern.ch/root/"/>
267 +    <lib name="Reflex"/>
268 +    <client>
269 +      <environment name="ROOTRFLX_BASE" default="%i"/>
270 +      <environment name="LIBDIR" default="$ROOTRFLX_BASE/lib"/>
271 +      <environment name="INCLUDE" default="$ROOTRFLX_BASE/include"/>
272 +    </client>
273 +    <runtime name="PATH" value="$ROOTRFLX_BASE/bin" type="path"/>
274 +    <runtime name="ROOTSYS" value="$ROOTRFLX_BASE/"/>
275 +    <runtime name="GENREFLEX" value="$ROOTRFLX_BASE/bin/genreflex"/>
276 +    <use name="sockets"/>
277 +    <use name="gccxml"/>
278 +  </tool>
279 + EOF_TOOLFILE
280 +
281 + # roothtml toolfile
282 + cat << \EOF_TOOLFILE >%i/etc/scram.d/roothtml.xml
283 +  <tool name="roothtml" version="%v">
284 +    <info url="http://root.cern.ch/root/"/>
285 +    <lib name="Html"/>
286 +    <use name="rootgpad"/>
287 +  </tool>
288 + EOF_TOOLFILE
289 +
290 + # rootmlp toolfile
291 + cat << \EOF_TOOLFILE >%i/etc/scram.d/rootmlp.xml
292 +  <tool name="rootmlp" version="%v">
293 +    <info url="http://root.cern.ch/root/"/>
294 +    <lib name="MLP"/>
295 +    <use name="RootGraphics"/>
296 +  </tool>
297 + EOF_TOOLFILE
298 +
299 + # roottmva toolfile
300 + cat << \EOF_TOOLFILE >%i/etc/scram.d/roottmva.xml
301 +  <tool name="roottmva" version="%v">
302 +    <info url="http://root.cern.ch/root/"/>
303 +    <lib name="TMVA"/>
304 +    <use name="ROOTMLP"/>
305 +    <use name="rootminuit"/>
306 +  </tool>
307 + EOF_TOOLFILE
308 +
309 + # rootthread toolfile
310 + cat << \EOF_TOOLFILE >%i/etc/scram.d/rootthread.xml
311 +  <tool name="rootthread" version="%v">
312 +    <info url="http://root.cern.ch/root/"/>
313 +    <use name="ROOTCore"/>
314 +  </tool>
315 + EOF_TOOLFILE
316 +
317 + %post
318 + perl -p -i -e "s|%{instroot}|$RPM_INSTALL_PREFIX|g" $(find $RPM_INSTALL_PREFIX/%pkgrel/etc/scram.d -type f)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines