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

Comparing COMP/CMSDIST/geant4.spec (file contents):
Revision 1.70 by ratnik, Tue Jan 8 21:29:45 2008 UTC vs.
Revision 1.83 by elmer, Mon Dec 29 20:38:25 2008 UTC

# Line 1 | Line 1
1 < ### RPM external geant4 9.1-dbg-global
1 > ### RPM external geant4 9.2
2   %define downloadv %(echo %v | cut -d- -f1)
3 < # Special distribution for local validation at FNAL: see comments below.
4 < Provides: /bin/awk
3 >
4   Requires: clhep
5  
6   %define photonEvaporationVersion 2.0
# Line 17 | Line 16 | Source3: http://geant4.cern.ch/support/s
16   Source4: http://geant4.cern.ch/support/source/G4RadioactiveDecay.%{radioactiveDecayVersion}.tar.gz
17   Source5: http://geant4.cern.ch/support/source/G4ELASTIC.%{g4ElasticScatteringVersion}.tar.gz
18  
19 < #Patch: geant-4.8.2.p01-nobanner
19 > Patch: geant-4.8.2.p01-nobanner
20  
21   %prep
22   %setup -n %n.%downloadv
23   pwd
24 <
25 < # ONLY for Fermilab tests !
27 < # Add -g option to keep debug symbols:
28 < cp -p config/sys/Linux-g++.gmk config/sys/Linux-g++.gmk.orig
29 < perl -i -p -e '{s| -O2| -O2 -g|}' config/sys/Linux-g++.gmk
30 <
24 > %patch0 -p1
25 >
26   %build
27   if [ $(uname) = Darwin ]; then
28    export MACOSX_DEPLOYMENT_TARGET="10.4"
# Line 92 | Line 87 | source G4BuildConf.sh
87   mkdir -p %i
88   tar -cf - config source | tar -C %i -xf -
89  
90 < make %makeprocesses -C $G4BASE global
91 < make %makeprocesses -C $G4BASE includes
90 > make  -C $G4BASE global
91 > make  -C $G4BASE includes
92  
93   %install
94   case $(uname) in Darwin ) so=dylib ;; * ) so=so ;; esac
# Line 161 | Line 156 | cat << \EOF_TOOLFILE >%i/etc/scram.d/%n
156   </Tool>
157   EOF_TOOLFILE
158  
159 + cat << \EOF_TOOLFILE >%i/etc/scram.d/geant4core
160 + <doc type=BuildSystem::ToolDoc version=1.1>
161 + <Tool name=geant4core version=%v>
162 + <info url=http://wwwinfo.cern.ch/asd/geant4/geant4.html></info>
163 + <lib name=G4digits_hits>
164 + <lib name=G4error_propagation>
165 + <lib name=G4event>
166 + <lib name=G4geometry>
167 + <lib name=G4global>
168 + <lib name=G4graphics_reps>
169 + <lib name=G4intercoms>
170 + <lib name=G4interfaces>
171 + <lib name=G4materials>
172 + <lib name=G4parmodels>
173 + <lib name=G4particles>    
174 + <lib name=G4persistency>
175 + <lib name=G4physicslists>
176 + <lib name=G4processes>
177 + <lib name=G4readout>
178 + <lib name=G4run>
179 + <lib name=G4tracking>
180 + <lib name=G4track>
181 + <Client>
182 + <Environment name=GEANT4_BASE default="%i"></Environment>
183 + <Environment name=G4SRC default="$GEANT4_BASE/source"></Environment>
184 + <Environment name=LIBDIR default="$GEANT4_BASE/lib"></Environment>
185 + <Environment name=G4LIB value="$LIBDIR"></Environment>
186 + <Environment name=INCLUDE default="$GEANT4_BASE/include"></Environment>
187 + </Client>
188 + <use name=clhep>
189 + <Flags CPPDEFINES="G4USE_STD_NAMESPACE GNU_GCC G4V9">
190 + <Runtime name=G4LEVELGAMMADATA value="$GEANT4_BASE/data/PhotonEvaporation2.0" type=path>
191 + <Runtime name=G4NEUTRONHPDATA value="$GEANT4_BASE/data/G4NDL3.12" type=path>
192 + <Runtime name=G4RADIOACTIVEDATA value="$GEANT4_BASE/data/RadioactiveDecay3.2" type=path>
193 + <Runtime name=G4LEDATA value="$GEANT4_BASE/data/G4EMLOW5.1" type=path>
194 + </Tool>
195 + EOF_TOOLFILE
196 +
197 + cat << \EOF_TOOLFILE >%i/etc/scram.d/geant4vis
198 + <doc type=BuildSystem::ToolDoc version=1.1>
199 + <Tool name=geant4vis version=%v>
200 + <info url=http://wwwinfo.cern.ch/asd/geant4/geant4.html></info>
201 + <lib name=G4FR>
202 + <lib name=G4modeling>
203 + <lib name=G4RayTracer>
204 + <lib name=G4Tree>
205 + <lib name=G4visHepRep>
206 + <lib name=G4vis_management>
207 + <lib name=G4visXXX>
208 + <lib name=G4VRML>
209 + <use name=geant4core>
210 + </Tool>
211 + EOF_TOOLFILE
212 +
213 +
214   %post
215   %{relocateConfig}etc/scram.d/%n
216 + %{relocateConfig}etc/scram.d/geant4core
217 + %{relocateConfig}etc/scram.d/geant4vis

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines