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.243 by elmer, Wed Feb 9 23:09:04 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 >
35   %define cpu %(echo %cmsplatf | cut -d_ -f2)
36  
37 < Requires: gccxml gsl castor libjpg dcap pcre python
37 > Requires: gccxml gsl libjpg libpng libtiff libungif pcre python fftw3
38 >
39 > %if "%ismac" != "true"
40 > Requires: castor dcap
41 > %endif
42  
43   %if "%online" != "true"
44 < Requires: qt openssl libpng zlib libungif xrootd
23 < %else
24 < %define skiplibtiff true
44 > Requires: openssl zlib xrootd
45   %endif
46  
47 < %if "%cpu" == "amd64"
48 < %define skiplibtiff true
47 > %if "%ismac" == "true"
48 > Requires: gfortran-macosx
49   %endif
50  
51 < %if "%skiplibtiff" != "true"
52 < Requires: libtiff
51 > %if "%online" != "true"
52 > %if "%ismac" != "true"
53 > Requires: qt
54 > %endif
55   %endif
56  
57   %prep
# Line 37 | Line 59 | Requires: libtiff
59   %patch0 -p1
60   %patch1 -p1
61   %patch2 -p1
62 < %patch3 -p1
62 > # patch3 is OS version dependent, see below
63   %patch4 -p1
64   %patch5 -p1
65   %patch6 -p1
66 + %patch7 -p1
67 + %patch8 -p1
68 + %patch9 -p1
69 + %patch10 -p1
70 + %patch11 -p1
71 + %patch12 -p1
72 + %patch13 -p1
73 + %patch14 -p1
74 + %patch15 -p1
75 + %patch16 -p1
76 + %patch17 -p0
77 + %patch18 -p1
78 + %patch19 -p0
79 + %patch20 -p1
80 + %patch21 -p1
81 + %patch22 -p1
82 +
83 + # The following patch can only be applied on SLC5 or later (extra linker
84 + # options only available with the SLC5 binutils)
85 + case %cmsplatf in
86 +  slc5_* | slc5onl_* )
87 + %patch3 -p1
88 +  ;;
89 + esac
90 +
91 + # Delete these (irrelevant) files as the fits appear to confuse rpm on OSX
92 + # (It tries to run install_name_tool on them.)
93 + rm -fR tutorials/fitsio
94  
95   %build
96  
97   mkdir -p %i
98 + export LIBJPG_ROOT
99   export ROOTSYS=%_builddir/root
100   export PYTHONV=$(echo $PYTHON_VERSION | cut -f1,2 -d.)
101  
# Line 52 | Line 103 | export PYTHONV=$(echo $PYTHON_VERSION |
103   # Use system qt. Also skip xrootd and odbc for online case:
104  
105   EXTRA_CONFIG_ARGS="--with-f77=/usr
55             --disable-xrootd
106               --disable-odbc
107 <             --disable-qt --disable-qtgsi"
107 >             --disable-qt --disable-qtgsi --disable-astiff"
108   %else
109 + export LIBPNG_ROOT ZLIB_ROOT LIBTIFF_ROOT LIBUNGIF_ROOT
110   EXTRA_CONFIG_ARGS="--with-f77=${GCC_ROOT}
60             --with-xrootd=$XROOTD_ROOT
111               --enable-qt --with-qt-libdir=${QT_ROOT}/lib --with-qt-incdir=${QT_ROOT}/include
112               --with-ssl-incdir=${OPENSSL_ROOT}/include
113               --with-ssl-libdir=${OPENSSL_ROOT}/lib
# Line 75 | Line 125 | CONFIG_ARGS="--enable-table
125               --enable-reflex  
126               --enable-cintex
127               --enable-minuit2
128 +             --enable-fftw3
129 +             --with-fftw3-incdir=${FFTW3_ROOT}/include
130 +             --with-fftw3-libdir=${FFTW3_ROOT}/lib
131               --disable-ldap
132               --disable-krb5
133 +             --with-xrootd=${XROOTD_ROOT}
134               --with-gsl-incdir=${GSL_ROOT}/include
135               --with-gsl-libdir=${GSL_ROOT}/lib
136               --with-dcap-libdir=${DCAP_ROOT}/lib
137               --with-dcap-incdir=${DCAP_ROOT}/include
138               --disable-pgsql
139               --disable-mysql
140 <             --disable-xml ${EXTRA_CONFIG_ARGS}"
140 >             --disable-oracle ${EXTRA_CONFIG_ARGS}"
141  
142 < case $(uname)-$(uname -m) in
143 <  Linux-x86_64)
144 <    ./configure linuxx8664gcc $CONFIG_ARGS --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift --disable-astiff;;
145 <  Linux-i*86)
146 <    ./configure linux  $CONFIG_ARGS --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift;;
147 <  Darwin*)
148 <    ./configure macosx $CONFIG_ARGS --disable-rfio --disable-builtin_afterimage ;;
149 <  Linux-ppc64*)
142 > case %cmsos in
143 >  slc*_amd64)
144 >    ./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 ;;
145 >  slc*_ia32)
146 >    ./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 ;;
147 >  osx*)
148 >    case %cmsplatf in
149 >    *_ia32_* )
150 >      comparch=i386
151 >      macconfig=macosx
152 >      ;;
153 >    *_amd64_* )
154 >      comparch=x86_64
155 >      macconfig=macosx64
156 >      ;;
157 >    * )
158 >      comparch=ppc
159 >      macconfig=macosx
160 >      ;;
161 >    esac
162 >    export CC=`which gcc` CXX=`which g++`
163 >    ./configure $arch $CONFIG_ARGS --with-cc="$CC" --with-cxx="$CXX" --disable-rfio --disable-builtin_afterimage ;;
164 >  slc*_ppc64*)
165      ./configure linux $CONFIG_ARGS --disable-rfio;;
166   esac
167  
168 < case %cmsplatf in
169 <  osx*)
170 <   makeopts=
102 <  ;;
103 <  *)
104 <   makeopts="%makeprocesses"
105 <  ;;
106 < esac
107 <
108 < make $makeopts
168 > makeopts="%makeprocesses"
169 >
170 > make $makeopts
171   make cintdlls
172  
173   %install
# Line 124 | Line 186 | export ROOTSYS=%i
186   make INSTALL="$cp" INSTALLDATA="$cp" install
187   mkdir -p $ROOTSYS/lib/python
188   cp -r cint/reflex/python/genreflex $ROOTSYS/lib/python
189 < #
189 > # This file confuses rpm's find-requires because it starts with
190 > # a """ and it thinks is the shebang.
191 > rm -f %i/tutorials/pyroot/mrt.py
192  
193   # SCRAM ToolBox toolfile
194   mkdir -p %i/etc/scram.d
# Line 164 | Line 228 | EOF_TOOLFILE
228  
229   # roothistmatrix toolfile
230   cat << \EOF_TOOLFILE >%i/etc/scram.d/roothistmatrix.xml
231 <  <tool name="roothistmatrix" version="%v">
231 >  <tool name="roothistmatrix" version="%v">
232      <info url="http://root.cern.ch/root/"/>
233      <lib name="Hist"/>
234      <lib name="Matrix"/>
# Line 174 | Line 238 | EOF_TOOLFILE
238  
239   # rootgpad toolfile
240   cat << \EOF_TOOLFILE >%i/etc/scram.d/rootgpad.xml
241 <  <tool name="rootgpad" version="%v">
241 >  <tool name="rootgpad" version="%v">
242      <info url="http://root.cern.ch/root/"/>
243      <lib name="Gpad"/>
244      <lib name="Graf"/>
# Line 316 | Line 380 | cat << \EOF_TOOLFILE >%i/etc/scram.d/roo
380    </tool>
381   EOF_TOOLFILE
382  
383 + # rootxml toolfile
384 + cat << \EOF_TOOLFILE >%i/etc/scram.d/rootxml.xml
385 +  <tool name="rootxml" version="%v">
386 +    <info url="http://root.cern.ch/root/"/>
387 +    <lib name="XMLParser"/>
388 +    <use name="ROOTCore"/>
389 +  </tool>
390 + EOF_TOOLFILE
391 +
392 + # rootfoam toolfile
393 + cat << \EOF_TOOLFILE >%i/etc/scram.d/rootfoam.xml
394 +  <tool name="rootfoam" version="%v">
395 +    <info url="http://root.cern.ch/root/"/>
396 +    <lib name="Foam"/>
397 +    <use name="roothistmatrix"/>
398 +  </tool>
399 + EOF_TOOLFILE
400 +
401   %post
402   perl -p -i -e "s|%{instroot}|$RPM_INSTALL_PREFIX|g" $(find $RPM_INSTALL_PREFIX/%pkgrel/etc/scram.d -type f)
403 +

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines