ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/root.spec
Revision: 1.310
Committed: Mon Oct 31 10:45:16 2011 UTC (13 years, 5 months ago) by muzaffar
Branch: MAIN
CVS Tags: CMSSW_5_0_0_patch2, da20120123-50X, CMSSW_5_0_0_patch1, da20120112-50X, da20120110-50X, da20120106-52X, CMSSW_5_0_0_g4emtest, da20111220-50X, da20111219-50X, CMSSW_5_0_0, sjgFor500, az20111214-50X, vs20111213-50X, fwFor500pre7-online, CMSSW_5_0_0_pre7pythia424, sjgFor500pre7p424b, sjgFor500pre7p424, CMSSW_5_0_0_pre7, sjgFor500pre7, da20111202-50X, vs20111201c-50X, vs20111201temp-50X, vs20111201b-50X, vs20111201-50X, da20111201b-50X, da20111201-50X, da20111130-50X, CMSSW_5_0_0_pre6g494, da20111128-50X, sjgFor500pre6gcc494, az20111126-50X, sm20111126-50X, az20111125-50X, az20111124-50X, az20111123-50X, CMSSW_5_0_0_pre6, sjgFor500pre6, sm20111121-50X, az20111117b-50X, az20111117-50X, az20111116-50X, sm111115-onlgcc461, az20111115-50X, az20111108-50X-gcc461-ports, az20111108-50X-ports, az20111108-50X, CMSSW_5_0_0_pre5-ports, CMSSW_5_0_0_pre5, CMSSW_5_0_0_pre5-gcc461-ports, sjgFor500pre5-50X-gcc461-ports, sjgFor500pre5-ports, sjgFor500pre5, az20111102b-50X-ports, az20111102b-50X-gcc461-ports, az20111102b-50X, az20111102-50X, az20111031c-50X-gcc461-ports, az20111031c-50X-ports, az20111031c-50X, az20111031b-50X
Changes since 1.309: +1 -2 lines
Log Message:
do not pass full path of gcc and g++ to the configure script otherwise these full build paths are used by cint

File Contents

