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

Comparing COMP/CMSDIST/toprex.spec (file contents):
Revision 1.2 by elmer, Tue Oct 23 18:10:38 2007 UTC vs.
Revision 1.8 by muzaffar, Tue Aug 10 15:16:13 2010 UTC

# Line 1 | Line 1
1 < ### RPM external toprex 4.23-CMS8
1 > ### RPM external toprex 4.23
2 > ## BUILDIF case $(uname):$(uname -p) in Linux:i*86 ) true ;; Linux:x86_64 ) true ;;  Linux:ppc64 ) false ;; Darwin:* ) false ;; * ) false ;; esac
3 >
4   Source: http://cern.ch/service-spi/external/MCGenerators/distribution/%{n}-%{realversion}-src.tgz
5   Patch: toprex-4.23-gfortran
6  
7   %prep
8   %setup -q -n %{n}/%{realversion}
9 < %if "%cmsplatf" == "slc4_ia32_gcc412"
9 > case %gccver in
10 >  4.*)
11   %patch -p0
12 < %endif
13 < ./configure --lcgplatform=%cmsplatf
12 >  ;;
13 > esac
14  
15   %build
16 + ./configure --lcgplatform=%cmsplatf
17   make
18  
19   %install
20   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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines