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.197 by elmer, Tue May 11 23:28:21 2010 UTC vs.
Revision 1.246 by elmer, Wed Feb 23 13:04:06 2011 UTC

# Line 1 | Line 1
1 < ### RPM lcg root 5.27.02
1 > ### RPM lcg root 5.27.06b
2   ## INITENV +PATH PYTHONPATH %i/lib/python
3 < ## INITENV SET ROOTSYS %i
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 + %define ismac %(case %cmsplatf in osx*%closingbrace echo true;; *%closingbrace e
9 + cho false;; esac)
10  
11 < Patch0:  root-5.18-00-libpng
12 < Patch1:  root-5.22-00-TMVA-shut-the-hell-up-for-once
13 < Patch2:  root-5.22-00a-roofit-silence-static-printout
14 < Patch3:  root-5.22-00d-linker-gnu-hash-style
15 < Patch4:  root-5.26-00a-CINT-maxlongline
16 < Patch5:  root-5.26-00a-silence-TMVA
17 < Patch6:  root-5.22-00d-TBranchElement-dropped-data-member
18 <
11 > Patch0: root-5.27-06-externals
12 > Patch1: root-5.27-04-CINT-maxlongline-maxtypedef
13 > Patch2: root-5.22-00a-roofit-silence-static-printout
14 > Patch3: root-5.22-00d-linker-gnu-hash-style
15 > Patch4: root-5.22-00d-TBranchElement-dropped-data-member
16 > Patch5: root-5.27-06-fireworks9
17 > Patch6: root-5.27-06b-gdb-backtrace
18 > Patch7: root-5.27-06-tmva-DecisionTreeNode
19 > Patch8: root-5.27-06b-r36567
20 > Patch9: root-5.27-06b-r36572
21 > Patch10: root-5.27-06b-r36707
22 > Patch11: root-5.27-06b-r36594
23 > Patch12: root-5.27-06b-tmva-MethodBase-initvar
24 > Patch13: root-5.27-06b-r37582-tmva
25 > Patch14: root-5.27-06b-r37405
26 > Patch15: root-5.27-06b-r37556
27 > Patch16: root-5.27-06-fireworks10
28 > Patch17: root-5.27-06-TTreeClonerTopLevel
29 > Patch18: root-5.27-06b-r37947
30 > Patch19: root-5.27-06b-TTreeCache-r37950-r37919-r37917-r37916-r37906
31 > Patch20: root-5.27-06b-extra-math-for-roofit-5.28.00
32 > Patch21: root-5.27-06b-TEfficiency-backport-from-5.28.00
33 > Patch22: root-5.27-06b-histfactory-bits-from-5.28.00
34 > Patch23: root-5.27-06b-r37210
35 > Patch24: root-5.27-06b-r38023
36 > Patch25: root-5.27-06b-r36708
37 > Patch26: root-5.27-06b-r38126-r38156
38 >
39   %define cpu %(echo %cmsplatf | cut -d_ -f2)
40  
41 < Requires: gccxml gsl castor libjpg dcap pcre python
41 > Requires: gccxml gsl libjpg libpng libtiff libungif pcre python fftw3
42 >
43 > %if "%ismac" != "true"
44 > Requires: castor dcap
45 > %endif
46  
47   %if "%online" != "true"
48 < Requires: qt openssl libpng zlib libungif xrootd
23 < %else
24 < %define skiplibtiff true
48 > Requires: openssl zlib xrootd
49   %endif
50  
51 < %if "%cpu" == "amd64"
52 < %define skiplibtiff true
51 > %if "%ismac" == "true"
52 > Requires: gfortran-macosx
53   %endif
54  
55 < %if "%skiplibtiff" != "true"
56 < Requires: libtiff
55 > %if "%online" != "true"
56 > %if "%ismac" != "true"
57 > Requires: qt
58 > %endif
59   %endif
60  
61   %prep
# Line 37 | Line 63 | Requires: libtiff
63   %patch0 -p1
64   %patch1 -p1
65   %patch2 -p1
66 < %patch3 -p1
66 > # patch3 is OS version dependent, see below
67   %patch4 -p1
68   %patch5 -p1
69   %patch6 -p1
70 + %patch7 -p1
71 + %patch8 -p1
72 + %patch9 -p1
73 + %patch10 -p1
74 + %patch11 -p1
75 + %patch12 -p1
76 + %patch13 -p1
77 + %patch14 -p1
78 + %patch15 -p1
79 + %patch16 -p1
80 + %patch17 -p0
81 + %patch18 -p1
82 + %patch19 -p0
83 + %patch20 -p1
84 + %patch21 -p1
85 + %patch22 -p1
86 + %patch23 -p1
87 + %patch24 -p1
88 + %patch25 -p1
89 + %patch26 -p1
90 +
91 + # The following patch can only be applied on SLC5 or later (extra linker
92 + # options only available with the SLC5 binutils)
93 + case %cmsplatf in
94 +  slc5_* | slc5onl_* )
95 + %patch3 -p1
96 +  ;;
97 + esac
98 +
99 + # Delete these (irrelevant) files as the fits appear to confuse rpm on OSX
100 + # (It tries to run install_name_tool on them.)
101 + rm -fR tutorials/fitsio
102  
103   %build
104  
105   mkdir -p %i
106 + export LIBJPG_ROOT
107   export ROOTSYS=%_builddir/root
108   export PYTHONV=$(echo $PYTHON_VERSION | cut -f1,2 -d.)
109  
# Line 52 | Line 111 | export PYTHONV=$(echo $PYTHON_VERSION |
111   # Use system qt. Also skip xrootd and odbc for online case:
112  
113   EXTRA_CONFIG_ARGS="--with-f77=/usr
55             --disable-xrootd
114               --disable-odbc
115 <             --disable-qt --disable-qtgsi"
115 >             --disable-qt --disable-qtgsi --disable-astiff"
116   %else
117 + export LIBPNG_ROOT ZLIB_ROOT LIBTIFF_ROOT LIBUNGIF_ROOT
118   EXTRA_CONFIG_ARGS="--with-f77=${GCC_ROOT}
60             --with-xrootd=$XROOTD_ROOT
119               --enable-qt --with-qt-libdir=${QT_ROOT}/lib --with-qt-incdir=${QT_ROOT}/include
120               --with-ssl-incdir=${OPENSSL_ROOT}/include
121               --with-ssl-libdir=${OPENSSL_ROOT}/lib
# Line 75 | Line 133 | CONFIG_ARGS="--enable-table
133               --enable-reflex  
134               --enable-cintex
135               --enable-minuit2
136 +             --enable-fftw3
137 +             --with-fftw3-incdir=${FFTW3_ROOT}/include
138 +             --with-fftw3-libdir=${FFTW3_ROOT}/lib
139               --disable-ldap
140               --disable-krb5
141 +             --with-xrootd=${XROOTD_ROOT}
142               --with-gsl-incdir=${GSL_ROOT}/include
143               --with-gsl-libdir=${GSL_ROOT}/lib
144               --with-dcap-libdir=${DCAP_ROOT}/lib
145               --with-dcap-incdir=${DCAP_ROOT}/include
146               --disable-pgsql
147               --disable-mysql
148 <             --disable-xml ${EXTRA_CONFIG_ARGS}"
148 >             --disable-oracle ${EXTRA_CONFIG_ARGS}"
149  
150 < case $(uname)-$(uname -m) in
151 <  Linux-x86_64)
152 <    ./configure linuxx8664gcc $CONFIG_ARGS --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift --disable-astiff;;
153 <  Linux-i*86)
154 <    ./configure linux  $CONFIG_ARGS --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift;;
155 <  Darwin*)
156 <    ./configure macosx $CONFIG_ARGS --disable-rfio --disable-builtin_afterimage ;;
157 <  Linux-ppc64*)
150 > case %cmsos in
151 >  slc*_amd64)
152 >    ./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 ;;
153 >  slc*_ia32)
154 >    ./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 ;;
155 >  osx*)
156 >    case %cmsplatf in
157 >    *_ia32_* )
158 >      comparch=i386
159 >      macconfig=macosx
160 >      ;;
161 >    *_amd64_* )
162 >      comparch=x86_64
163 >      macconfig=macosx64
164 >      ;;
165 >    * )
166 >      comparch=ppc
167 >      macconfig=macosx
168 >      ;;
169 >    esac
170 >    export CC=`which gcc` CXX=`which g++`
171 >    ./configure $arch $CONFIG_ARGS --with-cc="$CC" --with-cxx="$CXX" --disable-rfio --disable-builtin_afterimage ;;
172 >  slc*_ppc64*)
173      ./configure linux $CONFIG_ARGS --disable-rfio;;
174   esac
175  
176 < case %cmsplatf in
177 <  osx*)
178 <   makeopts=
102 <  ;;
103 <  *)
104 <   makeopts="%makeprocesses"
105 <  ;;
106 < esac
107 <
108 < make $makeopts
176 > makeopts="%makeprocesses"
177 >
178 > make $makeopts
179   make cintdlls
180  
181   %install
# Line 124 | Line 194 | export ROOTSYS=%i
194   make INSTALL="$cp" INSTALLDATA="$cp" install
195   mkdir -p $ROOTSYS/lib/python
196   cp -r cint/reflex/python/genreflex $ROOTSYS/lib/python
197 < #
197 > # This file confuses rpm's find-requires because it starts with
198 > # a """ and it thinks is the shebang.
199 > rm -f %i/tutorials/pyroot/mrt.py
200  
201   # SCRAM ToolBox toolfile
202   mkdir -p %i/etc/scram.d
# Line 164 | Line 236 | EOF_TOOLFILE
236  
237   # roothistmatrix toolfile
238   cat << \EOF_TOOLFILE >%i/etc/scram.d/roothistmatrix.xml
239 <  <tool name="roothistmatrix" version="%v">
239 >  <tool name="roothistmatrix" version="%v">
240      <info url="http://root.cern.ch/root/"/>
241      <lib name="Hist"/>
242      <lib name="Matrix"/>
# Line 174 | Line 246 | EOF_TOOLFILE
246  
247   # rootgpad toolfile
248   cat << \EOF_TOOLFILE >%i/etc/scram.d/rootgpad.xml
249 <  <tool name="rootgpad" version="%v">
249 >  <tool name="rootgpad" version="%v">
250      <info url="http://root.cern.ch/root/"/>
251      <lib name="Gpad"/>
252      <lib name="Graf"/>
# Line 316 | Line 388 | cat << \EOF_TOOLFILE >%i/etc/scram.d/roo
388    </tool>
389   EOF_TOOLFILE
390  
391 + # rootxml toolfile
392 + cat << \EOF_TOOLFILE >%i/etc/scram.d/rootxml.xml
393 +  <tool name="rootxml" version="%v">
394 +    <info url="http://root.cern.ch/root/"/>
395 +    <lib name="XMLParser"/>
396 +    <use name="ROOTCore"/>
397 +  </tool>
398 + EOF_TOOLFILE
399 +
400 + # rootfoam toolfile
401 + cat << \EOF_TOOLFILE >%i/etc/scram.d/rootfoam.xml
402 +  <tool name="rootfoam" version="%v">
403 +    <info url="http://root.cern.ch/root/"/>
404 +    <lib name="Foam"/>
405 +    <use name="roothistmatrix"/>
406 +  </tool>
407 + EOF_TOOLFILE
408 +
409   %post
410   perl -p -i -e "s|%{instroot}|$RPM_INSTALL_PREFIX|g" $(find $RPM_INSTALL_PREFIX/%pkgrel/etc/scram.d -type f)
411 +

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines