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

Comparing COMP/CMSDIST/pythia6.spec (file contents):
Revision 1.2 by dlange, Sat Apr 28 20:02:19 2007 UTC vs.
Revision 1.8 by muzaffar, Mon Sep 3 15:28:45 2007 UTC

# Line 1 | Line 1
1 < ### RPM external pythia6 409
2 < Requires: gcc-wrapper
3 < %define gccwrapperarch slc4_ia32_gcc345
4 < %define realversion %(echo %v | cut -d- -f1 )
5 < Source: http://service-spi.web.cern.ch/service-spi/external/MCGenerators/distribution/%{n}-%{realversion}-src.tgz
1 > ### RPM external pythia6 409-CMS8
2 > Source: http://cern.ch/service-spi/external/MCGenerators/distribution/%{n}-%{realversion}-src.tgz
3   %prep
4   %setup -q -n %{n}/%{realversion}
5 < ./configure
5 > ./configure --enable-shared
6  
7   %build
11 %if "%{cmsplatf}" == "%{gccwrapperarch}"
12 echo "Using gcc wrapper for %cmsplatf"
13 source $GCC_WRAPPER_ROOT/etc/profile.d/init.sh
14 %endif
8   make
9  
10   %install
18 %{relocateConfig}lib/libpythia6.a
19 %{relocateConfig}lib/libpythia6_dummy.a
20 %{relocateConfig}lib/libpythia6_pdfdummy.a
21 %{relocateConfig}lib/librootinterface.a
22
23
11   tar -c lib include | tar -x -C %i
12 + # SCRAM ToolBox toolfile
13 + mkdir -p %i/etc/scram.d
14 + cat << \EOF_TOOLFILE >%i/etc/scram.d/%n
15 + <doc type=BuildSystem::ToolDoc version=1.0>
16 + <Tool name=pythia6 version=%v>
17 + <Client>
18 + <Environment name=PYTHIA6_BASE default="%i"></Environment>
19 + <Environment name=LIBDIR default="$PYTHIA6_BASE/lib"></Environment>
20 + <Environment name=INCLUDE default="$PYTHIA6_BASE/include"></Environment>
21 + </Client>
22 + <lib name=pythia6>
23 + <lib name=pythia6_dummy>
24 + <lib name=pythia6_pdfdummy>
25 + <use name=f77compiler>
26 + </Tool>
27 + EOF_TOOLFILE
28  
29 + %post
30 + %{relocateConfig}etc/scram.d/%n

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines