1 |
< |
### RPM lcg root 5.18.00a |
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-00a-CINT-maxlongline |
9 |
< |
Patch2: root_5.18-00-CINTFunctional |
10 |
< |
Patch3: root-5.18-00a-TBufferXML |
11 |
< |
Patch4: root-5.18-00a-Cintex |
12 |
< |
Patch5: root-5.18-00a-Cintex2 |
13 |
< |
Patch6: root-5.18-00a-TBufferFile |
14 |
< |
Patch7: root-5.18-00a-cintexquickfix2 |
15 |
< |
Patch8: root-5.18-00a-gendict-performance |
16 |
< |
Patch9: root-5.18-00a-TClass-classNameSize |
17 |
< |
Patch10: root-5.18-00a-TFile-stlStreamerInfo |
18 |
< |
Patch11: root-5.18-00-cintex_functional_mmap |
19 |
< |
Patch12: root-5.18-00a-TMVA-fSilent |
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) |
35 |
|
%setup -n root |
36 |
|
%patch0 -p1 |
37 |
|
%patch1 -p1 |
38 |
< |
%patch2 -p0 |
38 |
> |
%patch2 -p1 |
39 |
|
%patch3 -p1 |
40 |
< |
%patch4 -p0 |
41 |
< |
%patch5 -p0 |
42 |
< |
%patch6 -p0 |
49 |
< |
%patch7 -p0 |
50 |
< |
%patch8 -p1 |
51 |
< |
%patch9 -p0 |
52 |
< |
%patch10 -p0 |
53 |
< |
%patch11 -p0 |
54 |
< |
%patch12 -p1 |
40 |
> |
%patch4 -p1 |
41 |
> |
%patch5 -p1 |
42 |
> |
%patch6 -p1 |
43 |
|
|
44 |
|
%build |
45 |
|
mkdir -p %i |
63 |
|
--with-ssl-libdir=${OPENSSL_ROOT}/lib" |
64 |
|
%endif |
65 |
|
|
66 |
< |
CONFIG_ARGS="--enable-table |
66 |
> |
CONFIG_ARGS="--with-f77=${GCC_ROOT} |
67 |
> |
--enable-table |
68 |
|
--disable-builtin-pcre |
69 |
|
--disable-builtin-freetype |
70 |
|
--disable-builtin-zlib |
72 |
|
--enable-python --with-python-libdir=${PYTHON_ROOT}/lib --with-python-incdir=${PYTHON_ROOT}/include/python2.4 |
73 |
|
--enable-explicitlink |
74 |
|
--enable-qtgsi |
86 |
– |
--enable-mathcore |
75 |
|
--enable-mathmore |
76 |
|
--enable-reflex |
77 |
|
--enable-cintex |
86 |
|
--disable-pgsql |
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 --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 --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift;; |
100 |
|
Darwin*) |
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 |
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 |
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> |
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> |
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> |