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.195 by elmer, Thu Apr 8 15:28:15 2010 UTC vs.
Revision 1.240 by elmer, Mon Feb 7 21:40:44 2011 UTC

# Line 1 | Line 1
1 < ### RPM lcg root 5.22.00d
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.21-04-CINT-maxlongline
13 < Patch2: root-5.22-00-TMVA-shut-the-hell-up-for-once
14 < Patch3: root-5.22-00a-TMVA-shut-the-hell-up-again
15 < Patch4: root-5.22-00d-fireworks-graf3d-gui
16 < Patch5: root-5.22-00a-roofit-silence-static-printout
17 < Patch6: root-5.22-00a-TMVA-just-shut-the-hell-up
18 < Patch7: root-5.22-00a-th1
19 < Patch8: root-5.22-00d-makelib-ldl
20 < Patch9: root-5.22-00a-fireworks1
21 < Patch10: root-5.22-00a-gcc44
22 < Patch11: root-5.22-00a-fireworks2
23 < Patch12: root-5.22-00a-fireworks3
24 < Patch13: root-5.22-00a-gcc43-array-bounds-dictionary-workaround
25 < Patch14: root-5.22-00a-fireworks4
26 < Patch15: root-5.22-00d-fireworks5
27 < Patch16: root-5.22-00d-genreflex_python26_popen3
28 < Patch17: root-5.22-00d-fireworks6
29 < Patch18: root-5.22-00d-linker-gnu-hash-style
30 < Patch19: root-5.22-00d-TFile-version3-Init
31 < Patch20: root-5.22-00d-cint-namespace
32 < Patch21: root-5.22-00d-fireworks7
31 < Patch22: root-5.22-00d-TMath-Vavilov
32 < Patch23: root-5.22-00d-TBranchElement-dropped-data-member
33 <
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 >
33   %define cpu %(echo %cmsplatf | cut -d_ -f2)
34  
35 < Requires: gccxml gsl castor libjpg dcap pcre python
35 > Requires: gccxml gsl libjpg libpng libtiff libungif pcre python fftw3
36 >
37 > %if "%ismac" != "true"
38 > Requires: castor dcap
39 > %endif
40  
41   %if "%online" != "true"
42 < Requires: qt openssl libpng zlib libungif xrootd
40 < %else
41 < %define skiplibtiff true
42 > Requires: openssl zlib xrootd
43   %endif
44  
45 < %if "%cpu" == "amd64"
46 < %define skiplibtiff true
45 > %if "%ismac" == "true"
46 > Requires: gfortran-macosx
47   %endif
48  
49 < %if "%skiplibtiff" != "true"
50 < Requires: libtiff
49 > %if "%online" != "true"
50 > %if "%ismac" != "true"
51 > Requires: qt
52 > %endif
53   %endif
54  
55   %prep
# Line 54 | Line 57 | Requires: libtiff
57   %patch0 -p1
58   %patch1 -p1
59   %patch2 -p1
60 < %patch3 -p1
60 > # patch3 is OS version dependent, see below
61   %patch4 -p1
59
62   %patch5 -p1
63   %patch6 -p1
64   %patch7 -p1
65   %patch8 -p1
66   %patch9 -p1
67 <
66 < # patch10 is compiler version dependent, see below
67 > %patch10 -p1
68   %patch11 -p1
69   %patch12 -p1
70 < # patch13 is compiler version dependent, see below
70 <
71 < # work around patch issue...
72 < rm graf3d/gl/src/gl2ps.c
70 > %patch13 -p1
71   %patch14 -p1
74 #work around patch issues in patch14(?)
75 rm graf3d/eve/inc/TEveLegoOverlay.h.orig
76 rm graf3d/eve/src/TEveLegoOverlay.cxx
77 rm graf3d/gl/inc/gl2ps.h.orig
78 rm graf3d/gl/src/gl2ps.c.orig
72   %patch15 -p1
73   %patch16 -p1
74 < %patch17 -p1
75 < %patch19 -p1
74 > %patch17 -p0
75 > %patch18 -p1
76 > %patch19 -p0
77   %patch20 -p1
84 %patch21 -p1
85 %patch22 -p1
86 %patch23 -p1
78  
79 < case %gccver in
89 <  4.3.*)
90 < %patch13 -p1
91 <  ;;
92 <  4.4.*)
93 < %patch10 -p1
94 <  ;;
95 < esac
96 <
97 < # The following patch can only be applied on SLC5 or later (extra linker
79 > # The following patch can only be applied on SLC5 or later (extra linker
80   # options only available with the SLC5 binutils)
81   case %cmsplatf in
82    slc5_* | slc5onl_* )
83 < %patch18 -p1
83 > %patch3 -p1
84    ;;
85   esac
86  
87 + # 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   %build
92  
93   mkdir -p %i
94 + export LIBJPG_ROOT
95   export ROOTSYS=%_builddir/root
96   export PYTHONV=$(echo $PYTHON_VERSION | cut -f1,2 -d.)
97  
# Line 112 | Line 99 | export PYTHONV=$(echo $PYTHON_VERSION |
99   # Use system qt. Also skip xrootd and odbc for online case:
100  
101   EXTRA_CONFIG_ARGS="--with-f77=/usr
115             --disable-xrootd
102               --disable-odbc
103 <             --disable-qt --disable-qtgsi"
103 >             --disable-qt --disable-qtgsi --disable-astiff"
104   %else
105 + export LIBPNG_ROOT ZLIB_ROOT LIBTIFF_ROOT LIBUNGIF_ROOT
106   EXTRA_CONFIG_ARGS="--with-f77=${GCC_ROOT}
120             --with-xrootd=$XROOTD_ROOT
107               --enable-qt --with-qt-libdir=${QT_ROOT}/lib --with-qt-incdir=${QT_ROOT}/include
108               --with-ssl-incdir=${OPENSSL_ROOT}/include
109               --with-ssl-libdir=${OPENSSL_ROOT}/lib
# Line 135 | Line 121 | CONFIG_ARGS="--enable-table
121               --enable-reflex  
122               --enable-cintex
123               --enable-minuit2
124 +             --enable-fftw3
125 +             --with-fftw3-incdir=${FFTW3_ROOT}/include
126 +             --with-fftw3-libdir=${FFTW3_ROOT}/lib
127               --disable-ldap
128               --disable-krb5
129 +             --with-xrootd=${XROOTD_ROOT}
130               --with-gsl-incdir=${GSL_ROOT}/include
131               --with-gsl-libdir=${GSL_ROOT}/lib
132               --with-dcap-libdir=${DCAP_ROOT}/lib
133               --with-dcap-incdir=${DCAP_ROOT}/include
134               --disable-pgsql
135               --disable-mysql
136 +             --disable-oracle
137               --disable-xml ${EXTRA_CONFIG_ARGS}"
138  
139 < case $(uname)-$(uname -m) in
140 <  Linux-x86_64)
141 <    ./configure linuxx8664gcc $CONFIG_ARGS --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift --disable-astiff;;
142 <  Linux-i*86)
143 <    ./configure linux  $CONFIG_ARGS --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift;;
144 <  Darwin*)
139 > case %cmsos in
140 >  slc*_amd64)
141 >    ./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 ;;
142 >  slc*_ia32)
143 >    ./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 ;;
144 >  osx*)
145      case %cmsplatf in
146      *_ia32_* )
147 <      comparch=i386 ;;
147 >      comparch=i386
148 >      macconfig=macosx
149 >      ;;
150      *_amd64_* )
151 <      comparch=x86_64 ;;
151 >      comparch=x86_64
152 >      macconfig=macosx64
153 >      ;;
154      * )
155 <      comparch=ppc ;;
155 >      comparch=ppc
156 >      macconfig=macosx
157 >      ;;
158      esac
159 <    export CC="gcc -arch $comparch" CXX="g++ -arch $comparch"
160 <    ./configure macosx $CONFIG_ARGS --with-cc="$CC" --with-cxx="$CXX" --disable-rfio --disable-builtin_afterimage ;;
161 <  Linux-ppc64*)
159 >    export CC=`which gcc` CXX=`which g++`
160 >    ./configure $arch $CONFIG_ARGS --with-cc="$CC" --with-cxx="$CXX" --disable-rfio --disable-builtin_afterimage ;;
161 >  slc*_ppc64*)
162      ./configure linux $CONFIG_ARGS --disable-rfio;;
163   esac
164  
# Line 173 | Line 170 | case %cmsplatf in
170     makeopts="%makeprocesses"
171    ;;
172   esac
173 <
174 < make $makeopts
173 >
174 > make $makeopts
175   make cintdlls
176  
177   %install
# Line 193 | Line 190 | export ROOTSYS=%i
190   make INSTALL="$cp" INSTALLDATA="$cp" install
191   mkdir -p $ROOTSYS/lib/python
192   cp -r cint/reflex/python/genreflex $ROOTSYS/lib/python
193 < #
193 > # This file confuses rpm's find-requires because it starts with
194 > # a """ and it thinks is the shebang.
195 > rm -f %i/tutorials/pyroot/mrt.py
196  
197   # SCRAM ToolBox toolfile
198   mkdir -p %i/etc/scram.d
# Line 233 | Line 232 | EOF_TOOLFILE
232  
233   # roothistmatrix toolfile
234   cat << \EOF_TOOLFILE >%i/etc/scram.d/roothistmatrix.xml
235 <  <tool name="roothistmatrix" version="%v">
235 >  <tool name="roothistmatrix" version="%v">
236      <info url="http://root.cern.ch/root/"/>
237      <lib name="Hist"/>
238      <lib name="Matrix"/>
# Line 243 | Line 242 | EOF_TOOLFILE
242  
243   # rootgpad toolfile
244   cat << \EOF_TOOLFILE >%i/etc/scram.d/rootgpad.xml
245 <  <tool name="rootgpad" version="%v">
245 >  <tool name="rootgpad" version="%v">
246      <info url="http://root.cern.ch/root/"/>
247      <lib name="Gpad"/>
248      <lib name="Graf"/>
# Line 387 | Line 386 | EOF_TOOLFILE
386  
387   %post
388   perl -p -i -e "s|%{instroot}|$RPM_INSTALL_PREFIX|g" $(find $RPM_INSTALL_PREFIX/%pkgrel/etc/scram.d -type f)
389 +

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines