ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/clhep.spec
Revision: 1.25
Committed: Sun Mar 29 22:05:34 2009 UTC (16 years, 1 month ago) by dlange
Branch: MAIN
CVS Tags: CMSSW_3_1_6, bhFor316v0, CMSSW_3_1_5, bhFor315v0, bhFor314v0, CMSSW_3_2_7_onlpatch6_ONLINE, for327op6, CMSSW_3_2_7_onlpatch5_ONLINE, CMSSW_3_2_7_onlpatch4_ONLINE, sm327op4, CMSSW_3_2_8, sm091012a, CMSSW_3_2_7_onlpatch3_ONLINE, eskFor328, sm091007a, CMSSW_3_1_4, CMSSW_3_2_7_onlpatch2_ONLINE, sm090928a, CMSSW_3_1_3, CMSSW_3_2_7_onlpatch1_ONLINE, CMSSW_3_2_7_ONLINE, sm090923a, sm090922a, CMSSW_3_2_7, eskFor327, CMSSW_3_3_0_pre2, apFor330pre2v1, apFor330pre2v0, CMSSW_3_2_6, pe20090904a-ports, pe20090904a-for33X, pe20090903b-for33X, eskFor326, pe20090903b-ports, pe20090903a-ports, pe20090903-for33X, CMSSW_3_3_0_pre1, CMSSW_3_2_1_onlpatch6_ONLINE, sm090829a, esk090827, pe20090827a-ports, pe20090827a-33X, pe20090826a-33X, CMSSW_3_2_1_onlpatch5_ONLINE, pe20090826a-ports, sm090826a, CMSSW_3_2_5, smFor325v0, eskFor325, CMSSW_3_2_1_onlpatch4_ONLINE, sm090818a, CMSSW_3_2_4_ONLINE, sm090813e, CMSSW_3_2_4_patch1, CMSSW_3_2_4, sm090813d, sm090813c, sm090813b, sm324p1a, sm090813a, CMSSW_3_2_1_onlpatch3_ONLINE, sm090810a, CMSSW_3_2_1_onlpatch2_ONLINE, sm090806a, CMSSW_3_2_3, apFor323v1, apFor323v0, DQMGUI_5_0_2, DQMGUI_5_0_1, DQMGUI_5_0_0, CMSSW_3_2_1_onlpatch1_ONLINE, CMSSW_3_2_2_patch2, apFor321onlp1v1, apFor321onlp1v0, apFor322patch2v0, CMSSW_3_2_2_patch1, apFor322pa1v0, CMSSW_3_2_2, CMSSW_3_1_2, CMSSW_3_2_1-432, apFor322v0, dl090723, pe20090722b-31Xports-432, pe20090722a-31Xports-432, CMSSW_3_2_1_ONLINE, CMSSW_3_2_1, sm090721b, sm090721a, apFor321v0, sm090720b, sm090720a, apFor320onlv1, apFor320onlv0, CMSSW_3_2_0, apFor320v1, apFor320v0, CMSSW_3_1_1_patch1, sm090716a_off, CMSSW_3_1_1_onlpatch3_ONLINE, sm090716a, CMSSW_3_1_1_onlpatch2_ONLINE, sm090715c, sm090715b, sm090715a, CMSSW_3_ONLINE_BOOTSTRAP, sm090709a, CMSSW_3_1_1_onlpatch1_ONLINE, sm090708g, CMSSW_3_1_1_ONLINE, CMSSW_3_1_1_reallyThisTime, sm090708f, sm090708e, sm090708d, sm090708c, sm090708b, CMSSW_3_1_0_ONLINE2, sm090708a, CMSSW_3_1_1, dl090707, pe20090707c-31Xports-432, pe20090707b-31Xports-432, pe20090707a-31Xports-432, pe20090706b-31Xports-432, pe20090706a-31Xports-432, CMSSW_3_1_0_onlpatch1_ONLINE, sm090703a, CMSSW_3_1_0_patch1, pe20090701a-31Xports-432, CMSSW_3_1_0_ONLINE, sm090701b, CMSSW_3_1_0, sm090701a, CMSSW_3_1_0_pre11, dl090623, CMSSW_3_1_0_pre10_ONLINE, sm090621b, sm090621a, sm090620b, sm090620a, sm090619e, sm090619d, sm090619c, sm090619b, sm090619a, sm090618a, CMSSW_3_1_0_pre10-432, pe20090616a-31Xports-432, pe20090615a-31Xports-432, CMSSW_3_1_0_pre10, dl090611, CMSSW_3_1_0_pre9, pe20090611c-31Xports-432, pe20090611b-31Xports-432, pe20090611a-31Xports-432, pe20090610d-31Xports-432, pe20090610c-31Xports-432, pe20090610b-31Xports-432, pe20090610a-31Xports-432, pe20090604a-31Xports-432, CMSSW_3_1_0_pre8, pe20090526a-31Xports-432, pe20090525b-31Xports-432, pe20090525a-31Xports-432, dl090520t2, dl090520, ap20090520-osx105, ap20090519-osx105, CMSSW_3_1_0_pre7, pe20090514b-31Xports-432, dl090514t3, dl090514t2, pe20090514a-31Xports-432, dl090514, pe20090512a-31Xports-432, pe20090511a-31Xports-432, dl090509, dl090504gcc41, pe20090505b-31Xports-432, pe20090505a-31Xports-432, dl090504, pe20090504a-31Xports-432, CMSSW_3_1_0_pre6, dl090425, dl090421, CMSSW_3_1_0_pre5, dl090416, pe20090414a-31Xports-432, dl090410, dl090409t2, dl090409, pe20090407a-31Xports-432, dl090406t2, dl090406, pe20090406b-31Xports-432, pe20090406a-31Xports-432, dl090403, pe20090403a-31Xports-432, dl090401t2, dl090401, dl090330, dl090329
Changes since 1.24: +3 -0 lines
Log Message:
adding patch to clhep to ease 1.9 to 2.0 migration

