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.73 by ratnik, Tue Feb 5 21:40:04 2008 UTC vs.
Revision 1.90 by fabiocos, Fri Nov 27 16:44:58 2009 UTC

# Line 1 | Line 1
1 < ### RPM external geant4 9.1.p01-dbg-global
1 > ### RPM external geant4 9.2.p01
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
7 < %define g4NDLVersion 3.12
7 > %define g4NDLVersion 3.13
8   %define g4ElasticScatteringVersion 1.1
9 < %define g4EMLOWVersion 5.1
9 > %define g4EMLOWVersion 6.2
10   %define radioactiveDecayVersion 3.2
11  
12   Source0: http://geant4.cern.ch/support/source/%n.%downloadv.tar.gz
# 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 > Patch1: geant4.9.2.p01-gcc44
21 > Patch2: geant4.9.2.p01-G4Cons-G4QElasticCrossSection
22  
23   %prep
24   %setup -n %n.%downloadv
25   pwd
25
26   %patch0 -p1
27 <
28 < # ONLY for Fermilab tests !
29 < # Add -g option to keep debug symbols:
30 < cp -p config/sys/Linux-g++.gmk config/sys/Linux-g++.gmk.orig
31 < perl -i -p -e '{s| -O2| -O2 -g|}' config/sys/Linux-g++.gmk
32 <
27 > %patch1 -p1
28 > %patch2 -p1
29 >
30   %build
31   if [ $(uname) = Darwin ]; then
32    export MACOSX_DEPLOYMENT_TARGET="10.4"
# Line 94 | Line 91 | source G4BuildConf.sh
91   mkdir -p %i
92   tar -cf - config source | tar -C %i -xf -
93  
94 < make %makeprocesses -C $G4BASE global
95 < make %makeprocesses -C $G4BASE includes
94 > make -C $G4BASE global
95 > make -C $G4BASE includes
96  
97   %install
98   case $(uname) in Darwin ) so=dylib ;; * ) so=so ;; esac
# Line 113 | Line 110 | tar -C %i/data -zxvf %_sourcedir/G4NDL*.
110   tar -C %i/data -zxvf %_sourcedir/G4EMLOW*.tar.gz
111   tar -C %i/data -zxvf %_sourcedir/Photon*.tar.gz
112   tar -C %i/data -zxvf %_sourcedir/G4Rad*.tar.gz
113 < #
113 > # Clean up the sources, which are not needed in the rpm
114 > rm -rf %i/source
115  
116   # SCRAM ToolBox toolfile
117   mkdir -p %i/etc/scram.d
# Line 149 | Line 147 | cat << \EOF_TOOLFILE >%i/etc/scram.d/%n
147   <lib name=G4VRML>
148   <Client>
149   <Environment name=GEANT4_BASE default="%i"></Environment>
152 <Environment name=G4SRC default="$GEANT4_BASE/source"></Environment>
150   <Environment name=LIBDIR default="$GEANT4_BASE/lib"></Environment>
151   <Environment name=G4LIB value="$LIBDIR"></Environment>
152   <Environment name=INCLUDE default="$GEANT4_BASE/include"></Environment>
# Line 157 | Line 154 | cat << \EOF_TOOLFILE >%i/etc/scram.d/%n
154   <use name=clhep>
155   <Flags CPPDEFINES="G4USE_STD_NAMESPACE GNU_GCC G4V9">
156   <Runtime name=G4LEVELGAMMADATA value="$GEANT4_BASE/data/PhotonEvaporation2.0" type=path>
157 < <Runtime name=G4NEUTRONHPDATA value="$GEANT4_BASE/data/G4NDL3.12" type=path>
157 > <Runtime name=G4NEUTRONHPDATA value="$GEANT4_BASE/data/G4NDL3.13" type=path>
158   <Runtime name=G4RADIOACTIVEDATA value="$GEANT4_BASE/data/RadioactiveDecay3.2" type=path>
159 < <Runtime name=G4LEDATA value="$GEANT4_BASE/data/G4EMLOW5.1" type=path>
159 > <Runtime name=G4LEDATA value="$GEANT4_BASE/data/G4EMLOW6.2" type=path>
160   </Tool>
161   EOF_TOOLFILE
162  
163 + cat << \EOF_TOOLFILE >%i/etc/scram.d/geant4core
164 + <doc type=BuildSystem::ToolDoc version=1.1>
165 + <Tool name=geant4core version=%v>
166 + <info url=http://wwwinfo.cern.ch/asd/geant4/geant4.html></info>
167 + <lib name=G4digits_hits>
168 + <lib name=G4error_propagation>
169 + <lib name=G4event>
170 + <lib name=G4geometry>
171 + <lib name=G4global>
172 + <lib name=G4graphics_reps>
173 + <lib name=G4intercoms>
174 + <lib name=G4interfaces>
175 + <lib name=G4materials>
176 + <lib name=G4parmodels>
177 + <lib name=G4particles>    
178 + <lib name=G4persistency>
179 + <lib name=G4physicslists>
180 + <lib name=G4processes>
181 + <lib name=G4readout>
182 + <lib name=G4run>
183 + <lib name=G4tracking>
184 + <lib name=G4track>
185 + <Client>
186 + <Environment name=GEANT4_BASE default="%i"></Environment>
187 + <Environment name=LIBDIR default="$GEANT4_BASE/lib"></Environment>
188 + <Environment name=G4LIB value="$LIBDIR"></Environment>
189 + <Environment name=INCLUDE default="$GEANT4_BASE/include"></Environment>
190 + </Client>
191 + <use name=clhep>
192 + <Flags CPPDEFINES="G4USE_STD_NAMESPACE GNU_GCC G4V9">
193 + <Runtime name=G4LEVELGAMMADATA value="$GEANT4_BASE/data/PhotonEvaporation2.0" type=path>
194 + <Runtime name=G4NEUTRONHPDATA value="$GEANT4_BASE/data/G4NDL3.13" type=path>
195 + <Runtime name=G4RADIOACTIVEDATA value="$GEANT4_BASE/data/RadioactiveDecay3.2" type=path>
196 + <Runtime name=G4LEDATA value="$GEANT4_BASE/data/G4EMLOW6.2" type=path>
197 + </Tool>
198 + EOF_TOOLFILE
199 +
200 + cat << \EOF_TOOLFILE >%i/etc/scram.d/geant4vis
201 + <doc type=BuildSystem::ToolDoc version=1.1>
202 + <Tool name=geant4vis version=%v>
203 + <info url=http://wwwinfo.cern.ch/asd/geant4/geant4.html></info>
204 + <lib name=G4FR>
205 + <lib name=G4modeling>
206 + <lib name=G4RayTracer>
207 + <lib name=G4Tree>
208 + <lib name=G4visHepRep>
209 + <lib name=G4vis_management>
210 + <lib name=G4visXXX>
211 + <lib name=G4VRML>
212 + <use name=geant4core>
213 + </Tool>
214 + EOF_TOOLFILE
215 +
216 +
217   %post
218   %{relocateConfig}etc/scram.d/%n
219 + %{relocateConfig}etc/scram.d/geant4core
220 + %{relocateConfig}etc/scram.d/geant4vis

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines