ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/pythia6.spec
Revision: 1.30
Committed: Fri Jul 15 16:55:00 2011 UTC (13 years, 9 months ago) by zafar
Branch: MAIN
CVS Tags: CMSSW_4_4_5_patch2, CMSSW_4_4_5_patch1, CMSSW_4_4_5, sm120813-44X, CMSSW_4_4_4-ports, CMSSW_4_4_4, sm20120309, sm20120309-ports, sm20120228-44X-ports, sm20120228-44X, sm120220-ports, sm120220, CMSSW_4_4_3_patch1-ports, CMSSW_4_4_3_patch1, vs20120215-44X, vs20120215-44X-ports, da20120205-44X-ports, da20120205-44X, CMSSW_4_4_3-ports, CMSSW_4_4_3, sm120124-ports, da20120123-44X-ports, da20120123-44X, CMSSW_4_4_2_p10JEmalloc, CMSSW_4_4_2_patch10-ports, CMSSW_4_4_2_patch10, azFor442patch10gcc451, azFor442patch10, CMSSW_4_4_2_patch9-ports, CMSSW_4_4_2_patch9, vsFor442patch9gcc451, vsFor442patch9, CMSSW_4_4_2_patch8-ports, CMSSW_4_4_2_patch8, CMSSW_5_0_0_pre7pythia424, sjgFor500pre7p424b, sjgFor500pre7p424, vs20111201c-50X, vs20111201temp-50X, vs20111201b-50X, vs20111201-50X, vs20111130-44X-ports, vs20111130-44X, da20111130-50X, CMSSW_5_0_0_pre6g494, da20111128-50X, sjgFor500pre6gcc494, az20111126-50X, sm20111126-50X, az20111125-50X, az20111124-50X, az20111123-50X, CMSSW_4_4_2_patch7-ports, CMSSW_4_4_2_patch7, azFor442patch7gcc451, azFor442patch7gcc434, CMSSW_5_0_0_pre6, sjgFor500pre6, sm20111121-50X, CMSSW_4_4_2_patch6-ports, CMSSW_4_4_2_patch6, azFor442patch6gcc451, azFor442patch6gcc434, az20111117b-50X, az20111117-50X, az20111116-50X, CMSSW_4_4_2_onlpatch2_ONLINE, az20111115-50X, CMSSW_5_0_0_pre5_root532rc1, azFor500pre5r532rc1, az20111111b-50X, az20111111-50X, CMSSW_4_4_2_patch5-ports, CMSSW_4_4_2_patch5, azFor442patch5gcc451, azFor442patch5gcc434, CMSSW_4_4_2_patch4-ports, CMSSW_4_4_2_patch4, azFor442patch4gcc451, azFor442patch4gcc434, az20111109b-44X, az20111109b-44X-ports, az20111109-44X-ports, az20111109-44X, CMSSW_4_4_2_patch3-ports, CMSSW_4_4_2_patch3, azFor442patch3gcc451, azFor442patch3gcc434, az20111108-50X, CMSSW_4_4_2_patch2-ports, CMSSW_4_4_2_patch2, CMSSW_5_0_0_pre5, sjgFor500pre5, CMSSW_4_4_2_patch1-ports, CMSSW_4_4_2_patch1, azFor442patch1gcc451, azFor442patch1gcc434, fwFor500pre4-online, az20111102b-50X, az20111102-50X, CMSSW_4_4_2_onlpatch1_ONLINE, CMSSW_4_4_2_ONLINE, az20111031c-50X, az20111031b-50X, az20111031-50X, CMSSW_4_4_2-ports, CMSSW_4_4_2, azFor442gcc451, azFor442gcc434, CMSSW_5_0_0_pre4, az20111027b-50X, az20111027-50X, sjgFor500pre4, az20111026-50X, az20111025-50X, sm20111025-50X, az20111024-50X, az20111022-50X, sjg111021d-50X, sjg111021c-50X, sjg111021b-50X, sjg111021-50X, CMSSW_4_4_0_patch4-ports, CMSSW_4_4_0_patch4, azFor440patch4gcc451, azFor440patch4gcc434, CMSSW_5_0_0_pre3, sjgFor500pre3, az20111014-50X, CMSSW_4_4_1_ONLINE, CMSSW_4_4_1-ports, CMSSW_4_4_1, az20111012-50X, azFor441gcc451, azFor441gcc434, az20111011b-50X, az20111011a-50X, CMSSW_5_0_0_pre2, sjgFor500pre2, CMSSW_4_4_0_patch3-ports, CMSSW_4_4_0_patch3, azFor440patch3gcc451, azFor440patch3gcc434, az20111007-50X, CMSSW_4_4_0_patch2-ports, CMSSW_4_4_0_patch2, azFor440patch2gcc451, azFor440patch2gcc434, CMSSW_4_4_0_patch1-ports, CMSSW_4_4_0_patch1, azFor440patch1gcc451a, azFor440patch1gcc434a, azFor440patch1gcc451, azFor440patch1gcc434, az20110928a-50X, az20110928-50X, CMSSW_5_0_0_pre1, sjgFor500pre1b, sjgFor500pre1, az20110922c-50X, CMSSW_4_4_0-ports, CMSSW_4_4_0, azFor440gcc451, azFor440gcc434, az20110922b-50X, az20110922a-50X, az20110922-50X, az20110921-44X-ports, az20110921-44X, az20110920-50X, az20110918-50X, az20110916c-50X, az20110916b-50X, az20110916a-50X, az20110916-50X, az20110914-44X-ports, az20110914-44X, az20110913-44X-ports, az20110913-44X, az20110912-50X, az20110912-44X-ports, az20110912-44X, sm20110912-50X, CMSSW_4_4_0_pre10_ONLINE, fwFor440pre10online, CMSSW_4_4_0_pre10-ports, CMSSW_4_4_0_pre10, azFor440pre10gcc451, azFor440pre10gcc434, az20110909b-44X-ports, az20110909b-44X, az20110909a-44X-ports, az20110909a-44X, az20110909-44X-ports, az20110909-44X, az20110908-50X, az20110907c-50X, az20110907b-50X, az20110906b-44X, az20110906a-44X, sm20110907-50X, az20110906-44X-ports, az20110906-44X, az20110904-50X-ports, az20110904-50X, az20110902b-50X-ports, az20110902b-50X, az20110902a-50X, az20110902-50X-ports, az20110902-50X, az20110831-50X-ports, az20110831-50X, CMSSW_4_4_0_pre9, CMSSW_4_4_0_pre9-ports, azFor440pre9gcc451, azFor440pre9gcc434, az20110827-50X-ports, az20110827-50X, az20110826b-50X-ports, az20110826b-50X, az20110826a-50X, az20110826-50X, az20110825-50X-ports, az20110825-50X, az20110823-50X-ports, az20110823-50X, az20110821-44X-ports, az20110821-44X, az20110818a-50X-ports, az20110818a-50X, az20110818-50X-ports, az20110818-50X, CMSSW_4_4_0_pre8-ports, CMSSW_4_4_0_pre8, azFor440pre8gcc451, azFor440pre8gcc434, sjg110813b-50X-ports, sjg110813b-50X, sjg110813a-50X-ports, sjg110813a-50X, az20110809b-50X-ports, az20110809b-50X, az20110809a-50X, az20110809a-44X-ports, az20110809a-44X, az20110809-50X-ports, az20110809-50X, az20110809-44X-ports, az20110809-44X, CMSSW_4_4_0_pre7_g494p02-ports, CMSSW_4_4_0_pre7_g494p02, azFor440p7g494p02-g451, azFor440p7g494p02, az20110804-44X-ports, az20110804-44X, sjg110804-50X-ports, sjg110804-50X, sjg110803-50X-ports, sjg110803-50X, CMSSW_4_4_0_pre7-ports, CMSSW_4_4_0_pre7, azFor440pre7gcc451, azFor440pre7gcc434, az20110801-44X, az20110801-44X-ports, CMSSW_4_4_0_pre6-ports, CMSSW_4_4_0_pre6, azFor440pre6gcc451, azFor440pre6gcc434, az20110729-44X-ports, az20110729-44X, DBS_2_1_6-pre1, az20110726a-44X-ports, az20110726a-44X, az20110726-44X-ports, az20110726-44X, az20110725c-44X-ports, az20110725c-44X, az20110725b-44X-ports, az20110725b-44X, az20110725a-44X-ports, az20110725-44X-ports, az20110725a-44X, az20110725-44X, az20110723a-44X-ports, az20110723a-44X, az20110723-44X, CMSSW_4_4_0_pre5-ports, CMSSW_4_4_0_pre5, azFor440pre5gcc451, azFor440pre5gcc434, az20110715a-44X-ports, az20110715a-44X, az20110715-44X
Changes since 1.29: +1 -0 lines
Log Message:
rebuilding Giulio's update after fixing a problem occurred in the IBs

