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.64 by muzaffar, Mon Sep 3 15:28:45 2007 UTC vs.
Revision 1.271 by eulisse, Thu Jun 23 14:09:11 2011 UTC

# Line 1 | Line 1
1 < ### RPM lcg root 5.14.00g-CMS8
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
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 < Patch: root-CINT-maxlongline
8 < Patch1: root_libpng
9 < Patch2: root_PositionVector
10 < Patch3: root-fastmerge-ttree
11 < Patch4: root_TXMLSetup
27 > Requires: gccxml gsl libjpg libpng libtiff libungif pcre python fftw3 xz
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
29 > %if "%ismac" != "true"
30 > Requires: castor dcap
31 > %endif
32 >
33 > %if "%online" != "true"
34 > Requires: openssl zlib xrootd
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
43 < %patch -p0
44 < %patch1 -p2
45 < %patch2 -p2
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 < %patch4 -p0
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
38 <             --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
40             --enable-qtgsi
41             --enable-qt --with-qt-libdir=${QT_ROOT}/lib --with-qt-incdir=${QT_ROOT}/include
42             --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
51 <             --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
113               --disable-pgsql
114 <             --disable-xml"
115 <
116 < case $(uname)-$(uname -p) in
117 <  Linux-x86_64)
118 <    ./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;;
119 <  Linux-i*86)
120 <    ./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;;
121 <  Darwin*)
122 <    ./configure macosx $CONFIG_ARGS --disable-rfio;;
123 <  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 84 | 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  
90 # SCRAM ToolBox toolfile
91 mkdir -p %i/etc/scram.d
92 # rootcore toolfile
93 cat << \EOF_TOOLFILE >%i/etc/scram.d/rootcore
94 <doc type=BuildSystem::ToolDoc version=1.0>
95 <Tool name=rootcore version=%v>
96 <info url="http://root.cern.ch/root/"></info>
97 <lib name=Cint>
98 <lib name=Core>
99 <lib name=Tree>
100 <Client>
101 <Environment name=ROOTCORE_BASE default="%i"></Environment>
102 <Environment name=LIBDIR default="$ROOTCORE_BASE/lib"></Environment>
103 <Environment name=INCLUDE default="$ROOTCORE_BASE/include"></Environment>
104 <Environment name=INCLUDE default="$ROOTCORE_BASE/cint"></Environment>
105 </Client>
106 <use name=sockets>
107 <use name=pcre>
108 <use name=zlib>
109 <Runtime name=PATH value="$ROOTCORE_BASE/bin" type=path>
110 <Runtime name=ROOTSYS value="$ROOTCORE_BASE/">
111 <Runtime name=PYTHONPATH value="$ROOTCORE_BASE/lib" type=path>
112 </Tool>
113 EOF_TOOLFILE
114
115 # root toolfile
116 cat << \EOF_TOOLFILE >%i/etc/scram.d/root
117 <doc type=BuildSystem::ToolDoc version=1.0>
118 <Tool name=root version=%v>
119 <info url="http://root.cern.ch/root/"></info>
120 <lib name=TreePlayer>
121 <lib name=Gpad>
122 <lib name=Graf3d>
123 <lib name=Graf>
124 <lib name=Hist>
125 <lib name=Matrix>
126 <lib name=Physics>
127 <lib name=Postscript>
128 <use name=ROOTCore>
129 </Tool>
130 EOF_TOOLFILE
131
132 # rootcintex toolfile
133 cat << \EOF_TOOLFILE >%i/etc/scram.d/rootcintex
134 <doc type=BuildSystem::ToolDoc version=1.0>
135 <Tool name=rootcintex version=%v>
136 <info url="http://root.cern.ch/root/"></info>
137 <lib name=Cintex>
138 <use name=ROOTRflx>
139 <use name=ROOTCore>
140 </Tool>
141 EOF_TOOLFILE
142
143 # rootinteractive toolfile
144 cat << \EOF_TOOLFILE >%i/etc/scram.d/rootinteractive
145 <doc type=BuildSystem::ToolDoc version=1.0>
146 <Tool name=rootinteractive version=%v>
147 <info url="http://root.cern.ch/root/"></info>
148 <lib name=Rint>
149 <lib name=GQt>
150 <use name=qt>
151 <use name=libjpg>
152 <use name=libpng>
153 <use name=ROOT>
154 </Tool>
155 EOF_TOOLFILE
156
157 # rootmath toolfile
158 cat << \EOF_TOOLFILE >%i/etc/scram.d/rootmath
159 <doc type=BuildSystem::ToolDoc version=1.0>
160 <Tool name=rootmath version=%v>
161 <info url="http://root.cern.ch/root/"></info>
162 <lib name=MathCore>
163 <lib name=MathMore>
164 <use name=ROOTCore>
165 <use name=gsl>
166 </Tool>
167 EOF_TOOLFILE
168
169 # rootminuit toolfile
170 cat << \EOF_TOOLFILE >%i/etc/scram.d/rootminuit
171 <doc type=BuildSystem::ToolDoc version=1.0>
172 <Tool name=rootminuit version=%v>
173 <info url="http://root.cern.ch/root/"></info>
174 <lib name=Minuit>
175 <use name=ROOT>
176 </Tool>
177 EOF_TOOLFILE
178
179 # rootminuit2 toolfile
180 cat << \EOF_TOOLFILE >%i/etc/scram.d/rootminuit2
181 <doc type=BuildSystem::ToolDoc version=1.0>
182 <Tool name=rootminuit2 version=%v>
183 <info url="http://root.cern.ch/root/"></info>
184 <lib name=Minuit2>
185 <use name=ROOT>
186 </Tool>
187 EOF_TOOLFILE
188
189 # rootrflx toolfile
190 cat << \EOF_TOOLFILE >%i/etc/scram.d/rootrflx
191 <doc type=BuildSystem::ToolDoc version=1.0>
192 <Tool name=rootrflx version=%v>
193 <info url="http://root.cern.ch/root/"></info>
194 <lib name=Reflex>
195 <Client>
196 <Environment name=ROOTRFLX_BASE default="%i"></Environment>
197 <Environment name=LIBDIR default="$ROOTRFLX_BASE/lib"></Environment>
198 <Environment name=INCLUDE default="$ROOTRFLX_BASE/include"></Environment>
199 </Client>
200 <use name=sockets>
201 <use name=gccxml>
202 <Runtime name=PATH value="$ROOTRFLX_BASE/bin" type=path>
203 <Runtime name=ROOTSYS value="$ROOTRFLX_BASE/">
204 <Runtime name=GENREFLEX value="$ROOTRFLX_BASE/bin/genreflex">
205 </Tool>
206 EOF_TOOLFILE
207
208 # roothtml toolfile
209 cat << \EOF_TOOLFILE >%i/etc/scram.d/roothtml
210 <doc type=BuildSystem::ToolDoc version=1.0>
211 <Tool name=roothtml version=%v>
212 <info url="http://root.cern.ch/root/"></info>
213 <lib name=Html>
214 <use name=ROOT>
215 </Tool>
216 EOF_TOOLFILE
217
218 # rootroofit toolfile
219 cat << \EOF_TOOLFILE >%i/etc/scram.d/rootroofit
220 <doc type=BuildSystem::ToolDoc version=1.0>
221 <Tool name=rootroofit version=%v>
222 <info url="http://root.cern.ch/root/"></info>
223 <lib name=RooFit>
224 <use name=ROOTMinuit>
225 <use name=ROOTHtml>
226 </Tool>
227 EOF_TOOLFILE
228
229 # rootmlp toolfile
230 cat << \EOF_TOOLFILE >%i/etc/scram.d/rootmlp
231 <doc type=BuildSystem::ToolDoc version=1.0>
232 <Tool name=rootmlp version=%v>
233 <info url="http://root.cern.ch/root/"></info>
234 <lib name=MLP>
235 <use name=ROOT>
236 </Tool>
237 EOF_TOOLFILE
238
239 # roottmva toolfile
240 cat << \EOF_TOOLFILE >%i/etc/scram.d/roottmva
241 <doc type=BuildSystem::ToolDoc version=1.0>
242 <Tool name=roottmva version=%v>
243 <info url="http://root.cern.ch/root/"></info>
244 <lib name=TMVA>
245 <use name=ROOTMLP>
246 </Tool>
247 EOF_TOOLFILE
248
249 # rootthread toolfile
250 cat << \EOF_TOOLFILE >%i/etc/scram.d/rootthread
251 <doc type=BuildSystem::ToolDoc version=1.0>
252 <Tool name=rootthread version=%v>
253 <info url="http://root.cern.ch/root/"></info>
254 <lib name=Thread>
255 <use name=ROOTCore>
256 </Tool>
257 EOF_TOOLFILE
258
259 %post
260 %{relocateConfig}etc/scram.d/root
261 %{relocateConfig}etc/scram.d/rootcore
262 %{relocateConfig}etc/scram.d/rootcintex
263 %{relocateConfig}etc/scram.d/rootinteractive
264 %{relocateConfig}etc/scram.d/rootmath
265 %{relocateConfig}etc/scram.d/rootminuit
266 %{relocateConfig}etc/scram.d/rootminuit2
267 %{relocateConfig}etc/scram.d/rootrflx
268 %{relocateConfig}etc/scram.d/roothtml
269 %{relocateConfig}etc/scram.d/rootroofit
270 %{relocateConfig}etc/scram.d/rootmlp
271 %{relocateConfig}etc/scram.d/roottmva
272 %{relocateConfig}etc/scram.d/rootthread

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines