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.5 by eulisse, Tue Apr 11 14:52:58 2006 UTC vs.
Revision 1.201 by muzaffar, Wed Aug 11 09:11:42 2010 UTC

# Line 1 | Line 1
1 < ### RPM lcg root 5.10.00b
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
6 < Patch0: root
1 > ### RPM lcg root 5.22.00d
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 >
9 > Patch0: root-5.22-00d-externals
10 > Patch1: root-5.22-00d-CINT-maxlongline-maxtypedef
11 > Patch2: root-5.22-00-TMVA-shut-the-hell-up-for-once
12 > Patch3: root-5.22-00a-TMVA-shut-the-hell-up-again
13 > Patch4: root-5.22-00d-fireworks-graf3d-gui
14 > Patch5: root-5.22-00a-roofit-silence-static-printout
15 > Patch6: root-5.22-00a-TMVA-just-shut-the-hell-up
16 > Patch7: root-5.22-00a-th1
17 > Patch8: root-5.22-00d-makelib-ldl
18 > Patch9: root-5.22-00a-fireworks1
19 > Patch10: root-5.22-00a-gcc44
20 > Patch11: root-5.22-00a-fireworks2
21 > Patch12: root-5.22-00a-fireworks3
22 > Patch13: root-5.22-00a-gcc43-array-bounds-dictionary-workaround
23 > Patch14: root-5.22-00a-fireworks4
24 > Patch15: root-5.22-00d-fireworks5
25 > Patch16: root-5.22-00d-genreflex_python26_popen3
26 > Patch17: root-5.22-00d-fireworks6
27 > Patch18: root-5.22-00d-linker-gnu-hash-style
28 > Patch19: root-5.22-00d-TFile-version3-Init
29 > Patch20: root-5.22-00d-cint-namespace
30 > 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 > Patch24: root-5.22-00d-fireworks8
34 >
35 > %define cpu %(echo %cmsplatf | cut -d_ -f2)
36 >
37 > Requires: gccxml gsl castor libjpg dcap pcre python
38 > %if "%online" != "true"
39 > Requires: qt openssl libpng zlib libungif xrootd libtiff
40 > %endif
41 >
42   %prep
43   %setup -n root
44 < %patch0
44 > %patch0 -p1
45 > %patch1 -p1
46 > %patch2 -p1
47 > %patch3 -p1
48 > %patch4 -p1
49 >
50 > %patch5 -p1
51 > %patch6 -p1
52 > %patch7 -p1
53 > %patch8 -p1
54 > %patch9 -p1
55 >
56 > # patch10 is compiler version dependent, see below
57 > %patch11 -p1
58 > %patch12 -p1
59 > # patch13 is compiler version dependent, see below
60 >
61 > # work around patch issue...
62 > rm graf3d/gl/src/gl2ps.c
63 > %patch14 -p1
64 > #work around patch issues in patch14(?)
65 > rm graf3d/eve/inc/TEveLegoOverlay.h.orig
66 > rm graf3d/eve/src/TEveLegoOverlay.cxx
67 > rm graf3d/gl/inc/gl2ps.h.orig
68 > rm graf3d/gl/src/gl2ps.c.orig
69 > %patch15 -p1
70 > %patch16 -p1
71 > %patch17 -p1
72 > %patch19 -p1
73 > %patch20 -p1
74 > %patch21 -p1
75 > %patch22 -p1
76 > %patch23 -p1
77 > %patch24 -p1
78 >
79 > case %gccver in
80 >  4.3.*)
81 > %patch13 -p1
82 >  ;;
83 >  4.4.*)
84 > %patch10 -p1
85 >  ;;
86 > esac
87 >
88 > # The following patch can only be applied on SLC5 or later (extra linker
89 > # options only available with the SLC5 binutils)
90 > case %cmsplatf in
91 >  slc5_* | slc5onl_* )
92 > %patch18 -p1
93 >  ;;
94 > esac
95  
96   %build
97 +
98   mkdir -p %i
99 < export ROOTSYS=%i
99 > export ROOTSYS=%_builddir/root
100 > export PYTHONV=$(echo $PYTHON_VERSION | cut -f1,2 -d.)
101 >
102 > %if "%online" == "true"
103 > # Use system qt. Also skip xrootd and odbc for online case:
104 >
105 > EXTRA_CONFIG_ARGS="--with-f77=/usr
106 >             --disable-xrootd
107 >             --disable-odbc
108 >             --disable-qt --disable-qtgsi --disable-astiff"
109 > %else
110 > EXTRA_CONFIG_ARGS="--with-f77=${GCC_ROOT}
111 >             --with-xrootd=$XROOTD_ROOT
112 >             --enable-qt --with-qt-libdir=${QT_ROOT}/lib --with-qt-incdir=${QT_ROOT}/include
113 >             --with-ssl-incdir=${OPENSSL_ROOT}/include
114 >             --with-ssl-libdir=${OPENSSL_ROOT}/lib
115 >             --enable-qtgsi"
116 > %endif
117 >
118   CONFIG_ARGS="--enable-table
119 +             --disable-builtin-pcre
120 +             --disable-builtin-freetype
121 +             --disable-builtin-zlib
122               --with-gccxml=${GCCXML_ROOT}
123 <             --enable-python --with-python-libdir=${PYTHON_ROOT}/lib --with-python-incdir=${PYTHON_ROOT}/include
123 >             --enable-python --with-python-libdir=${PYTHON_ROOT}/lib --with-python-incdir=${PYTHON_ROOT}/include/python${PYTHONV}
124               --enable-explicitlink
125 <             --enable-qt --with-qt-libdir=${QT_ROOT}/lib --with-qt-incdir=${QT_ROOT}/include
19 <             --enable-mathcore
125 >             --enable-mathmore
126               --enable-reflex  
127               --enable-cintex
128               --enable-minuit2
129 <             --enable-roofit"
129 >             --disable-ldap
130 >             --disable-krb5
131 >             --with-gsl-incdir=${GSL_ROOT}/include
132 >             --with-gsl-libdir=${GSL_ROOT}/lib
133 >             --with-dcap-libdir=${DCAP_ROOT}/lib
134 >             --with-dcap-incdir=${DCAP_ROOT}/include
135 >             --disable-pgsql
136 >             --disable-mysql
137 >             --disable-xml ${EXTRA_CONFIG_ARGS}"
138  
139   case $(uname)-$(uname -m) in
140    Linux-x86_64)
141 <    ./configure linuxx8664gcc $CONFIG_ARGS;;
142 <  Linux*)
143 <    ./configure linux $CONFIG_ARGS;;
144 <  Darwin)
145 <    ./configure macosx $CONFIG_ARGS;;
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 >  Linux-i*86)
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 >  Darwin*)
145 >    case %cmsplatf in
146 >    *_ia32_* )
147 >      comparch=i386 ;;
148 >    *_amd64_* )
149 >      comparch=x86_64 ;;
150 >    * )
151 >      comparch=ppc ;;
152 >    esac
153 >    export CC="gcc -arch $comparch" CXX="g++ -arch $comparch"
154 >    ./configure macosx $CONFIG_ARGS --with-cc="$CC" --with-cxx="$CXX" --disable-rfio --disable-builtin_afterimage ;;
155 >  Linux-ppc64*)
156 >    ./configure linux $CONFIG_ARGS --disable-rfio;;
157   esac
158  
159 < make %makeprocesses
159 > case %cmsplatf in
160 >  osx*)
161 >   makeopts=
162 >  ;;
163 >  *)
164 >   makeopts="%makeprocesses"
165 >  ;;
166 > esac
167 >
168 > make $makeopts
169 > make cintdlls
170  
171   %install
172   # Override installers if we are using GNU fileutils cp.  On OS X
# Line 47 | Line 182 | fi
182  
183   export ROOTSYS=%i
184   make INSTALL="$cp" INSTALLDATA="$cp" install
185 < mkdir -p %i/lib/python
186 < cp -r reflex/python/genreflex %i/lib/python
185 > mkdir -p $ROOTSYS/lib/python
186 > cp -r cint/reflex/python/genreflex $ROOTSYS/lib/python

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines