1 |
< |
### RPM external clhep 1.9.2.3 |
2 |
< |
Source: http://proj-clhep.web.cern.ch/proj-clhep/%n-%v.tgz |
1 |
> |
### RPM external clhep 1.9.4.0 |
2 |
> |
Source: http://proj-clhep.web.cern.ch/proj-clhep/DISTRIBUTION/distributions/%n-%realversion.tgz |
3 |
|
|
4 |
|
%prep |
5 |
< |
%setup -n %v/CLHEP |
5 |
> |
%setup -n %realversion/CLHEP |
6 |
|
|
7 |
|
%build |
8 |
+ |
if [ $(uname) = Darwin ]; then |
9 |
+ |
export MACOSX_DEPLOYMENT_TARGET="10.4" |
10 |
+ |
fi |
11 |
|
CXX=g++ ./configure --prefix=%i |
12 |
|
make |
13 |
|
|
35 |
|
#for f in *.cc; do |
36 |
|
# g++ -c -O2 -ansi -Wall -fPIC -I../.. $flags $f |
37 |
|
#done |
38 |
< |
#g++ $shared -o libCLHEP-g++.%v.$so *.o |
38 |
> |
#g++ $shared -o libCLHEP-g++.%realversion.$so *.o |
39 |
|
|
40 |
|
%install |
41 |
|
case $(uname) in Darwin ) so=dylib ;; * ) so=so ;; esac |
42 |
|
make install |
43 |
|
#cd shared-tmp |
44 |
< |
#cp libCLHEP-g++.%v.$so %i/lib |
45 |
< |
#ln -s libCLHEP-g++.%v.$so %i/lib/libCLHEP.$so |
46 |
< |
#n -s libCLHEP-g++.%v.a %i/lib/libCLHEP.a |
44 |
> |
#cp libCLHEP-g++.%realversion.$so %i/lib |
45 |
> |
#ln -s libCLHEP-g++.%realversion.$so %i/lib/libCLHEP.$so |
46 |
> |
#n -s libCLHEP-g++.%realversion.a %i/lib/libCLHEP.a |
47 |
> |
#remove the .a files |
48 |
> |
rm %i/lib/*.a |
49 |
> |
# remove the separate libs: |
50 |
> |
rm %i/lib/libCLHEP-[A-Z]*-%realversion.$so |
51 |
> |
|
52 |
> |
# SCRAM ToolBox toolfile |
53 |
> |
mkdir -p %i/etc/scram.d |
54 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/%n |
55 |
> |
<doc type=BuildSystem::ToolDoc version=1.0> |
56 |
> |
<Tool name=%n version=%v> |
57 |
> |
<info url="http://wwwinfo.cern.ch/asd/lhc++/clhep"></info> |
58 |
> |
<lib name=CLHEP-%realversion> |
59 |
> |
<Client> |
60 |
> |
<Environment name=CLHEP_BASE default="%i"></Environment> |
61 |
> |
<Environment name=LIBDIR default="$CLHEP_BASE/lib"></Environment> |
62 |
> |
<Environment name=INCLUDE default="$CLHEP_BASE/include"></Environment> |
63 |
> |
</Client> |
64 |
> |
<Runtime name=CLHEP_PARAM_PATH value="$CLHEP_BASE"> |
65 |
> |
<Runtime name=LD_LIBRARY_PATH value="$CLHEP_BASE/lib" type=path> |
66 |
> |
<Runtime name=CMSSW_FWLITE_INCLUDE_PATH value="$CLHEP_BASE/include" type=path> |
67 |
> |
</Tool> |
68 |
> |
EOF_TOOLFILE |
69 |
> |
|
70 |
|
%post |
71 |
|
%{relocateConfig}bin/Evaluator-config |
72 |
|
%{relocateConfig}bin/Cast-config |
74 |
|
%{relocateConfig}bin/Exceptions-config |
75 |
|
%{relocateConfig}bin/RandomObjects-config |
76 |
|
%{relocateConfig}bin/Geometry-config |
51 |
– |
%{relocateConfig}bin/HepMC-config |
52 |
– |
%{relocateConfig}bin/HepPDT-config |
77 |
|
%{relocateConfig}bin/Matrix-config |
78 |
|
%{relocateConfig}bin/Random-config |
79 |
|
%{relocateConfig}bin/RefCount-config |
56 |
– |
%{relocateConfig}bin/StdHep-config |
80 |
|
%{relocateConfig}bin/Units-config |
81 |
|
%{relocateConfig}bin/Vector-config |
82 |
|
%{relocateConfig}bin/clhep-config |
83 |
+ |
%{relocateConfig}etc/scram.d/%n |