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.2.3-CMS3 |
2 |
> |
Source: http://proj-clhep.web.cern.ch/proj-clhep/%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 |
|
%post |
48 |
|
%{relocateConfig}bin/Evaluator-config |
49 |
|
%{relocateConfig}bin/Cast-config |