ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/root-toolfile.spec
(Generate patch)

Comparing COMP/CMSDIST/root-toolfile.spec (file contents):
Revision 1.1 by eulisse, Tue Jun 27 13:14:22 2006 UTC vs.
Revision 1.7 by muzaffar, Tue Apr 12 15:17:36 2011 UTC

# Line 1 | Line 1
1 < ### RPM configuration root-toolfile 5.06.11a
2 < ## IMPORT scramtoolbox-common
3 <
4 < Source: none
1 > ### RPM lcg root-toolfile 2.0
2   Requires: root
3 + %prep
4  
5   %build
6 +
7   %install
9 mkdir -p %toolConfDir %toolBoxDir/General
8  
9 < cat << \EOF_root_TOOLCONF_FRAGMENT > %toolConfDir/root.conf
10 < TOOL:root
11 <   +ROOT_BASE:${ROOT_ROOT}
12 <   +PATH:${ROOT_ROOT}/bin
13 <   +LIBDIR:${ROOT_ROOT}/lib
14 <   +INCLUDE:${ROOT_ROOT}/include
15 < EOF_root_TOOLCONF_FRAGMENT
16 <
17 < cat << \EOF_root_TOOLFILE > %toolBoxDir/General/root
18 < <doc type=BuildSystem::ToolDoc version=1.0>
19 < <tool name=%toolname version=%v>
20 < <info url="http://root.cern.ch/root/"></info>
21 < <architecture name=macosx>
22 < <lib name=Cint>
23 < <lib name=Core>
24 < <lib name=Tree>
25 < </architecture>
26 < <architecture name=rh>
27 < <lib name=Cint>
28 < <lib name=Core>
29 < <lib name=Tree>
30 < </architecture>
31 < <architecture name=cel>
32 < <lib name=Cint>
33 < <lib name=Core>
34 < <lib name=Tree>
35 < </architecture>
36 < <architecture name=sl>
37 < <lib name=Cint>
38 < <lib name=Core>
39 < <lib name=Tree>
40 < </architecture>
41 < <architecture name=osx>
42 < <lib name=Cint>
43 < <lib name=Core>
44 < <lib name=Tree>
45 < </architecture>
46 < <architecture name=win>
47 < <lib name=libCint>
48 < <lib name=libCore>
49 < <lib name=libTree>
50 < </architecture>
51 < <client>
52 < <environment name=ROOT_BASE>
53 < Base of the ROOT analysis package.
54 < </environment>
55 < <environment name=LIBDIR default="$ROOT_BASE/root/lib" type=lib>
56 < Location of ROOT libraries.
57 < </environment>
58 < <environment name=INCLUDE default="$ROOT_BASE/root/include">
59 < Location of ROOT include files.
60 < </environment>
61 < <environment name=ROOTSYS default="$ROOT_BASE/root" type=Runtime></environment>
62 < </client>
63 < <environment name=PATH value="$ROOTSYS/bin" type=Runtime_path></environment>
64 < <architecture name=macosx>
65 < <environment name=PYTHONPATH value="$ROOTSYS/lib" type=Runtime_path></environment>
66 < <environment name=LD_LIBRARY_PATH value="$LIBDIR" type=Runtime_path></environment>
67 < </architecture>
68 < <architecture name=rh>
69 < <environment name=PYTHONPATH value="$ROOTSYS/lib" type=Runtime_path></environment>
70 < <environment name=LD_LIBRARY_PATH value="$LIBDIR" type=Runtime_path></environment>
71 < </architecture>
72 < <architecture name=cel>
73 < <environment name=PYTHONPATH value="$ROOTSYS/lib" type=Runtime_path></environment>
74 < <environment name=LD_LIBRARY_PATH value="$LIBDIR" type=Runtime_path></environment>
75 < </architecture>
76 < <architecture name=sl>
77 < <environment name=PYTHONPATH value="$ROOTSYS/lib" type=Runtime_path></environment>
78 < <environment name=LD_LIBRARY_PATH value="$LIBDIR" type=Runtime_path></environment>
79 < </architecture>
80 < <architecture name=osx>
81 < <environment name=LDFLAGS value="-u _G__cpp_setup_initializerG__Tree"></environment>
82 < <environment name=PYTHONPATH value="$ROOTSYS/lib" type=Runtime_path></environment>
83 < <environment name=LD_LIBRARY_PATH value="$LIBDIR" type=Runtime_path></environment>
84 < </architecture>
85 < <architecture name=win>
86 < <environment name=PYTHONPATH value="$ROOTSYS/bin" type=Runtime_path></environment>
87 < <environment name=LD_LIBRARY_PATH value="$ROOTSYS/bin" type=Runtime_path></environment>
88 < </architecture>
89 < </tool>
90 < EOF_root_TOOLFILE
91 < %files
92 < %toolBoxDir/General/root
93 < %toolConfDir/root.conf
9 > mkdir -p %i/etc/scram.d
10 > # root_interface toolfile
11 > cat << \EOF_TOOLFILE >%i/etc/scram.d/root_interface.xml
12 > <tool name="root_header" version="@TOOL_VERSION@">
13 >  <info url="http://root.cern.ch/root/"/>
14 >  <client>
15 >    <environment name="ROOT_INTERFACE_BASE" default="@TOOL_ROOT@"/>
16 >    <environment name="INCLUDE"             default="$ROOT_INTERFACE_BASE/include"/>
17 >    <environment name="LIBDIR"              default="$ROOT_INTERFACE_BASE/lib"/>
18 >  </client>
19 >  <runtime name="PATH"       value="$ROOT_INTERFACE_BASE/bin" type="path"/>
20 >  <runtime name="PYTHONPATH" value="$ROOT_INTERFACE_BASE/lib" type="path"/>
21 >  <runtime name="ROOTSYS"    value="$ROOT_INTERFACE_BASE/"/>
22 > </tool>
23 > EOF_TOOLFILE
24 >
25 > # rootcint toolfile
26 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootcint.xml
27 > <tool name="rootcint" version="@TOOL_VERSION@">
28 >  <info url="http://root.cern.ch/root/"/>
29 >  <lib name="Core"/>
30 >  <lib name="Cint"/>
31 >  <client>
32 >    <environment name="ROOTCINT_BASE" default="@TOOL_ROOT@"/>
33 >    <environment name="INCLUDE"       default="$ROOTCINT_BASE/cint"/>
34 >  </client>
35 >  <use name="root_interface"/>
36 >  <use name="sockets"/>
37 >  <use name="pcre"/>
38 >  <use name="zlib"/>
39 > </tool>
40 > EOF_TOOLFILE
41 >
42 > # rootrint toolfile
43 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootrint.xml
44 > <tool name="rootrint" version="@TOOL_VERSION@">
45 >  <info url="http://root.cern.ch/root/"/>
46 >  <lib name="Rint"/>
47 >  <use name="rootcint"/>
48 > </tool>
49 > EOF_TOOLFILE
50 >
51 > # rootrio toolfile
52 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootrio.xml
53 > <tool name="rootrio" version="@TOOL_VERSION@">
54 >  <info url="http://root.cern.ch/root/"/>
55 >  <lib name="RIO"/>
56 >  <use name="rootcint"/>
57 > </tool>
58 > EOF_TOOLFILE
59 >
60 > # rootxmlio toolfile
61 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootxmlio.xml
62 > <tool name="rootxmlio" version="@TOOL_VERSION@">
63 >  <info url="http://root.cern.ch/root/"/>
64 >  <lib name="XMLIO"/>
65 >  <use name="rootrio"/>
66 > </tool>
67 > EOF_TOOLFILE
68 >
69 > # rootcore toolfile
70 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootcore.xml
71 > <tool name="rootcore" version="@TOOL_VERSION@">
72 >  <info url="http://root.cern.ch/root/"/>
73 >  <lib name="Tree"/>
74 >  <lib name="Net"/>
75 >  <lib name="Thread"/>
76 >  <lib name="MathCore"/>
77 >  <use name="rootrio"/>
78 > </tool>
79 > EOF_TOOLFILE
80 >
81 > # roothistmatrix toolfile
82 > cat << \EOF_TOOLFILE >%i/etc/scram.d/roothistmatrix.xml
83 > <tool name="roothistmatrix" version="@TOOL_VERSION@">
84 >  <info url="http://root.cern.ch/root/"/>
85 >  <lib name="Hist"/>
86 >  <lib name="Matrix"/>
87 >  <use name="rootcore"/>
88 > </tool>
89 > EOF_TOOLFILE
90 >
91 > # rootphysics toolfile
92 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootphysics.xml
93 > <tool name="rootphysics" version="@TOOL_VERSION@">
94 >  <info url="http://root.cern.ch/root/"/>
95 >  <lib name="Physics"/>
96 >  <use name="roothistmatrix"/>
97 > </tool>
98 > EOF_TOOLFILE
99 >
100 > # root toolfile, alias for rootphysics. Using rootphysics is preferred.
101 > cat << \EOF_TOOLFILE >%i/etc/scram.d/root.xml
102 > <tool name="root" version="@TOOL_VERSION@">
103 >  <info url="http://root.cern.ch/root/"/>
104 >  <use name="rootphysics"/>
105 > </tool>
106 > EOF_TOOLFILE
107 >
108 > # rootgpad toolfile
109 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootgpad.xml
110 > <tool name="rootgpad" version="@TOOL_VERSION@">
111 >  <info url="http://root.cern.ch/root/"/>
112 >  <lib name="Gpad"/>
113 >  <lib name="Graf"/>
114 >  <use name="roothistmatrix"/>
115 > </tool>
116 > EOF_TOOLFILE
117 >
118 > # rootgraphics toolfile, identical to old "root" toolfile
119 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootgraphics.xml
120 > <tool name="rootgraphics" version="@TOOL_VERSION@">
121 >  <info url="http://root.cern.ch/root/"/>
122 >  <lib name="TreePlayer"/>
123 >  <lib name="Graf3d"/>
124 >  <lib name="Postscript"/>
125 >  <use name="rootgpad"/>
126 > </tool>
127 > EOF_TOOLFILE
128 >
129 > # rootinteractive toolfile
130 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootinteractive.xml
131 > <tool name="rootinteractive" version="@TOOL_VERSION@">
132 >  <info url="http://root.cern.ch/root/"/>
133 >  <lib name="Gui"/>
134 >  <use name="libjpg"/>
135 >  <use name="libpng"/>
136 >  <use name="rootgpad"/>
137 >  <use name="rootrint"/>
138 > </tool>
139 > EOF_TOOLFILE
140 >
141 > # rootmath toolfile
142 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootmath.xml
143 > <tool name="rootmath" version="@TOOL_VERSION@">
144 >  <info url="http://root.cern.ch/root/"/>
145 >  <lib name="GenVector"/>
146 >  <lib name="MathMore"/>
147 >  <use name="rootcore"/>
148 >  <use name="gsl"/>
149 > </tool>
150 > EOF_TOOLFILE
151 >
152 > # rootminuit toolfile
153 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootminuit.xml
154 > <tool name="rootminuit" version="@TOOL_VERSION@">
155 >  <info url="http://root.cern.ch/root/"/>
156 >  <lib name="Minuit"/>
157 >  <use name="rootgpad"/>
158 > </tool>
159 > EOF_TOOLFILE
160 >
161 > # rootminuit2 toolfile
162 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootminuit2.xml
163 > <tool name="rootminuit2" version="@TOOL_VERSION@">
164 >  <info url="http://root.cern.ch/root/"/>
165 >  <lib name="Minuit2"/>
166 >  <use name="rootgpad"/>
167 > </tool>
168 > EOF_TOOLFILE
169 >
170 > # rootrflx toolfile
171 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootrflx.xml
172 > <tool name="rootrflx" version="@TOOL_VERSION@">
173 >  <info url="http://root.cern.ch/root/"/>
174 >  <lib name="Reflex"/>
175 >  <client>
176 >    <environment name="ROOTRFLX_BASE" default="@TOOL_ROOT@"/>
177 >  </client>
178 >  <flags GENREFLEX_GCCXMLOPT="@GENREFLEX_GCCXMLOPT@"/>
179 >  <flags GENREFLEX_CPPFLAGS="-DCMS_DICT_IMPL -D_REENTRANT -DGNUSOURCE"/>
180 >  <flags GENREFLEX_ARGS="--deep"/>
181 >  <runtime name="GENREFLEX" value="$ROOTRFLX_BASE/bin/genreflex"/>
182 >  <use name="gccxml"/>
183 >  <use name="root_interface"/>
184 > </tool>
185 > EOF_TOOLFILE
186 >
187 > # roothtml toolfile
188 > cat << \EOF_TOOLFILE >%i/etc/scram.d/roothtml.xml
189 > <tool name="roothtml" version="@TOOL_VERSION@">
190 >  <info url="http://root.cern.ch/root/"/>
191 >  <lib name="Html"/>
192 >  <use name="rootgpad"/>
193 > </tool>
194 > EOF_TOOLFILE
195 >
196 > # rootmlp toolfile
197 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootmlp.xml
198 > <tool name="rootmlp" version="@TOOL_VERSION@">
199 >  <info url="http://root.cern.ch/root/"/>
200 >  <lib name="MLP"/>
201 >  <use name="rootgraphics"/>
202 > </tool>
203 > EOF_TOOLFILE
204 >
205 > # roottmva toolfile
206 > cat << \EOF_TOOLFILE >%i/etc/scram.d/roottmva.xml
207 > <tool name="roottmva" version="@TOOL_VERSION@">
208 >  <info url="http://root.cern.ch/root/"/>
209 >  <lib name="TMVA"/>
210 >  <use name="rootmlp"/>
211 >  <use name="rootminuit"/>
212 > </tool>
213 > EOF_TOOLFILE
214 >
215 > # rootthread toolfile
216 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootthread.xml
217 > <tool name="rootthread" version="@TOOL_VERSION@">
218 >  <info url="http://root.cern.ch/root/"/>
219 >  <use name="rootcore"/>
220 > </tool>
221 > EOF_TOOLFILE
222 >
223 > # rootxml toolfile
224 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootxml.xml
225 > <tool name="rootxml" version="@TOOL_VERSION@">
226 >  <info url="http://root.cern.ch/root/"/>
227 >  <lib name="XMLParser"/>
228 >  <use name="rootcore"/>
229 > </tool>
230 > EOF_TOOLFILE
231 >
232 > # rootfoam toolfile
233 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootfoam.xml
234 > <tool name="rootfoam" version="@TOOL_VERSION@">
235 >  <info url="http://root.cern.ch/root/"/>
236 >  <lib name="Foam"/>
237 >  <use name="roothistmatrix"/>
238 > </tool>
239 > EOF_TOOLFILE
240 >
241 > # rootcintex toolfile
242 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootcintex.xml
243 > <tool name="rootcintex" version="@TOOL_VERSION@">
244 >  <info url="http://root.cern.ch/root/"/>
245 >  <lib name="Cintex"/>
246 >  <use name="rootrflx"/>
247 >  <use name="rootcint"/>
248 > </tool>
249 > EOF_TOOLFILE
250 >
251 > case %cmsos in
252 >  *_ia32)
253 >    GENREFLEX_GCCXMLOPT="-m32"
254 >  ;;
255 >  *_amd64)
256 >    GENREFLEX_GCCXMLOPT="-m64"
257 >  ;;
258 > esac
259 > export GENREFLEX_GCCXMLOPT
260 >
261 > ## IMPORT scram-tools-post

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines