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

Comparing COMP/CMSDIST/geant4.spec (file contents):
Revision 1.117 by davidlt, Tue Jun 5 11:52:33 2012 UTC vs.
Revision 1.119 by davidlt, Sat Jun 9 11:08:20 2012 UTC

# Line 1 | Line 1
1   ### RPM external geant4 9.5.p01
2  
3 < Source0: http://geant4.cern.ch/support/source/%n.%v.tar.gz
3 > %define downloadv %(echo %v | cut -d- -f1)
4 > Source0: http://geant4.cern.ch/support/source/%n.%downloadv.tar.gz
5  
6   BuildRequires: cmake
7  
# Line 18 | Line 19 | Patch0: geant4.9.5.p01-no-banner
19   %endif
20  
21   %prep
22 < %setup -n %n.%v
22 > %setup -n %n.%downloadv
23  
24   %patch0 -p1
25  
26   %build
27  
28 + SOEXT=so
29   if [ $(uname) = Darwin ]; then
30    export MACOSX_DEPLOYMENT_TARGET="10.4"
31 +  SOEXT=dylib
32   fi
33  
34   mkdir ../build
35   cd ../build
36  
37 < cmake ../%n.%v \
37 > cmake ../%n.%downloadv \
38    -DCMAKE_CXX_COMPILER="%cms_cxx" \
39    -DCMAKE_CXX_FLAGS="%cms_cxxflags" \
40    -DCMAKE_INSTALL_PREFIX:PATH="%i" \
# Line 40 | Line 43 | cmake ../%n.%v \
43    -DGEANT4_USE_SYSTEM_CLHEP=ON \
44    -DCLHEP_ROOT_DIR:PATH="$CLHEP_ROOT" \
45    -DEXPAT_INCLUDE_DIR:PATH="$EXPAT_ROOT/include" \
46 <  -DEXPAT_LIBRARY:PATH="$EXPAT_ROOT/lib/libexpat.so" \
46 >  -DEXPAT_LIBRARY:PATH="$EXPAT_ROOT/lib/libexpat.$SOEXT" \
47  
48   make %makeprocesses VERBOSE=1
49  
# Line 50 | Line 53 | cd ../build
53   make install
54  
55   # Move headers from ../include/Geant4 to ../include
56 < mv %i/include/Geant4/* %i/include
56 > tar -C %i/include/Geant4 -cf - . | tar -C %i/include -xf -
57   rm -rf %i/include/Geant4

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines