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.73 by dlange, Mon Oct 15 12:31:04 2007 UTC vs.
Revision 1.130 by elmer, Tue Jan 13 19:44:39 2009 UTC

# Line 1 | Line 1
1 < ### RPM lcg root 5.14.00g-CMS11
1 > ### RPM lcg root 5.22.00
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
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  
7 < Patch: root-CINT-maxlongline
8 < Patch1: root_libpng
9 < Patch2: root_PositionVector
10 < Patch3: root-fastmerge-ttree
11 < Patch4: root_TXMLSetup
12 < Patch5: root-Cintex
13 < Patch6: root_Reflex_Cintex
14 < Patch7: root_CallFunc
15 < Patch8: root-proofd
7 > Patch0:  root-5.18-00-libpng
8 > Patch1:  root-5.21-04-CINT-maxlongline
9  
10   %define cpu %(echo %cmsplatf | cut -d_ -f2)
11   %define pythonv %(echo $PYTHON_VERSION | cut -d. -f1,2)
19 Requires: gccxml python qt gsl castor openssl mysql libpng libjpg dcap pcre zlib oracle libungif xrootd
12  
13 < %if "%cpu" != "amd64"
13 > Requires: gccxml gsl castor libjpg dcap pcre python
14 >
15 > %if "%cmsplatf" != "slc4onl_ia32_gcc346"
16 > Requires: qt openssl mysql libpng zlib libungif
17 > %else
18 > %define skiplibtiff true
19 > %endif
20 >
21 > %if "%cpu" == "amd64"
22 > %define skiplibtiff true
23 > %endif
24 >
25 > %if "%skiplibtiff" != "true"
26   Requires: libtiff
27   %endif
28  
29   %prep
30   %setup -n root
31 < %patch -p0
32 < %patch1 -p2
29 < %patch2 -p2
30 < %patch3 -p1
31 < %patch4 -p0
32 < %patch5 -p1
33 < %patch6 -p0
34 < %patch7 -p0
35 < %patch8 -p1
31 > %patch0 -p1
32 > %patch1 -p1
33  
34   %build
35   mkdir -p %i
36   export ROOTSYS=%_builddir/root
37 < CONFIG_ARGS="--enable-table
37 >
38 > %if "%cmsplatf" == "slc4onl_ia32_gcc346"
39 > # Build without mysql, and use system qt.
40 > # Also skip xrootd and odbc for online case:
41 >
42 > EXTRA_CONFIG_ARGS="
43 >             --disable-mysql
44 >             --disable-xrootd
45 >             --disable-odbc
46 >             --enable-qt"
47 > %else
48 > EXTRA_CONFIG_ARGS="
49 >             --enable-mysql --with-mysql-libdir=${MYSQL_ROOT}/lib --with-mysql-incdir=${MYSQL_ROOT}/include
50 >             --enable-qt --with-qt-libdir=${QT_ROOT}/lib --with-qt-incdir=${QT_ROOT}/include
51 >             --with-ssl-incdir=${OPENSSL_ROOT}/include
52 >             --with-ssl-libdir=${OPENSSL_ROOT}/lib"
53 > %endif
54 >
55 > CONFIG_ARGS="--with-f77=${GCC_ROOT}
56 >             --enable-table
57               --disable-builtin-pcre
58               --disable-builtin-freetype
59               --disable-builtin-zlib
60               --with-gccxml=${GCCXML_ROOT}
61               --enable-python --with-python-libdir=${PYTHON_ROOT}/lib --with-python-incdir=${PYTHON_ROOT}/include/python2.4
46             --enable-mysql --with-mysql-libdir=${MYSQL_ROOT}/lib --with-mysql-incdir=${MYSQL_ROOT}/include
62               --enable-explicitlink
63               --enable-qtgsi
49             --enable-qt --with-qt-libdir=${QT_ROOT}/lib --with-qt-incdir=${QT_ROOT}/include
50             --enable-mathcore
64               --enable-mathmore
65               --enable-reflex  
66               --enable-cintex
# Line 55 | Line 68 | CONFIG_ARGS="--enable-table
68               --enable-roofit
69               --disable-ldap
70               --disable-krb5
58             --with-ssl-incdir=${OPENSSL_ROOT}/include
59             --with-ssl-libdir=${OPENSSL_ROOT}/lib
71               --with-gsl-incdir=${GSL_ROOT}/include
72               --with-gsl-libdir=${GSL_ROOT}/lib
73               --with-dcap-libdir=${DCAP_ROOT}/lib
74               --with-dcap-incdir=${DCAP_ROOT}/include
64             --with-xrootd=$XROOTD_ROOT
75               --disable-pgsql
76 <             --disable-xml"
76 >             --disable-xml ${EXTRA_CONFIG_ARGS}"
77 >
78 > #case %gccver in
79 > #  4.*)
80 > #  CONFIG_ARGS="$CONFIG_ARGS --disable-cern"
81 > #  ;;
82 > #esac
83  
84   case $(uname)-$(uname -p) in
85    Linux-x86_64)
86 <    ./configure linuxx8664gcc $CONFIG_ARGS --enable-oracle --with-oracle-libdir=${ORACLE_ROOT}/lib --with-oracle-incdir=${ORACLE_ROOT}/include --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift --disable-astiff --disable-cern;;
86 >    ./configure linuxx8664gcc $CONFIG_ARGS --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift --disable-astiff --disable-cern;;
87    Linux-i*86)
88 <    ./configure linux  $CONFIG_ARGS --enable-oracle --with-oracle-libdir=${ORACLE_ROOT}/lib --with-oracle-incdir=${ORACLE_ROOT}/include --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift;;
88 >    ./configure linux  $CONFIG_ARGS --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift;;
89    Darwin*)
90      ./configure macosx $CONFIG_ARGS --disable-rfio;;
91    Linux-ppc64*)
# Line 93 | Line 109 | fi
109   export ROOTSYS=%i
110   make INSTALL="$cp" INSTALLDATA="$cp" install
111   mkdir -p $ROOTSYS/lib/python
112 < cp -r reflex/python/genreflex $ROOTSYS/lib/python
112 > cp -r cint/reflex/python/genreflex $ROOTSYS/lib/python
113   #
114  
115   # SCRAM ToolBox toolfile
# Line 105 | Line 121 | cat << \EOF_TOOLFILE >%i/etc/scram.d/roo
121   <info url="http://root.cern.ch/root/"></info>
122   <lib name=Cint>
123   <lib name=Core>
124 + <lib name=RIO>
125 + <lib name=Net>
126   <lib name=Tree>
127   <Client>
128   <Environment name=ROOTCORE_BASE default="%i"></Environment>
# Line 121 | Line 139 | cat << \EOF_TOOLFILE >%i/etc/scram.d/roo
139   </Tool>
140   EOF_TOOLFILE
141  
142 < # root toolfile
142 > # root toolfile, alias for rootphysics. Using rootphysics is preferred.
143   cat << \EOF_TOOLFILE >%i/etc/scram.d/root
144   <doc type=BuildSystem::ToolDoc version=1.0>
145   <Tool name=root version=%v>
146   <info url="http://root.cern.ch/root/"></info>
147 + <use name=rootphysics>
148 + </Tool>
149 + EOF_TOOLFILE
150 +
151 + # roothistmatrix toolfile
152 + cat << \EOF_TOOLFILE >%i/etc/scram.d/roothistmatrix
153 + <doc type=BuildSystem::ToolDoc version=1.0>
154 + <Tool name=roothistmatrix version=%v>
155 + <info url="http://root.cern.ch/root/"></info>
156 + <lib name=Hist>
157 + <lib name=Matrix>
158 + <use name=ROOTCore>
159 + </Tool>
160 + EOF_TOOLFILE
161 +
162 + # rootphysics toolfile
163 + cat << \EOF_TOOLFILE >%i/etc/scram.d/rootphysics
164 + <doc type=BuildSystem::ToolDoc version=1.0>
165 + <Tool name=rootphysics version=%v>
166 + <info url="http://root.cern.ch/root/"></info>
167 + <lib name=Physics>
168 + <use name=roothistmatrix>
169 + </Tool>
170 + EOF_TOOLFILE
171 +
172 + # rootgraphics toolfile, identical to old "root" toolfile
173 + cat << \EOF_TOOLFILE >%i/etc/scram.d/rootgraphics
174 + <doc type=BuildSystem::ToolDoc version=1.0>
175 + <Tool name=rootgraphics version=%v>
176 + <info url="http://root.cern.ch/root/"></info>
177   <lib name=TreePlayer>
178   <lib name=Gpad>
179   <lib name=Graf3d>
# Line 170 | Line 218 | cat << \EOF_TOOLFILE >%i/etc/scram.d/roo
218   <info url="http://root.cern.ch/root/"></info>
219   <lib name=MathCore>
220   <lib name=MathMore>
221 + <lib name=GenVector>
222   <use name=ROOTCore>
223   <use name=gsl>
224   </Tool>
# Line 229 | Line 278 | cat << \EOF_TOOLFILE >%i/etc/scram.d/roo
278   <doc type=BuildSystem::ToolDoc version=1.0>
279   <Tool name=rootroofit version=%v>
280   <info url="http://root.cern.ch/root/"></info>
281 + <lib name=RooFitCore>
282   <lib name=RooFit>
283   <use name=ROOTMinuit>
284   <use name=ROOTHtml>
# Line 268 | Line 318 | EOF_TOOLFILE
318   %post
319   %{relocateConfig}etc/scram.d/root
320   %{relocateConfig}etc/scram.d/rootcore
321 + %{relocateConfig}etc/scram.d/roothistmatrix
322 + %{relocateConfig}etc/scram.d/rootphysics
323 + %{relocateConfig}etc/scram.d/rootgraphics
324   %{relocateConfig}etc/scram.d/rootcintex
325   %{relocateConfig}etc/scram.d/rootinteractive
326   %{relocateConfig}etc/scram.d/rootmath

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines