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.86 by elmer, Thu Jan 3 20:29:43 2008 UTC vs.
Revision 1.122 by andreasp, Thu Jul 24 18:39:57 2008 UTC

# Line 1 | Line 1
1 < ### RPM lcg root 5.17.08-CMS19
1 > ### RPM lcg root 5.20.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
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 < ## The following patch should only be applied for gcc4.x (x>0) and when
16 < ## using gccxml 0.7.0
17 < #Patch9: root_5.14_reflex_gccxml070_update
18 < #Patch10: root-5.14-xrootd-20071001-0000a
19 < #Patch11: root-5.14-silence-tmva
7 > Patch0: root-5.20-00-libpng
8 > Patch1: root-5.20-00-CINT-maxlongline
9  
10   %define cpu %(echo %cmsplatf | cut -d_ -f2)
11   %define pythonv %(echo $PYTHON_VERSION | cut -d. -f1,2)
23 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 xrootd
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
33 < #%patch2 -p2
34 < #%patch3 -p1
35 < #%patch4 -p0
36 < #%patch5 -p1
37 < #%patch6 -p0
38 < #%patch7 -p0
39 < #%if "%cmsplatf" == "slc4_ia32_gcc412"
40 < #%patch9 -p1
41 < #%endif
42 < #%patch10 -p1
43 < #%patch11 -p1
31 > %patch0 -p1
32 > %patch1 -p1
33  
34   %build
35   mkdir -p %i
36   export ROOTSYS=%_builddir/root
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 +             --with-xrootd=$XROOTD_ROOT
50 +             --enable-mysql --with-mysql-libdir=${MYSQL_ROOT}/lib --with-mysql-incdir=${MYSQL_ROOT}/include
51 +             --enable-qt --with-qt-libdir=${QT_ROOT}/lib --with-qt-incdir=${QT_ROOT}/include
52 +             --with-ssl-incdir=${OPENSSL_ROOT}/include
53 +             --with-ssl-libdir=${OPENSSL_ROOT}/lib"
54 + %endif
55 +
56   CONFIG_ARGS="--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
54             --enable-mysql --with-mysql-libdir=${MYSQL_ROOT}/lib --with-mysql-incdir=${MYSQL_ROOT}/include
62               --enable-explicitlink
63               --enable-qtgsi
57             --enable-qt --with-qt-libdir=${QT_ROOT}/lib --with-qt-incdir=${QT_ROOT}/include
64               --enable-mathcore
65               --enable-mathmore
66               --enable-reflex  
# Line 63 | Line 69 | CONFIG_ARGS="--enable-table
69               --enable-roofit
70               --disable-ldap
71               --disable-krb5
66             --with-ssl-incdir=${OPENSSL_ROOT}/include
67             --with-ssl-libdir=${OPENSSL_ROOT}/lib
72               --with-gsl-incdir=${GSL_ROOT}/include
73               --with-gsl-libdir=${GSL_ROOT}/lib
74               --with-dcap-libdir=${DCAP_ROOT}/lib
75               --with-dcap-incdir=${DCAP_ROOT}/include
72             --with-xrootd=$XROOTD_ROOT
76               --disable-pgsql
77 <             --disable-xml"
77 >             --disable-xml ${EXTRA_CONFIG_ARGS}"
78  
79   %if (("%cmsplatf" == "slc4_ia32_gcc412")||("%cmsplatf" == "slc4_ia32_gcc422")||("%cmsplatf" == "slc4_amd64_gcc345"))
80    CONFIG_ARGS="$CONFIG_ARGS --disable-cern"
# Line 79 | Line 82 | CONFIG_ARGS="--enable-table
82  
83   case $(uname)-$(uname -p) in
84    Linux-x86_64)
85 <    ./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;;
85 >    ./configure linuxx8664gcc $CONFIG_ARGS --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift --disable-astiff --disable-cern;;
86    Linux-i*86)
87 <    ./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;;
87 >    ./configure linux  $CONFIG_ARGS --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift;;
88    Darwin*)
89      ./configure macosx $CONFIG_ARGS --disable-rfio;;
90    Linux-ppc64*)
# Line 105 | Line 108 | fi
108   export ROOTSYS=%i
109   make INSTALL="$cp" INSTALLDATA="$cp" install
110   mkdir -p $ROOTSYS/lib/python
111 < cp -r reflex/python/genreflex $ROOTSYS/lib/python
111 > cp -r cint/reflex/python/genreflex $ROOTSYS/lib/python
112   #
113  
114   # SCRAM ToolBox toolfile
# Line 135 | Line 138 | cat << \EOF_TOOLFILE >%i/etc/scram.d/roo
138   </Tool>
139   EOF_TOOLFILE
140  
141 < # root toolfile
141 > # root toolfile, alias for rootphysics. Using rootphysics is preferred.
142   cat << \EOF_TOOLFILE >%i/etc/scram.d/root
143   <doc type=BuildSystem::ToolDoc version=1.0>
144   <Tool name=root version=%v>
145   <info url="http://root.cern.ch/root/"></info>
146 + <use name=rootphysics>
147 + </Tool>
148 + EOF_TOOLFILE
149 +
150 + # roothistmatrix toolfile
151 + cat << \EOF_TOOLFILE >%i/etc/scram.d/roothistmatrix
152 + <doc type=BuildSystem::ToolDoc version=1.0>
153 + <Tool name=roothistmatrix version=%v>
154 + <info url="http://root.cern.ch/root/"></info>
155 + <lib name=Hist>
156 + <lib name=Matrix>
157 + <use name=ROOTCore>
158 + </Tool>
159 + EOF_TOOLFILE
160 +
161 + # rootphysics toolfile
162 + cat << \EOF_TOOLFILE >%i/etc/scram.d/rootphysics
163 + <doc type=BuildSystem::ToolDoc version=1.0>
164 + <Tool name=rootphysics version=%v>
165 + <info url="http://root.cern.ch/root/"></info>
166 + <lib name=Physics>
167 + <use name=roothistmatrix>
168 + </Tool>
169 + EOF_TOOLFILE
170 +
171 + # rootgraphics toolfile, identical to old "root" toolfile
172 + cat << \EOF_TOOLFILE >%i/etc/scram.d/rootgraphics
173 + <doc type=BuildSystem::ToolDoc version=1.0>
174 + <Tool name=rootgraphics version=%v>
175 + <info url="http://root.cern.ch/root/"></info>
176   <lib name=TreePlayer>
177   <lib name=Gpad>
178   <lib name=Graf3d>
# Line 283 | Line 316 | EOF_TOOLFILE
316   %post
317   %{relocateConfig}etc/scram.d/root
318   %{relocateConfig}etc/scram.d/rootcore
319 + %{relocateConfig}etc/scram.d/roothistmatrix
320 + %{relocateConfig}etc/scram.d/rootphysics
321 + %{relocateConfig}etc/scram.d/rootgraphics
322   %{relocateConfig}etc/scram.d/rootcintex
323   %{relocateConfig}etc/scram.d/rootinteractive
324   %{relocateConfig}etc/scram.d/rootmath

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines