ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/root.spec
Revision: 1.314
Committed: Thu Dec 1 10:29:56 2011 UTC (13 years, 4 months ago) by eulisse
Branch: MAIN
CVS Tags: CMSSW_5_0_0_patch2-gcc461-ports, da20120123-50X-gcc461-ports, CMSSW_5_0_0_patch1-gcc461-ports, da20120112-50X-gcc461-ports, CMSSW_5_0_0_ONLINE, da20120110-50X-gcc461-ports, fw20120110gcc461cmssw500onl, sm120105onl500, sm111222a-onlgcc461, sm111222-onlgcc461, da20111220-50X-gcc461-ports, da20111219-50X-gcc461-ports, CMSSW_5_0_0-gcc461-ports, sjgFor500-gcc461-ports, az20111214-50X-gcc461-ports, CMSSW_5_0_0_pre7-gcc461-ports, sjgFor500pre7-gcc461-ports, da20111206b-50X-gcc461-ports, da20111206-50X-gcc461-ports
Changes since 1.313: +3 -9 lines
Log Message:
Drop support for 32 bit builds.

File Contents

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