File Contents

# User Rev Content
1 muzaffar 1.26 ### RPM external pythia6 424
2 eulisse 1.20 Source: http://cern.ch/service-spi/external/MCGenerators/distribution/%{n}-%{realversion}-src.tgz
3 andreasp 1.14
4 elmer 1.22 %if "%(echo %cmsos | grep osx >/dev/null && echo true)" == "true"
5     Requires: gfortran-macosx
6     %endif
7    
8 dlange 1.1 %prep
9 eulisse 1.28 # NOTE: Old gcc versions (up to 4.3.4) were building
10     # dynamic libraries. from 4.5.1 (and on mac)
11     # we build archive ones.
12 eulisse 1.27 case %cmsplatf in
13 eulisse 1.28 slc5_*_gcc4[01234]*)
14     PLATF_CONF_OPTS="--enable-shared"
15     F77="`which gfortran`"
16 elmer 1.15 ;;
17 eulisse 1.28 *)
18     PLATF_CONF_OPTS="--disable-shared --enable-static"
19     F77="`which gfortran` -fPIC"
20     ;;
21     esac
22    
23     # Notice we need to define LDFLAGS like this to avoid dropping
24     # the dynamic linker options on slc5_amd64_gcc434
25     case %cmsplatf in
26     osx*)
27     PLATF_LDFLAGS="LDFLAGS='-Wl,-commons,use_dylibs -Wl,-flat_namespace'"
28 eulisse 1.29 PLATF_LDFLAGS=""
29 eulisse 1.28 PLATF_LD="LD='`which gcc`'" ;;
30 eulisse 1.27 *)
31 eulisse 1.28 PLATF_LD="" ;;
32 elmer 1.15 esac
33    
34 dlange 1.1 %setup -q -n %{n}/%{realversion}
35 eulisse 1.27
36 eulisse 1.29 # Unfortunately we need the two cases because LDFLAGS= does not work on linux
37     # and I couldn't get the space between use_dylibs and -Wl, preseved if
38     # I tried to have the whole "LDFLAGS=foo" in a variable.
39     case %cmsplatf in
40     osx*)
41     ./configure $PLATF_CONF_OPTS --with-hepevt=4000 F77="$F77" \
42     LD='`which gcc`' LDFLAGS='-Wl,-commons,use_dylibs -Wl,-flat_namespace'
43     ;;
44     *)
45     ./configure $PLATF_CONF_OPTS --with-hepevt=4000 F77="$F77"
46     ;;
47     esac
48    
49 eulisse 1.27 # NOTE: force usage of gcc to link shared libraries in place of gfortran since
50     # the latter causes a:
51     #
52     # ld: codegen problem, can't use rel32 to external symbol __gfortrani_compile_options in __gfortrani_init_compile_options
53     #
54     # error when building.
55     # I couldn't find any better way to replace "CC" in the F77 section of libtool.
56     case %cmsplatf in
57 eulisse 1.28 slc5_*_gcc4[01234]*) ;;
58     *) perl -p -i -e 's|^CC=.*$|CC="gcc -fPIC"|' libtool ;;
59 eulisse 1.27 esac
60 dlange 1.1
61     %build
62     make
63 elmer 1.15 make install
64 dlange 1.1
65     %install
66     tar -c lib include | tar -x -C %i
67 zafar 1.30