# User Rev Content
1 eulisse 1.300 ### RPM lcg root 5.30.02
2 dlange 1.57 ## INITENV +PATH PYTHONPATH %i/lib/python
3 elmer 1.198 ## INITENV SET ROOTSYS %i
4 fwyzard 1.291 #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 eulisse 1.300 #Patch4: root-5.28-00d-TBranchElement-dropped-data-member
15     #Patch5: root-5.30-00-TSchemaRuleProcessor-nested-space
16 fwyzard 1.291 #Patch5: root-5.28-00d-r37582-tmva
17     #Patch6: root-5.28-00d-TTreeCache-r37919
18     #Patch7: root-5.28-00d-r38248-r38259-r38264-r38265-r38267
19     #Patch8: root-5.28-00d-fireworks1
20     #Patch9: root-5.28-00d-r39155
21     #Patch10: root-5.28-00d-r39525
22     #Patch11: root-5.28-00d-r39657
23     #Patch12: root-5.28-00d-r39759
24     #Patch13: root-5.28-00d-fix-tsystem-load-macosx
25 eulisse 1.300 Patch14: root-5.30.02-detect-arch
26 eulisse 1.304 #Patch15: root-5.30.02-fix-isnan
27 eulisse 1.303 Patch16: root-5.30.02-fix-gcc46
28 eulisse 1.304 Patch17: root-5.30.02-r41453
29 gowdy 1.305 Patch18: root-5.30.02-r41523
30 eulisse 1.308 Patch19: root-5.30.02-fix-isnan-again
31 gowdy 1.309 Patch20: root-5.30.02-r41402
32 fwyzard 1.291
33 elmer 1.98 %define cpu %(echo %cmsplatf | cut -d_ -f2)
34    
35 fwyzard 1.291 Requires: gccxml gsl libjpg libpng libtiff libungif pcre python fftw3 xz xrootd
36 elmer 1.228
37 fwyzard 1.235 %if "%ismac" != "true"
38 elmer 1.228 Requires: castor dcap
39     %endif
40    
41 fwyzard 1.235 %if "%online" != "true"
42 eulisse 1.288 Requires: openssl zlib
43 elmer 1.228 %endif
44    
45 zafar 1.299 %define keep_archives true
46 zafar 1.296 %if "%(case %cmsplatf in (osx*_*_gcc421) echo true ;; (*) echo false ;; esac)" == "true"
47 fwyzard 1.235 Requires: gfortran-macosx
48     %endif
49    
50 eulisse 1.1 %prep
51 fwyzard 1.291 %setup -n root-%realversion
52 ratnik 1.106 %patch0 -p1
53     %patch1 -p1
54 elmer 1.205 %patch2 -p1
55 fwyzard 1.235 # patch3 is OS version dependent, see below
56 eulisse 1.300 # patch4 -p1
57     # patch5 -p2
58 fwyzard 1.291 # patch5 -p1
59     # patch6 -p1
60     # patch7 -p1
61     # patch8 -p1
62     # patch9 -p1
63     # patch10 -p1 TRY AGAIN!
64     # patch11 -p0
65     # patch12 -p2
66     # patch13 -p1
67 eulisse 1.300 %patch14 -p0
68 eulisse 1.304 # patch15 -p1
69 eulisse 1.303 %patch16 -p1
70 eulisse 1.304 %patch17 -p1
71 gowdy 1.307 %patch18 -p2
72 eulisse 1.308 %patch19 -p1
73 gowdy 1.309 %patch20 -p2
74 eulisse 1.279
75 fwyzard 1.235 # The following patch can only be applied on SLC5 or later (extra linker
76 elmer 1.198 # options only available with the SLC5 binutils)
77     case %cmsplatf in
78 lat 1.302 slc[56]_* | slc5onl_* )
79 fwyzard 1.235 %patch3 -p1
80 elmer 1.198 ;;
81     esac
82 eulisse 1.190
83 fwyzard 1.235 # Delete these (irrelevant) files as the fits appear to confuse rpm on OSX
84     # (It tries to run install_name_tool on them.)
85     rm -fR tutorials/fitsio
86    
87 eulisse 1.1 %build
88 andreasp 1.163
89 eulisse 1.1 mkdir -p %i
90 elmer 1.221 export LIBJPG_ROOT
91 elmer 1.14 export ROOTSYS=%_builddir/root
92 elmer 1.180 export PYTHONV=$(echo $PYTHON_VERSION | cut -f1,2 -d.)
93 dlange 1.103
94 muzaffar 1.164 %if "%online" == "true"
95 elmer 1.256 # Also skip xrootd and odbc for online case:
96 ratnik 1.111
97 muzaffar 1.164 EXTRA_CONFIG_ARGS="--with-f77=/usr
98 elmer 1.256 --disable-odbc --disable-astiff"
99 dlange 1.103 %else
100 elmer 1.221 export LIBPNG_ROOT ZLIB_ROOT LIBTIFF_ROOT LIBUNGIF_ROOT
101 muzaffar 1.164 EXTRA_CONFIG_ARGS="--with-f77=${GCC_ROOT}
102 ratnik 1.106 --with-ssl-incdir=${OPENSSL_ROOT}/include
103 elmer 1.256 --with-ssl-libdir=${OPENSSL_ROOT}/lib"
104 dlange 1.103 %endif
105 fwyzard 1.291 LZMA=${XZ_ROOT}
106     export LZMA
107 muzaffar 1.164 CONFIG_ARGS="--enable-table
108 eulisse 1.20 --disable-builtin-pcre
109     --disable-builtin-freetype
110     --disable-builtin-zlib
111 elmer 1.98 --with-gccxml=${GCCXML_ROOT}
112 elmer 1.180 --enable-python --with-python-libdir=${PYTHON_ROOT}/lib --with-python-incdir=${PYTHON_ROOT}/include/python${PYTHONV}
113 eulisse 1.2 --enable-explicitlink
114 eulisse 1.20 --enable-mathmore
115 eulisse 1.2 --enable-reflex
116     --enable-cintex
117 fwyzard 1.291 --enable-minuit2
118     --disable-builtin-lzma
119 elmer 1.221 --enable-fftw3
120     --with-fftw3-incdir=${FFTW3_ROOT}/include
121     --with-fftw3-libdir=${FFTW3_ROOT}/lib
122 elmer 1.98 --disable-ldap
123 gowdy 1.143 --disable-krb5
124 fwyzard 1.235 --with-xrootd=${XROOTD_ROOT}
125 eulisse 1.34 --with-gsl-incdir=${GSL_ROOT}/include
126     --with-gsl-libdir=${GSL_ROOT}/lib
127 elmer 1.59 --with-dcap-libdir=${DCAP_ROOT}/lib
128 elmer 1.98 --with-dcap-incdir=${DCAP_ROOT}/include
129     --disable-pgsql
130 elmer 1.181 --disable-mysql
131 elmer 1.256 --disable-qt --disable-qtgsi
132 elmer 1.242 --disable-oracle ${EXTRA_CONFIG_ARGS}"
133 elmer 1.98
134 eulisse 1.236 case %cmsos in
135     slc*_amd64)
136 fwyzard 1.235 ./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 ;;
137 eulisse 1.236 slc*_ia32)
138 fwyzard 1.235 ./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 ;;
139 eulisse 1.236 osx*)
140 elmer 1.198 case %cmsplatf in
141     *_amd64_* )
142 fwyzard 1.235 comparch=x86_64
143     macconfig=macosx64
144     ;;
145 elmer 1.198 esac
146 muzaffar 1.310 ./configure $arch $CONFIG_ARGS --disable-rfio --disable-builtin_afterimage ;;
147 eulisse 1.236 slc*_ppc64*)
148 elmer 1.98 ./configure linux $CONFIG_ARGS --disable-rfio;;
149 eulisse 1.1 esac
150 eulisse 1.2
151 elmer 1.243 makeopts="%makeprocesses"
152 eulisse 1.236
153     make $makeopts
154 eulisse 1.147
155 eulisse 1.1 %install
156     # Override installers if we are using GNU fileutils cp. On OS X
157     # ROOT's INSTALL is defined to "cp -pPR", which only works with
158     # the system cp (/bin/cp). If you have fileutils on fink, you
159     # lose. Check which one is getting picked up and select syntax
160     # accordingly. (FIXME: do we need to check that -P is accepted?)
161     if (cp --help | grep -e '-P.*--parents') >/dev/null 2>&1; then
162     cp="cp -dpR"
163     else
164     cp="cp -pPR"
165     fi
166    
167 dlange 1.57 export ROOTSYS=%i
168 eulisse 1.5 make INSTALL="$cp" INSTALLDATA="$cp" install
169 dlange 1.57 mkdir -p $ROOTSYS/lib/python
170 elmer 1.141 cp -r cint/reflex/python/genreflex $ROOTSYS/lib/python
171 eulisse 1.236 # This file confuses rpm's find-requires because it starts with
172     # a """ and it thinks is the shebang.
173     rm -f %i/tutorials/pyroot/mrt.py
174 eulisse 1.289
175