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.14 by elmer, Sat Jun 10 11:48:28 2006 UTC vs.
Revision 1.259 by elmer, Mon Apr 11 08:05:05 2011 UTC

# Line 1 | Line 1
1 < ### RPM lcg root 5.10.00c
2 < # INITENV +PATH PYTHONPATH %i/lib/python
3 < # 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
4 < Source: ftp://root.cern.ch/%n/%{n}_v%{v}.source.tar.gz
5 < Requires: gccxml python qt gsl rfio openssl mysql libpng libjpg libtiff
6 < Patch0: root
1 > ### RPM lcg root 5.27.06b
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 > %define ismac %(case %cmsplatf in osx*%closingbrace echo true;; *%closingbrace echo false;; esac)
9 >
10 > Patch0: root-5.27-06-externals
11 > Patch1: root-5.27-04-CINT-maxlongline-maxtypedef
12 > Patch2: root-5.22-00a-roofit-silence-static-printout
13 > Patch3: root-5.22-00d-linker-gnu-hash-style
14 > Patch4: root-5.22-00d-TBranchElement-dropped-data-member
15 > Patch5: root-5.27-06-fireworks9
16 > Patch6: root-5.27-06b-gdb-backtrace
17 > Patch7: root-5.27-06-tmva-DecisionTreeNode
18 > Patch8: root-5.27-06b-r36567
19 > Patch9: root-5.27-06b-r36572
20 > Patch10: root-5.27-06b-r36707
21 > Patch11: root-5.27-06b-r36594
22 > Patch12: root-5.27-06b-tmva-MethodBase-initvar
23 > Patch13: root-5.27-06b-r37582-tmva
24 > Patch14: root-5.27-06b-r37405
25 > Patch15: root-5.27-06b-r37556
26 > Patch16: root-5.27-06-fireworks10
27 > Patch17: root-5.27-06-TTreeClonerTopLevel
28 > Patch18: root-5.27-06b-r37947
29 > Patch19: root-5.27-06b-TTreeCache-r37950-r37919-r37917-r37916-r37906
30 > Patch20: root-5.27-06b-extra-math-for-roofit-5.28.00
31 > Patch21: root-5.27-06b-TEfficiency-backport-from-5.28.00
32 > Patch22: root-5.27-06b-histfactory-bits-from-5.28.00
33 > Patch23: root-5.27-06b-r37210
34 > Patch24: root-5.27-06b-r38023
35 > Patch25: root-5.27-06b-r36708
36 > Patch26: root-5.27-06b-r38126-r38156
37 > Patch27: root-5.27-06b-r38210
38 > Patch28: root-5.27-06b-r38248-r38252-r38259-r38264-r38265-r38267
39 > Patch29: root-5.27-06b-gcc46
40 > Patch30: root-5.27-06b-r38325
41 > Patch31: root-5.27-06b-tmva-MethodANNBase-uninitialized-var-fix
42 > Patch32: root-5.27-06b-r36196-r36698
43 > Patch33: root-5.27-06-fireworks11
44 >
45 > %define cpu %(echo %cmsplatf | cut -d_ -f2)
46 >
47 > Requires: gccxml gsl libjpg libpng libtiff libungif pcre python fftw3
48 >
49 > %if "%ismac" != "true"
50 > Requires: castor dcap
51 > %endif
52 >
53 > %if "%online" != "true"
54 > Requires: openssl zlib xrootd
55 > %endif
56 >
57 > %if "%ismac" == "true"
58 > Requires: gfortran-macosx
59 > %endif
60 >
61   %prep
62   %setup -n root
63 < %patch0
63 > %patch0 -p1
64 > %patch1 -p1
65 > %patch2 -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 > %patch27 -p1
91 > %patch28 -p1
92 > %patch29 -p1
93 > %patch30 -p1
94 > %patch31 -p1
95 > %patch32 -p1
96 > %patch33 -p1
97 >
98 > # The following patch can only be applied on SLC5 or later (extra linker
99 > # options only available with the SLC5 binutils)
100 > case %cmsplatf in
101 >  slc5_* | slc5onl_* )
102 > %patch3 -p1
103 >  ;;
104 > esac
105 >
106 > # Delete these (irrelevant) files as the fits appear to confuse rpm on OSX
107 > # (It tries to run install_name_tool on them.)
108 > rm -fR tutorials/fitsio
109  
110   %build
111 +
112   mkdir -p %i
113 + export LIBJPG_ROOT
114   export ROOTSYS=%_builddir/root
115 + export PYTHONV=$(echo $PYTHON_VERSION | cut -f1,2 -d.)
116 +
117 + %if "%online" == "true"
118 + # Also skip xrootd and odbc for online case:
119 +
120 + EXTRA_CONFIG_ARGS="--with-f77=/usr
121 +             --disable-odbc --disable-astiff"
122 + %else
123 + export LIBPNG_ROOT ZLIB_ROOT LIBTIFF_ROOT LIBUNGIF_ROOT
124 + EXTRA_CONFIG_ARGS="--with-f77=${GCC_ROOT}
125 +             --with-ssl-incdir=${OPENSSL_ROOT}/include
126 +             --with-ssl-libdir=${OPENSSL_ROOT}/lib"
127 + %endif
128 +
129   CONFIG_ARGS="--enable-table
130 +             --disable-builtin-pcre
131 +             --disable-builtin-freetype
132 +             --disable-builtin-zlib
133               --with-gccxml=${GCCXML_ROOT}
134 <             --enable-python --with-python-libdir=${PYTHON_ROOT}/lib --with-python-incdir=${PYTHON_ROOT}/include
17 <             --enable-mysql --with-mysql-libdir=${MYSQL_ROOT}/lib --with-mysql-incdir=${MYSQL_ROOT}/include
134 >             --enable-python --with-python-libdir=${PYTHON_ROOT}/lib --with-python-incdir=${PYTHON_ROOT}/include/python${PYTHONV}
135               --enable-explicitlink
136 <             --enable-qt --with-qt-libdir=${QT_ROOT}/lib --with-qt-incdir=${QT_ROOT}/include
20 <             --enable-mathcore
136 >             --enable-mathmore
137               --enable-reflex  
138               --enable-cintex
139               --enable-minuit2
140 <             --enable-roofit
140 >             --enable-fftw3
141 >             --with-fftw3-incdir=${FFTW3_ROOT}/include
142 >             --with-fftw3-libdir=${FFTW3_ROOT}/lib
143               --disable-ldap
144               --disable-krb5
145 <             --with-ssl-incdir=${OPENSSL_ROOT}/include
146 <             --with-ssl-libdir=${OPENSSL_ROOT}/lib
147 <             --with-shift-incdir=${RFIO_ROOT}/include
148 <             --with-shift-libdir=${RFIO_ROOT}/lib
145 >             --with-xrootd=${XROOTD_ROOT}
146 >             --with-gsl-incdir=${GSL_ROOT}/include
147 >             --with-gsl-libdir=${GSL_ROOT}/lib
148 >             --with-dcap-libdir=${DCAP_ROOT}/lib
149 >             --with-dcap-incdir=${DCAP_ROOT}/include
150               --disable-pgsql
151 <             --disable-xml"
151 >             --disable-mysql
152 >             --disable-qt --disable-qtgsi
153 >             --disable-oracle ${EXTRA_CONFIG_ARGS}"
154  
155 < case $(uname)-$(uname -m) in
156 <  Linux-x86_64)
157 <    ./configure linuxx8664gcc $CONFIG_ARGS;;
158 <  Linux*)
159 <    ./configure linux $CONFIG_ARGS;;
160 <  Darwin*)
161 <    ./configure macosx $CONFIG_ARGS;;
155 > case %cmsos in
156 >  slc*_amd64)
157 >    ./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 ;;
158 >  slc*_ia32)
159 >    ./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 ;;
160 >  osx*)
161 >    case %cmsplatf in
162 >    *_ia32_* )
163 >      comparch=i386
164 >      macconfig=macosx
165 >      ;;
166 >    *_amd64_* )
167 >      comparch=x86_64
168 >      macconfig=macosx64
169 >      ;;
170 >    * )
171 >      comparch=ppc
172 >      macconfig=macosx
173 >      ;;
174 >    esac
175 >    export CC=`which gcc` CXX=`which g++`
176 >    ./configure $arch $CONFIG_ARGS --with-cc="$CC" --with-cxx="$CXX" --disable-rfio --disable-builtin_afterimage ;;
177 >  slc*_ppc64*)
178 >    ./configure linux $CONFIG_ARGS --disable-rfio;;
179   esac
180  
181 < make %makeprocesses
181 > makeopts="%makeprocesses"
182 >
183 > make $makeopts
184 > make cintdlls
185  
186   %install
187   # Override installers if we are using GNU fileutils cp.  On OS X
# Line 54 | Line 195 | else
195    cp="cp -pPR"
196   fi
197  
198 < export ROOTSYS=%i/root
198 > export ROOTSYS=%i
199   make INSTALL="$cp" INSTALLDATA="$cp" install
200 < mkdir -p %i/root/lib/python
201 < cp -r reflex/python/genreflex %i/root/lib/python
200 > mkdir -p $ROOTSYS/lib/python
201 > cp -r cint/reflex/python/genreflex $ROOTSYS/lib/python
202 > # This file confuses rpm's find-requires because it starts with
203 > # a """ and it thinks is the shebang.
204 > rm -f %i/tutorials/pyroot/mrt.py
205 >
206 >

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines