ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/root.spec
Revision: 1.302
Committed: Sat Oct 8 21:46:59 2011 UTC (13 years, 6 months ago) by lat
Branch: MAIN
CVS Tags: bld_1364477047_CmsTC_slc5_amd64_gcc434, bld_1363597235_CmsTC_slc5_amd64_gcc434, bld_1361358843_CmsTC_slc5_amd64_gcc434, bld_1360935597_CmsTC_slc5_amd64_gcc434, bld_1358942699_CmsTC_slc5_amd64_gcc434, bld_1358853292_CmsTC_slc5_amd64_gcc434, TW20120428p, TW20120417a, TW20120416a, TW20120410b, TW20120410a, TW20120327b, TW20120327a, TW20120326a, TW20120322a, HG1203i, TW20120321c, TW20120321b, TW20120321a, TW20120320b, TW20120320a, TW20120319k, TW20120319j, TW20120319i, TW20120319h, TW20120319g, TW20120319f, TW20120319e, TW20120319d, TW20120319c, TW20120319b, TW20120319a, TW20120313a, TW20120309h, TW20120309g, TW20120309f, TW20120309e, TW20120309d, TW20120309c, TW20120309b, TW20120309a, TW20120308b, TW20120308a, TW20120307a, HG1203h, TW20120305b, HG1203g, HG1203f, HG1203e, HG1203d, HG1203c, HG1203b, TW20120216b, TW20120216a, HG1201d, HG1203a, TW20120210a, TW20120209a, TW20120207b, TW20120207a, HG1201c, bld_1328198772_crab_slc5_amd64_gcc461, TW20120130b, TW20120130a, TW20120127b, TW20120127a, TW20120125a, bld_1327424666_crab-client3_slc5_amd64_gcc461, HG1201b, bld_1327416353_crab-server3_slc5_amd64_gcc461, bld_1327397075_cmsbuilder_slc5_amd64_gcc461, TW20120123a, TW20120120a, TW20120119b, TW20120119a, bld_1326980038_cmsbuild_slc5_amd64_gcc461, TW20120118a, bld_1326280382_cmsBuilder_slc5_amd64_gcc461, bld_1326274893_cmsBuilder_slc5_amd64_gcc461, bld_1326273864_asyncstageout_slc5_amd64_gcc461, bld_1324281658_cmsweb_osx106_amd64_gcc461, HG1201a, HG1112d, bld_1323333807_CmsTC_slc5_amd64_gcc461, HG1112c, TW20111129e, TW20111129d, TW20111129c, TW20111129a, TW20111128c, TW20111128b, TW20111128a, HG1112b, TW20111122a, TW20111120a, TW20111118c, TW20111118b, TW20111118a, HG1111e, bld_1321455789_happyface_slc5_amd64_gcc461, bld_1321454935_happyface_slc5_amd64_gcc461, TW20111115d, TW20111115c, TW20111115b, TW20111115a, HG1112a, TW20111103a, TW20111101e, TW20111101d, TW20111101c, TW20111101b, TW20111101a, TW20111028a, bld_1319551575_PHEDEX-combined-agents_slc5_amd64_gcc461, HG1111d, TW20111017d, TW20111017c, TW20111017b, TW20111017a, TW20111016a, TW20111015a, TW20111014a, bld_1318523430_cmsweb_slc5_amd64_gcc434, HG1111c-gcc434, HG1111c, LT20111012a, HG1111b
Changes since 1.301: +1 -1 lines
Log Message:
Treat SL6 identically to SL5.

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