ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/clhep.spec
(Generate patch)

Comparing COMP/CMSDIST/clhep.spec (file contents):
Revision 1.3 by eulisse, Thu Jul 6 13:08:38 2006 UTC vs.
Revision 1.15 by muzaffar, Mon Sep 3 15:28:45 2007 UTC

# Line 1 | Line 1
1 < ### RPM external clhep 1.9.2.2
2 < Source: http://proj-clhep.web.cern.ch/proj-clhep/%n-%v.tgz
1 > ### RPM external clhep 1.9.3.1-CMS1
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  
# Line 32 | Line 35 | make
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
47 < #
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 >
50 > # SCRAM ToolBox toolfile
51 > mkdir -p %i/etc/scram.d
52 > cat << \EOF_TOOLFILE >%i/etc/scram.d/%n
53 > <doc type=BuildSystem::ToolDoc version=1.0>
54 > <Tool name=%n version=%v>
55 > <info url="http://wwwinfo.cern.ch/asd/lhc++/clhep"></info>
56 > <lib name=CLHEP-Cast-%realversion>
57 > <lib name=CLHEP-Evaluator-%realversion>
58 > <lib name=CLHEP-Exceptions-%realversion>
59 > <lib name=CLHEP-GenericFunctions-%realversion>
60 > <lib name=CLHEP-Geometry-%realversion>
61 > <lib name=CLHEP-Matrix-%realversion>
62 > <lib name=CLHEP-Random-%realversion>
63 > <lib name=CLHEP-RandomObjects-%realversion>
64 > <lib name=CLHEP-RefCount-%realversion>
65 > <lib name=CLHEP-Vector-%realversion>
66 > <Client>
67 > <Environment name=CLHEP_BASE default="%i"></Environment>
68 > <Environment name=LIBDIR default="$CLHEP_BASE/lib"></Environment>
69 > <Environment name=INCLUDE default="$CLHEP_BASE/include"></Environment>
70 > </Client>
71 > <Runtime name=CLHEP_PARAM_PATH value="$CLHEP_BASE">
72 > </Tool>
73 > EOF_TOOLFILE
74 >
75 > %post
76 > %{relocateConfig}bin/Evaluator-config
77 > %{relocateConfig}bin/Cast-config
78 > %{relocateConfig}bin/GenericFunctions-config
79 > %{relocateConfig}bin/Exceptions-config
80 > %{relocateConfig}bin/RandomObjects-config
81 > %{relocateConfig}bin/Geometry-config
82 > %{relocateConfig}bin/Matrix-config
83 > %{relocateConfig}bin/Random-config
84 > %{relocateConfig}bin/RefCount-config
85 > %{relocateConfig}bin/Units-config
86 > %{relocateConfig}bin/Vector-config
87 > %{relocateConfig}bin/clhep-config
88 > %{relocateConfig}etc/scram.d/%n

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines