ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/toprex.spec
Revision: 1.4
Committed: Thu Dec 27 20:28:33 2007 UTC (17 years, 4 months ago) by elmer
Branch: MAIN
CVS Tags: pe20080103a-ports-gcc422, pe20080103a-ports, pe20070103a-ports, pe20080101a-ports, pe20071128b-ports, pe20071128a-ports, pe20071127b-ports
Changes since 1.3: +1 -1 lines
Log Message:
Update to -CMS19 (and variants) and CMS_152.
SCRAMV1 was updated to V1_0_3-p4

File Contents

# User Rev Content
1 elmer 1.4 ### RPM external toprex 4.23-CMS19
2 muzaffar 1.1 Source: http://cern.ch/service-spi/external/MCGenerators/distribution/%{n}-%{realversion}-src.tgz
3 elmer 1.2 Patch: toprex-4.23-gfortran
4    
5 muzaffar 1.1 %prep
6     %setup -q -n %{n}/%{realversion}
7 elmer 1.2 %if "%cmsplatf" == "slc4_ia32_gcc412"
8     %patch -p0
9     %endif
10 muzaffar 1.1 ./configure --lcgplatform=%cmsplatf
11    
12     %build
13     make
14    
15     %install
16     tar -c lib include | tar -x -C %i
17     # SCRAM ToolBox toolfile
18     mkdir -p %i/etc/scram.d
19     cat << \EOF_TOOLFILE >%i/etc/scram.d/%n
20     <doc type=BuildSystem::ToolDoc version=1.0>
21     <Tool name=toprex version=%v>
22     <Client>
23     <Environment name=TOPREX_BASE default="%i"></Environment>
24     <Environment name=LIBDIR default="$TOPREX_BASE/lib"></Environment>
25     <Environment name=INCLUDE default="$TOPREX_BASE/include"></Environment>
26     </Client>
27     <lib name=toprex>
28     <use name=f77compiler>
29     </Tool>
30     EOF_TOOLFILE
31    
32     %post
33     %{relocateConfig}etc/scram.d/%n