ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/geant4.spec
Revision: 1.77
Committed: Tue Feb 12 22:03:55 2008 UTC (17 years, 2 months ago) by dlange
Branch: MAIN
CVS Tags: forFrontend-3, webconddb173, condapp173, webconddb172, condapp172, webconddb171, condapp171, webconddb170, condapp170, condapp164b, webconddb164b, webconddb164, conapp164, zx20090506, forPHEDEX-web-services-20090423, forPHEDEX-web-services-20090406, forPHEDEX313a, zx20090224, zx20090219, forPHEDEX313, zx20090217, forPHEDEX-web-services-20090216, zx20090216, forPHEDEX312, zx20090115, zx20090114, WEBTOOLS-APPS_20090113, DBS-APPS_20090109, DBS-APPS_20090108, sw_20090108, WEBTOOLS-APPS_20090108, DBS-APPS_20090106, DBS-APPS_20090105, FMWS_20090103, FMWS_20081224_1, FMWS_20081224, FMWS_20081222_3, FMWS_20081222_2, FMWS_20081222, DBS-APPS_20081218, FMWS_20081212_1, FMWS_20081212, FMWS_20081211, DBS-APPS_20081211, forPHEDEX311, DBS-APPS_20081210, forPHEDEX310, DBS-APPS_20081209, WEBTOOLS-APPS_20081208, forPHEDEX310pre2, DBS-APPS_20081205, forPHEDEX-web-services-20081205, DBS-APPS_20081204, DBS-APPS_200811204, forPHEDEX310pre1, DBS-APPS_20081126_1, DBS-APPS_20081126, DBS-APPS_20081125, ofctest, DBS-APPS_20081119, DBS-APPS_20081118, DBS-APPS_20081117, DBS-APPS_20081114_1, DBS-APPS_20081114, DBS-APPS_20081112, DBS-APPS_20081111_1, DBS-APPS_20081110_2, DBS-APPS_20081110_1, WEBTOOLS-APPS_20081110, DBS-APPS_20081110, WEBTOOLS-APPS_20081107_1, WEBTOOLS-APPS_20081107, DBS-APPS_20081107, DBS-APPS_20081105, DBS-APPS_20081104, WEBTOOLS-APPS_20081031_2, DBS-APPS_20081031_2, DBS-APPS_20081031_1, WEBTOOLS-APPS_20081031_1, WEBTOOLS-APPS_20081031, forPHEDEX307, DBS-APPS_20081024, WEBTOOLS-APPS_20081020_1, WEBTOOLS-APPS_20081020, forFrontend-2, WEBTOOLS-APPS_20081016_2, WEBTOOLS-APPS_20081016_1, WEBTOOLS-APPS_20081016, WEBTOOLS-APPS_20081015, WEBTOOLS-APPS_20081013_1, WEBTOOLS-APPS_20081013, WEBTOOLS-APPS_20081009, WEBTOOLS-APPS_20081008_1, WEBTOOLS-APPS_20081008, forPHEDEX-web-services-20081008, forPHEDEX-web-services-20081007, forPHEDEX-web302_test1, forPHEDEX306, forPHEDEX-datasvc120_test1, WEBTOOLS-APPS_20080922, forFrontend-1, WEBTOOLS-APPS_20080917, WEBTOOLS-APPS_20080916, WEBTOOLS-APPS_20080915, forPHEDEX305, DBS-APPS_20080910_1, WEBTOOLS-APPS_20080910_1, WEBTOOLS-APPS_20080910, DBS-APPS_20080910, WEBTOOLS-APPS_20080909, DBS-APPS_20080908, WEBTOOLS-APPS_20080903, WEBTOOLS-APPS_20080826, zx20080825, WEBTOOLS-APPS_20080822, WEBTOOLS-APPS_20080821, WEBTOOLS-APPS_20080818_1, WEBTOOLS-APPS_20080818, forPHEDEX-web301, WEBTOOLS-APPS_20080725, WEBTOOLS-APPS_20080724, re-deps-20080722, zx20080718, WEBTOOLS-APPS_20080717, WEBTOOLS-APPS_20080716, WEBTOOLS-APPS_20080715_2, WEBTOOLS-APPS_20080715_1, WEBTOOLS-APPS_20080715, zx20080715, WEBTOOLS-APPS_20080713, forPHEDEX304, zx20080707, forPHEDEX-web110, re20080627, forPHEDEX-web300, zx20080625, WEBTOOLS-APPS_20080624, forPHEDEX-datasvc110, WEBTOOLS-APPS_20080619_1, WEBTOOLS-APPS_20080619, WEBTOOLS-APPS_20080617, zx20080611, WEBTOOLS-APPS_20080611, zx20080610, WEBTOOLS-APPS_20080609_1, WEBTOOLS-APPS_20080609, zx20080609, sw_20080509, WEBTOOLS-APPS_20080527_2, WEBTOOLS-APPS_20080527, WEBTOOLS-APPS_20080523, WEBTOOLS-APPS_20080522, WEBTOOLS-APPS_20080521, WEBTOOLS-APPS_20080520, WEBTOOLS-APPS_20080519, zx20080519, WEBTOOLS-APPS_20080511, zx20080509b, WEBTOOLS-APPS_20080507_1, WEBTOOLS-APPS_20080507, WEBTOOLS-APPS_20080506, WEBTOOLS-APPS_20080501, zx20080430, CMSSW_2_0_0_ONLINE2, nrnr080424for200onl2, nr080326fwl200p7, WEBTOOLS-APPS_20080422, apFor210p3v1, apFor210p3v0, CMSSW_2_1_0_pre2, WEBTOOLS-APPS_20080416, CMSSW_2_0_0_ONLINE1, apFor210p2v2, dl080415t2, dl080415, apFor210p2v1, apFor210p2v0, zx20080415-comp, webconddb_1_1_1, WEBTOOLS-APPS_20080414, nr080413, WEBTOOLS-APPS_20080412, WEBTOOLS-APPS_20080411_1, WEBTOOLS-APPS_20080411, CMSSW_2_0_0, WEBTOOLS-APPS_20080410, WEBTOOLS-APPS_20080409_1, WEBTOOLS-APPS_20080409, dl080408cand200t1, dl080408t1, WEBTOOLS-APPS_20080408_1, WEBTOOLS-APPS_20080408, nr080408for200p9, dl080407t3, dl080407t2, CMSSW_2_1_0_pre1, DBS-APPS_20080407, CMSSW_2_0_0_pre7_ONLINE1, WEBTOOLS-APPS_20080407, dl080407, apFor210p1, CMSSW_2_0_0_pre9, dl080405, WEBTOOLS-APPS_20080404_2, WEBTOOLS-APPS_20080404_1, WEBTOOLS-APPS_20080404, WEBTOOLS-APPS_20080403_4, WEBTOOLS-APPS_20080403_3, WEBTOOLS-APPS_20080403_2, WEBTOOLS-APPS_20080403_1, WEBTOOLS-APPS_20080403, nr080331for200p7onl1, CMSSW_2_0_0_pre8, sm080328a, WEBTOOLS-APPS_20080328, WEBTOOLS-APPS_20080327_1, WEBTOOLS-APPS_20080327, CMSSW_2_0_0_pre7, WEBTOOLS-APPS_20080326_6, WEBTOOLS-APPS_20080326_5, WEBTOOLS-APPS_20080326_4, WEBTOOLS-APPS_20080326_3, WEBTOOLS-APPS_20080326_2, WEBTOOLS-APPS_20080326, DBSweb_260308_1, DBSweb_260308, CMSSW_2_0_0_pre6, forPHEDEX262_cmsbuild5, forPHEDEX262_cmsbuild4, forPHEDEX262_cmsbuild3, sw_20080319, sw20080319, DBSweb_180308_2, DBSweb_180308_1, DBSweb_180308, DBSweb_170308_8, DBSweb_170308_7, DBSweb_170308_6, DBSweb_170308_5, DBSweb_170308_4, DBSweb_170308_3, DBSweb_170308_2, DBSweb_170308, SiteDB_170308, CMSSW_2_0_0_pre5, SiteDB_1_2_1-160308_2, SiteDB_1_2_1-160308, SM_150308_DBSDisc_9, SM_150308_DBSDisc_8, SM_150308_DBSDisc_7, SM_150308_DBSDisc_6, SM_150308_DBSDisc_5, SM_150308_DBSDisc_4, SM_150308_DBSDisc_3, SM_150308_DBSDisc_2, SM_150308_DBSDisc_1, SM_150308_DBSDisc, SiteDB_140308, SiteDB_130308, CMSSW_2_0_0_pre4, dl080312, dl080308, dl080307cmsswtoolconf2cms5, dl080307, dl080307cmsswtoolconf2cms4, dl080304t4, dl080304t3, dl080304t2, dl080304, ge20080304-comp, dl080229, pe20080229-ports, dl080228t2, dl080228, CMSSW_2_0_0_pre3, SiteDB_080227, dl080227, ge20080226, dl080226t2, dl080226, dl080224t3, dl080224t2, dl080224, dl080223, dl080222, dl080221, dl080220, sm080219, dl080218, SiteDB_SM_Nightly_150208
Branch point for: conddb-branch
Changes since 1.76: +2 -2 lines
Log Message:
turning off mult process compilation in g4 as it doesnt work with glob libraries

