ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/pythia6.spec
Revision: 1.16
Committed: Wed Jan 13 09:53:01 2010 UTC (15 years, 3 months ago) by muzaffar
Branch: MAIN
CVS Tags: FRONTEND_CONF_3_30_20100724, FRONTEND_CONF_3_29_20100723, DQMGUI_5_2_1, DQMGUI_5_2_0, DQMGUI_5_1_8, CMSSW_3_5_2_patch2, apFor352p2v0, CMSSW_3_5_2_patch1, apFor352p1v0, fwFor352onl, CMSSW_3_5_1_onlpatch1_ONLINE, pe20100223a-for36X, CMSSW_3_5_2, apFor352v0, apFor351p2v0, CMSSW_3_5_1_patch1, for351patch1, CMSSW_3_5_1_ONLINE, FRONTEND_CONF_3_24_20100217, dsr20100216fwlite350, CMSSW_3_5_1, pe20100216b-for36Xmin, pe20100216a-for36X, apFor351v0, ge20100215-rootqt-r522, ge20100215-rootqt-pre5r526, CMSSW_3_5_0_pre5r526, ge20100212-boost, ge20100112-boost, DQMGUI_5_1_7b, CMSSW_3_5_0_patch1, for350patch1, T0Mon_100204_2, CMSSW_3_5_0_ONLINE, fwFor350online, CMSSW_3_5_0, apFor350v0, pe20100205a-for35X, pe20100204a-for35X, CMSSW_3_5_0_pre5_ONLINE, for350p5-onl-slc5, pe20100131c-for35Xr526, pe20100131b-for35Xr526, pe20100131a-for35Xr526, CMSSW_3_5_0_pre5g493, pe20100130b-for35Xg493, pe20100130-for35Xg493, CMSSW_3_5_0_pre5, for350p4-onl-slc5, pe20100129a-for35X, CMSSW_3_5_0_pre4, apFor350pre5v0, sm100128a, sm100128, apFor350pre4v0, pe20100127e-for35X, pe20100127d-for35X, pe20100127c-for35X, sm100127-onl35x, pe20100127b-for35X, pe20100127a-for35X, pe20100124a-for35X, ap20100123a-for35X, CMSSW_3_5_0_pre3, apFor350pre3v0, pe20100113a-for35X, sm20100113a-for35X, sm20100113-for35X
Changes since 1.15: +13 -14 lines
Log Message:
converted scram toolfiles to xml format

File Contents

# User Rev Content
1 elmer 1.15 ### RPM external pythia6 422
2 andreasp 1.14 ## BUILDIF case $(uname):$(uname -p) in Linux:i*86 ) true ;; Linux:x86_64 ) true ;; Linux:ppc64 ) false ;; Darwin:* ) false ;; * ) false ;; esac
3    
4 muzaffar 1.8 Source: http://cern.ch/service-spi/external/MCGenerators/distribution/%{n}-%{realversion}-src.tgz
5 dlange 1.1 %prep
6 elmer 1.15
7     case %gccver in
8     4.*)
9     export F77=gfortran
10     ;;
11     3.*)
12     export F77=g77
13     ;;
14     esac
15    
16 dlange 1.1 %setup -q -n %{n}/%{realversion}
17 dlange 1.5 ./configure --enable-shared
18 dlange 1.1
19     %build
20     make
21 elmer 1.15 make install
22 dlange 1.1
23     %install
24     tar -c lib include | tar -x -C %i
25 muzaffar 1.8 # SCRAM ToolBox toolfile
26     mkdir -p %i/etc/scram.d
27 muzaffar 1.16 cat << \EOF_TOOLFILE >%i/etc/scram.d/%n.xml
28     <tool name="pythia6" version="%v">
29     <lib name="pythia6"/>
30     <lib name="pythia6_dummy"/>
31     <lib name="pythia6_pdfdummy"/>
32     <client>
33     <environment name="PYTHIA6_BASE" default="%i"/>
34     <environment name="LIBDIR" default="$PYTHIA6_BASE/lib"/>
35     <environment name="INCLUDE" default="$PYTHIA6_BASE/include"/>
36     </client>
37     <use name="f77compiler"/>
38     </tool>
39 muzaffar 1.8 EOF_TOOLFILE
40 dlange 1.1
41 muzaffar 1.8 %post
42 muzaffar 1.16 %{relocateConfig}etc/scram.d/%n.xml