File Contents

# User Rev Content
1 elmer 1.24 ### RPM external clhep 1.9.4.2
2 elmer 1.23 Source: http://proj-clhep.web.cern.ch/proj-clhep/DISTRIBUTION/distributions/%n-%realversion.tgz
3 dlange 1.25 Patch0: clhep_20fwd
4    
5 argiro 1.1
6     %prep
7 elmer 1.12 %setup -n %realversion/CLHEP
8 dlange 1.25 %patch0 -p2
9 argiro 1.1
10     %build
11 elmer 1.9 if [ $(uname) = Darwin ]; then
12     export MACOSX_DEPLOYMENT_TARGET="10.4"
13     fi
14 argiro 1.1 CXX=g++ ./configure --prefix=%i
15     make
16    
17 argiro 1.2 #mkdir -p shared-tmp
18     #cd shared-tmp
19     #case $(uname) in
20     # Darwin ) so=dylib shared="-dynamiclib -single_module" flags= ;;
21     # * ) so=so shared="-shared" flags="-D_GNU_SOURCE" ;;
22     #esac
23     #
24     #set -x
25     #cp -i ../Evaluator/*.cc .
26     #cp -i ../Evaluator/*.src .
27     #cp -i ../GenericFunctions/*.cc .
28     #cp -i ../Geometry/*.cc .
29     #cp -i ../Matrix/*.cc .
30     #cp -i ../Random/*.cc .
31     #cp -i ../Random/*.src .
32     #cp -i ../Random/*.cdat .
33     #cp -i ../RandomObjects/*.cc .
34     #cp -i ../Vector/*.cc .
35     #cp -i ../HepPDT/*.cc .
36     #cp -i ../HepMC/*.cc .
37     #cp -i ../StdHep/*.cc .
38     #for f in *.cc; do
39     # g++ -c -O2 -ansi -Wall -fPIC -I../.. $flags $f
40     #done
41 elmer 1.12 #g++ $shared -o libCLHEP-g++.%realversion.$so *.o
42 argiro 1.1
43     %install
44     case $(uname) in Darwin ) so=dylib ;; * ) so=so ;; esac
45     make install
46 argiro 1.2 #cd shared-tmp
47 elmer 1.12 #cp libCLHEP-g++.%realversion.$so %i/lib
48     #ln -s libCLHEP-g++.%realversion.$so %i/lib/libCLHEP.$so
49     #n -s libCLHEP-g++.%realversion.a %i/lib/libCLHEP.a
50 dlange 1.14 #remove the .a files
51     rm %i/lib/*.a
52 andreasp 1.20 # remove the separate libs:
53     rm %i/lib/libCLHEP-[A-Z]*-%realversion.$so
54 dlange 1.14
55 muzaffar 1.15 # SCRAM ToolBox toolfile
56     mkdir -p %i/etc/scram.d
57     cat << \EOF_TOOLFILE >%i/etc/scram.d/%n
58     <doc type=BuildSystem::ToolDoc version=1.0>
59     <Tool name=%n version=%v>
60     <info url="http://wwwinfo.cern.ch/asd/lhc++/clhep"></info>
61 andreasp 1.19 <lib name=CLHEP-%realversion>
62 muzaffar 1.15 <Client>
63     <Environment name=CLHEP_BASE default="%i"></Environment>
64     <Environment name=LIBDIR default="$CLHEP_BASE/lib"></Environment>
65     <Environment name=INCLUDE default="$CLHEP_BASE/include"></Environment>
66     </Client>
67     <Runtime name=CLHEP_PARAM_PATH value="$CLHEP_BASE">
68 dlange 1.16 <Runtime name=LD_LIBRARY_PATH value="$CLHEP_BASE/lib" type=path>
69     <Runtime name=CMSSW_FWLITE_INCLUDE_PATH value="$CLHEP_BASE/include" type=path>
70 muzaffar 1.15 </Tool>
71     EOF_TOOLFILE
72    
73 eulisse 1.4 %post
74     %{relocateConfig}bin/Evaluator-config
75     %{relocateConfig}bin/Cast-config
76     %{relocateConfig}bin/GenericFunctions-config
77     %{relocateConfig}bin/Exceptions-config
78     %{relocateConfig}bin/RandomObjects-config
79     %{relocateConfig}bin/Geometry-config
80     %{relocateConfig}bin/Matrix-config
81     %{relocateConfig}bin/Random-config
82     %{relocateConfig}bin/RefCount-config
83     %{relocateConfig}bin/Units-config
84     %{relocateConfig}bin/Vector-config
85     %{relocateConfig}bin/clhep-config
86 muzaffar 1.15 %{relocateConfig}etc/scram.d/%n