File Contents

# User Rev Content
1 dlange 1.76 ### RPM external geant4 9.1.p01-CMS1
2 eulisse 1.11 %define downloadv %(echo %v | cut -d- -f1)
3 dlange 1.74
4 eulisse 1.1 Requires: clhep
5 ratnik 1.69
6 eulisse 1.2 %define photonEvaporationVersion 2.0
7 ratnik 1.69 %define g4NDLVersion 3.12
8 dlange 1.48 %define g4ElasticScatteringVersion 1.1
9 ratnik 1.69 %define g4EMLOWVersion 5.1
10     %define radioactiveDecayVersion 3.2
11    
12 dlange 1.63 Source0: http://geant4.cern.ch/support/source/%n.%downloadv.tar.gz
13 eulisse 1.2 Source1: http://geant4.cern.ch/support/source/G4NDL.%{g4NDLVersion}.tar.gz
14     Source2: http://geant4.cern.ch/support/source/G4EMLOW.%{g4EMLOWVersion}.tar.gz
15     Source3: http://geant4.cern.ch/support/source/PhotonEvaporation.%{photonEvaporationVersion}.tar.gz
16 ratnik 1.69 Source4: http://geant4.cern.ch/support/source/G4RadioactiveDecay.%{radioactiveDecayVersion}.tar.gz
17 dlange 1.48 Source5: http://geant4.cern.ch/support/source/G4ELASTIC.%{g4ElasticScatteringVersion}.tar.gz
18 dlange 1.50
19 dlange 1.71 Patch: geant-4.8.2.p01-nobanner
20 elmer 1.41
21 eulisse 1.1 %prep
22 dlange 1.63 %setup -n %n.%downloadv
23 eulisse 1.21 pwd
24 dlange 1.71 %patch0 -p1
25 elmer 1.41
26 eulisse 1.1 %build
27 elmer 1.40 if [ $(uname) = Darwin ]; then
28     export MACOSX_DEPLOYMENT_TARGET="10.4"
29     fi
30 eulisse 1.1 # Linux? -pthread?
31 eulisse 1.2 touch G4BuildConf.sh
32 sashby 1.16 echo "export OS_ARCH=%{cmsplatf}" >> G4BuildConf.sh
33 eulisse 1.2 #FIXME: is this correct???
34     echo "export G4SYSTEM=$(uname)-g++" >> G4BuildConf.sh
35     echo "export G4INSTALL=%i" >> G4BuildConf.sh
36     echo "export G4BASE=$PWD/source" >> G4BuildConf.sh
37     echo "export G4WORKDIR=$PWD" >> G4BuildConf.sh
38     echo "export G4TMP=$PWD/tmp" >> G4BuildConf.sh
39     echo "export G4LIB=%i/lib" >> G4BuildConf.sh
40     echo "export G4LIB_BUILD_SHARED=1" >> G4BuildConf.sh
41 dlange 1.48 echo "unset G4DEBUG" >> G4BuildConf.sh
42 ratnik 1.69 echo "export CPPVERBOSE=yes" >> G4BuildConf.sh
43 eulisse 1.2
44     echo "export G4LEVELGAMMADATA=%i/data/PhotonEvaporation/%{photonEvaporationVersion}" >> G4BuildConf.sh
45 ratnik 1.69 echo "export G4RADIOACTIVEDATA=%i/data/RadioactiveDecay%{radioactiveDecayVersion}" >> G4BuildConf.sh
46 eulisse 1.2 echo "export G4LEDATA=%i/data/G4EMLOW%{g4EMLOWVersion}" >> G4BuildConf.sh
47 elmer 1.68 # G4ELASTIC is not needed from 8.2 onward
48     #echo "export G4ELASTIC=%i/data/G4ELASTIC%{g4ElasticScatteringVersion}" >> G4BuildConf.sh
49    
50     # From Gabriele Cosmo: The variable name 'NeutronHPCrossSections' is replaced by
51     # 'G4NEUTRONHPDATA' starting from version 9.0.
52 ratnik 1.69 #echo "export NeutronHPCrossSections=%i/data/G4NDL%{g4NDLVersion}" >> G4BuildConf.sh
53     echo "export G4NEUTRONHPDATA=%i/data/G4NDL%{g4NDLVersion}" >> G4BuildConf.sh
54    
55 eulisse 1.1
56     # export G4LIB_BUILD_STATIC=1
57     # FIXME: For OS X? export G4NO_OPTIMISE=1 // unset G4OPTIMISE
58     # FIXME: override CERNLIB_PATH?
59    
60 eulisse 1.2 echo "export CLHEP_BASE_DIR=$CLHEP_ROOT" >> G4BuildConf.sh
61 eulisse 1.1
62 eulisse 1.2 echo "export G4USE_STL=1" >> G4BuildConf.sh
63 eulisse 1.1 # export G4USE_G3TOG4=1
64    
65 elmer 1.68 # G4UI_BUILD_TERMINAL_SESSION is the default:
66 eulisse 1.2 echo "export G4UI_BUILD_TERMINAL_SESSION=1" >> G4BuildConf.sh
67 eulisse 1.1 # export G4UI_BUILD_GAG_SESSION=1
68     # export G4UI_BUILD_XAW_SESSION=1
69     # export G4UI_BUILD_XM_SESSION=1
70     # export G4UI_BUILD_WO_SESSION=1
71    
72 eulisse 1.20 # FIXME: this will not work on osx!
73 eulisse 1.2 echo "export OGLHOME=/usr/X11R6" >> G4BuildConf.sh
74 eulisse 1.1 # export OGLLIBS="-L$OGLHOME/lib -lGLU -lGL"
75     # export OGLFLAGS="-I$OGLHOME/include"
76    
77 elmer 1.68 # G4VIS_BUILD_DAWNFILE_DRIVER is the default
78 eulisse 1.2 echo "export G4VIS_BUILD_DAWNFILE_DRIVER=1" >> G4BuildConf.sh
79 eulisse 1.1 # export G4VIS_BUILD_DAWN_DRIVER=1
80     # export G4VIS_BUILD_OPENGLX_DRIVER=1
81     # export G4VIS_BUILD_OPENGLXM_DRIVER=1
82 eulisse 1.21 # echo "export G4VIS_BUILD_VRMLFILE_DRIVER=1" >> G4BuildConf.sh
83     # echo "export G4VIS_BUILD_VRML_DRIVER=1" >> G4BuildConf.sh
84     # echo "export G4VIS_BUILD_RAYTRACER_DRIVER=1" >> G4BuildConf.sh
85 eulisse 1.2 # export G4LIB_BUILD_G3TOG4=1
86     source G4BuildConf.sh
87 eulisse 1.1 mkdir -p %i
88     tar -cf - config source | tar -C %i -xf -
89 eulisse 1.26
90 dlange 1.77 make -C $G4BASE global
91     make -C $G4BASE includes
92 eulisse 1.1
93     %install
94 elmer 1.40 case $(uname) in Darwin ) so=dylib ;; * ) so=so ;; esac
95 eulisse 1.2 mkdir -p %i/etc
96     cp G4BuildConf.sh %i/etc
97 elmer 1.40 mv %i/lib/$(uname)-g++/*.$so %i/lib
98 elmer 1.68 # The following file does not appear to exist after this spec file was
99     # switched # to use the subsystem libraries instead of the individual ones,
100     # so comment # it for now
101     #mv %i/lib/$(uname)-g++/libname.map %i/lib
102 sashby 1.17 rm -rf %i/lib/$(uname)-g++
103 eulisse 1.1 # Build already installed into prefix
104     mkdir -p %i/data
105     tar -C %i/data -zxvf %_sourcedir/G4NDL*.tar.gz
106     tar -C %i/data -zxvf %_sourcedir/G4EMLOW*.tar.gz
107     tar -C %i/data -zxvf %_sourcedir/Photon*.tar.gz
108 ratnik 1.69 tar -C %i/data -zxvf %_sourcedir/G4Rad*.tar.gz
109 eulisse 1.31 #
110 muzaffar 1.49
111     # SCRAM ToolBox toolfile
112     mkdir -p %i/etc/scram.d
113     cat << \EOF_TOOLFILE >%i/etc/scram.d/%n
114     <doc type=BuildSystem::ToolDoc version=1.1>
115     <Tool name=GEANT4 version=%v>
116     <info url=http://wwwinfo.cern.ch/asd/geant4/geant4.html></info>
117 elmer 1.68 <lib name=G4digits_hits>
118 ratnik 1.69 <lib name=G4error_propagation>
119 elmer 1.68 <lib name=G4event>
120 dlange 1.63 <lib name=G4FR>
121 elmer 1.68 <lib name=G4geometry>
122     <lib name=G4global>
123 elmer 1.57 <lib name=G4graphics_reps>
124     <lib name=G4intercoms>
125 elmer 1.68 <lib name=G4interfaces>
126 elmer 1.57 <lib name=G4materials>
127     <lib name=G4modeling>
128 elmer 1.62 <lib name=G4parmodels>
129 ratnik 1.69 <lib name=G4particles>
130 elmer 1.62 <lib name=G4persistency>
131 elmer 1.68 <lib name=G4physicslists>
132     <lib name=G4processes>
133     <lib name=G4RayTracer>
134 elmer 1.57 <lib name=G4readout>
135     <lib name=G4run>
136 elmer 1.68 <lib name=G4tracking>
137 dlange 1.63 <lib name=G4track>
138 elmer 1.68 <lib name=G4Tree>
139 elmer 1.57 <lib name=G4visHepRep>
140 elmer 1.68 <lib name=G4vis_management>
141 dlange 1.63 <lib name=G4visXXX>
142 elmer 1.68 <lib name=G4VRML>
143 muzaffar 1.49 <Client>
144     <Environment name=GEANT4_BASE default="%i"></Environment>
145     <Environment name=G4SRC default="$GEANT4_BASE/source"></Environment>
146     <Environment name=LIBDIR default="$GEANT4_BASE/lib"></Environment>
147     <Environment name=G4LIB value="$LIBDIR"></Environment>
148     <Environment name=INCLUDE default="$GEANT4_BASE/include"></Environment>
149     </Client>
150     <use name=clhep>
151 ratnik 1.69 <Flags CPPDEFINES="G4USE_STD_NAMESPACE GNU_GCC G4V9">
152 muzaffar 1.49 <Runtime name=G4LEVELGAMMADATA value="$GEANT4_BASE/data/PhotonEvaporation2.0" type=path>
153 ratnik 1.70 <Runtime name=G4NEUTRONHPDATA value="$GEANT4_BASE/data/G4NDL3.12" type=path>
154 ratnik 1.69 <Runtime name=G4RADIOACTIVEDATA value="$GEANT4_BASE/data/RadioactiveDecay3.2" type=path>
155     <Runtime name=G4LEDATA value="$GEANT4_BASE/data/G4EMLOW5.1" type=path>
156 muzaffar 1.49 </Tool>
157     EOF_TOOLFILE
158    
159     %post
160     %{relocateConfig}etc/scram.d/%n