ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/dpm.spec
Revision: 1.20
Committed: Mon May 19 13:27:20 2008 UTC (16 years, 11 months ago) by elmer
Branch: MAIN
CVS Tags: MotT0_1_0_2, MotT0_1_0_1, MotT0_1_0_0, MotT0_100531_1, MotT0_100528_1, T0Mon_100518_1, T0Mon_100503_1, T0Mon_100316_1, T0Mon_100308_2, T0Mon_100308_1, T0Mon_100216_1, T0Mon_100210_1, T0Mon_100204_4, T0Mon_100204_3, T0Mon_100204_1, T0Mon_100127_1, DBS-APP_20100122_slc4, DBS-APP_20100121_slc4, DBS-WEB_20100120_slc4, DBS-APP_20100120_slc4, DBS-APP_20100118_slc4, DBS-WEB_20100118_slc4, DBS-APP_20100114_slc4, DBS-WEB_20100113_slc4, DAS_20091202, FILEMOVER_20091118, DBS-APPS_20090929, pe20091117a-fromDAS_20090709, pe20091116b-fromDAS_20090709, pe20091116a-fromDAS_20090709, T0Mon_091111_1, DAS_20091104, DBS-WEB_20091021, DAS_20091016, DAS_20091014, DBS-WEB_20091012, DBS-WEB_20090921, pe20090910-fromDAS_20090709, FILEMOVER_20090910, DBS-WEB_20090817, FILEMOVER_20090828, DBS-APPS_20090706, T0Mon_090828_1, T0Mon_090822_1, WEBTOOLS_APPS_20090817, DBS-APPS_20090804, DBS-APPS_20090730, DAS_20090709, T0Mon_090715_1, CMSSW_2_2_13_offpatch1, apFor2213offpatch1v0, DAS_20090607, CMSSW_2_2_13_FWLITE, apFor2213fwlitev0, DBS-WEB_20090618, DBS-APPS_20090619, T0Mon_090612_1, DBS-APPS_20090608, CMSSW_3_1_0_pre9, T0Mon_090611_1, T0Mon_090610_1, CMSSW_2_2_13_HLT, apFor2213hltv0, CMSSW_2_2_13, apFor2213v0, DBS-APPS_20090604_1, DAS_20090604, DBS-APPS_20090604, DAS_20090603, DBS-APPS_20090603, CMSSW_2_2_12_HLT, T0Mon_090601_1, CMSSW_2_2_12, apFor2212hltv0, CMSSW_3_1_0_pre8, apFor2212v2, apFor2212v1, apFor2212v0, DBS-APPS_20090528, apFor2211off1v0, CMSSW_2_2_11_offpatch1, T0Mon_090527_2, T0Mon_090527_1, condcore306, T0Mon_090522_1, dl090520t2, dl090520, T0Mon_090519_2, T0Mon_090519_1, DBS_APPS_20090518, T0Mon_090517_1, CMSSW_2_2_11, CMSSW_2_2_11_HLT, T0Mon_090516_1, apFor2211v1, apFor2211hltv0, apFor2211v0, T0Mon_090515_4, CMSSW_3_1_0_pre7, T0Mon_090515_3, T0Mon_090515_2, T0Mon_090515_1, DAS_20090514_3, DAS_20090514_2, DAS_20090514_1, DAS_20090514, dl090514t3, dl090514t2, dl090514, CMSSW_2_2_10_HLT, DBS-WEB_20090512, apFor2210hltv0, T0Mon_090510_1, CMSSW_2_2_10, dl090509, apFor2210v0, DBS-WEB_20090507, dl090504gcc41, dl090504, pe20090504a-31Xports-432, DBS_APPS_20090504, CMSSW_3_1_0_pre6, DBS_APPS_20090501, DBS-APPS_20090429_2, DBS-WEB_20090429, DBS-APPS_20090429, DBS-WEB_20090428, dl090425, CMSSW_2_2_9, apFor229v2, apFor229v1, apFor229v0, DBS-WEB_20090422, dl090421, apFor2119v1, apFor2119v0, DBS-WEB_20090420, DBS-APPS_20090417, CMSSW_2_2_8, apFor228v0, CMSSW_3_1_0_pre5, dl090416, DBS-APPS_20090415, pe20090414a-31Xports-432, dl090410, DBS-APPS_20090410, dl090409t2, dl090409, DAS_20090408, pe20090407a-31Xports-432, dl090406t2, dl090406, DBS-APPS_20090406, T0Mon_090406_1, pe20090406b-31Xports-432, pe20090406a-31Xports-432, dl090403, pe20090403a-31Xports-432, dl090401t2, DAS_20090330, dl090401, dl090330, dl090329, dl0903029, CMSSW_2_2_7, apFor227v2, CMSSW_3_1_0_pre4, DBS-APPS_20090326, T0Mon_090326_1, T0Mon_090325_1, DAS_20090319_1, DAS_20090319, CMSSW_2_2_6_HLT_ONLINE1, nr090319_for226hltonl1, pe20090318b-for31X-412, pe20090318b-for31X, DBS-APPS_20090318, pe20090318-for31X, CMSSW_2_2_6_HLT_ONLINE, T0Mon_090318_1, apFor227v1, dl090317t2, dl090317, DBS-APPS_20090316, DAS_20090316, T0Mon_090315_1, DAS_20090313, COUCHDB_20090313, apFor227v0, CMSSW_2_2_6_onlpatch1_ONLINE, CMSSW_2_2_6_ONLINE, CMSSW_2_2_6_HLT, apFor226HLTv0, DBS-APPS_20090310, WEBTOOLS-APPS_20090310_1, WEBTOOLS-APPS_20090310, WEBTOOLS-APPS_20090309, CMSSW_2_2_6, nr090307for226_onlpatch1, CMSSW_3_1_0_pre3, DBS-APPS_20090306, apFor226v3, nr090306onl226_tkonlsw_too_new, DBS-APPS_20090304_1, DBS-APPS_20090304, pe20090304-for31X-412, pe20090304-for31X, pe20090304b-30Xports-432, pe20090304a-30Xports-432, dl090304_cmsswtoolconf9cms_gcc412, dl090304_cmsswtoolconf9cms, DBS-APPS_20090303_1, DBS-APPS_20090303, T0Mon_090303_1, apFor226v2, apFor226v1, DBS-APPS_20090302, dl090302_cmsswtoolconf9gcc412, dl090302_cmsswtoolconf9, dl090301, apFor226v0, apFor226, pe20090226b-30Xports-432, pe20090226a-30Xports-432, CMSSW_3_1_0_pre2, pe20090225d-for30XIB-412, pe20090225d-for30XIB, pe20090225c-for30XIB, pe20090225b-for30XIB-412, pe20090225b-for30XIB, pe20090225a-for30XIB, nr20090224_for226, CMSSW_3_1_0_pre1, pe20090224b-30Xports-432, pe20090224a-30Xports-432, pe20090224c-for30XIB-412, pe20090224c-for30XIB, pe20090224b-for30XIB-412, pe20090224b-for30XIB, pe20090224a-for30XIB-412, pe20090224a-for30XIB, DBS-APPS_20090220_1, DBS-APPS_20090220, CMSSW_3_0_0_pre10, T0M_0_0_5, MEMCACHED_20090219_1, MEMCACHED_20090219, sm080219a, pe20090218a-30Xports-432, WEBTOOLS-APPS_20090217_1, WEBTOOLS-APPS_20090217, WEBTOOLS-APPS_20090216, pe20090216b-30Xports-432, pe20090216a-30Xports-432, CMSSW_3_0_0_pre9, pe20090213b-for30X-412, pe20090213b-for30X, pe20090213-for30X-412, pe20090213-for30X, WEBTOOLS-APPS_20090212, CMSSW_2_2_5, apFor225v0, condcore305, WEBTOOLS-APPS_20090209_64bit, zx20090209, condcore304, WEBTOOLS-APPS_20090206, condcore303, T0M_0_0_4, T0M_0_0_3, pe20090205-for30X, CMSSW_2_2_4, WEBTOOLS-APPS_20090203_1, WEBTOOLS-APPS_20090203, apFor224v4, T0M_0_0_2, apFor224v3, zx20090201, pe20090202-for30X, dl090131-412, dl090131, WEBTOOLS-APPS_20090130, apFor224v2, apFor224v1, apFor224v0, WEBTOOLS-APPS_20090129, PRODAGENT_0_12_10_pre3, smFor224v0, pe20090127c-30Xports-432, pe20090127b-30Xports-432, PRODAGENT_0_12_10_pre2_20090127_V2, pe20090127a-30Xports-432, pe20090125a-30Xports-432, CMSSW_3_0_0_pre8, pe20090124b-for30X-root522-412, pe20090124b-for30X-root522, pe20090124a-for30X-root522-412, pe20090124a-for30X-root522, pe20090123b-for30X-root522-412, pe20090123b-for30X-root522, pe20090123a-for30X-root522, PRODAGENT_0_12_10_20090122, PRODAGENT_0_12_10_pre1_MISC, CMSSW_3_0_0_pre7, pe20090116a-for30X-root522, pe20090115a-for30X-root522, sw_20090115a, sw_20090115, pe20090114c-ports, pe20090114b-ports, pe20090114a-ports, pe20090109b-for30XIB-412, pe20090109b-for30XIB, pe20090109a-for30XIB-412, pe20090109a-for30XIB, CMSSW_3_0_0_pre6, CMSSW_3_0_0_pre5, pe20090107a-for30XIB-412, pe20090107a-for30XIB, CMSSW_2_2_3_FWLITE, CMSSW_3_0_0_pre4, pe20090105a-for30XIB-412, pe20090105a-for30XIB, pe20090101a-for30XIB-412, pe20090101a-for30XIB, nr081230_fwlite223, pe20081230a-for30XIB, pe20081230-for30X-newcoralpool, pe20081229-for30X-G492, pe20081218b-for30XIB-412, pe20081218b-for30XIB, pe20081218-for30XIB-412, pe20081218-for30XIB, pe20081216-for30XIB-412, pe20081216-for30XIB, pe20081216c-for30X, pe20081216b-for30X, pe20081216a-for30X, CMSSW_2_2_3, apFor223v0, pe20081214a-for30X, pe20081213c-30Xports-432, pe20081213c-30Xports, pe20081213b-30Xports, pe20081213a-30Xports, CMSSW_2_2_2, CMSSW_3_0_0_pre3, apFor222v0, pe20081209a-for30X-412, pe20081209a-for30X, smFor221v1, pe20081204a-for30X-412, pe20081204a-for30X, pe20081104a-for30X, apFor221v0, pe20081125d-30Xports-432, pe20081125d-30Xports, pe20081125c-30Xports-432, pe20081125c-30Xports, pe20081125b-30Xports, pe20081125b-30Xports-432, pe20081125a-30Xports, pe20081124d-30Xports, pe20081124a-for30X-412, pe20081124a-for30X, pe20081124c-30Xports, pe20081124b-30Xports, pe20081124a-30Xports, pe20081121a-for30X-412, pe20081121a-for30X, CMSSW_2_2_0, pe20081121b-30Xports, pe20081121a-30Xports, apFor220v0, testofc, CMSSW_2_1_17, apFor2117v1, apFor2117v0, pe20081117a-for30X-412, pe20081117a-for30X, CMSSW_3_0_0_pre2, pe20081110a-for30X, pe20081108a-for30X-412, pe20081108a-for30X, CMSSW_2_2_0_pre1, apFor220p1v1, apFor220p1v0, pe20081107a-for30X-412, pe20081107a-for30X, T0Mon_081107_1, pe20081105-noseal, T0Mon_081105_1, pe20081031b-for30X-412, pe20081031b-for30X, pe20081031-for30X-412, pe20081031-for30X, CMSSW_2_1_12, apFor2112v0, CMSSW_3_0_0_pre1, CMSSW_2_1_10_patch2, DQMGUI_4_2_6c, DQMGUI_4_2_6b, CMSSW_2_1_10_patch1, CMSSW_2_1_10, apFor2110v2-gcc412, apFor2110v2, apFor2110v1-gcc412, apFor2110v1, DQMGUI_4_2_6, apFor2110v0-gcc412, apFor2110v0, PRODAGENT_0_12_2, T0Mon_080926_1, CMSSW_2_1_7_FWLITE, T0Mon_080920_2, T0Mon_080920_1, T0Mon_080916_2, CMSSW_2_1_9, apFor219v0, CMSSW_2_1_8, apFor218v0, apFor217patch1v1, DQMGUI_4_2_4, DQMGUI_4_2_3, apFor217patch1v0, DQMGUI_4_2_2c, DQMGUI_4_2_2, DQMGUI_4_2_1d, DQMGUI_4_2_1c, DQMGUI_4_2_1b, DQMGUI_4_2_1, DQMGUI_4_2_0, CMSSW_2_1_7, CMSSW_2_1_, apFor217v1, T0Mon_080905_1, apFor217v0, T0Mon_080905_01, T0Mon_080902_2, T0Mon_080902_1, CMSSW_2_1_6, apFor216v0, CMSSW_2_1_5, apFor215v1, apFor215v0, T0Mon_080824_1, T0Mon_080823_1, T0Mon_080826_1, CMSSW_2_1_4_FWLITE, T0Mon_080825_1, buildset_V2_8, CMSSW_2_1_4, apFor214v1, apFor214v0, CMSSW_2_1_3, apFor213v0, CMSSW_2_1_2, CMSSW_2_1_1, apFor212v0, apFor211v0, apTestv0, CMSSW_2_1_0, apFor210v0, CMSSW_2_1_0_pre11, apFor210p11v0, CMSSW_2_1_0_pre10, apFor210p10v1, apFor210p10v0, pe20080723a-for21X-412, pe20080723a-for21X, CMSSW_2_1_0_pre9, apFor210p9v0, nr080714_forCRAB, CMSSW_2_1_0_pre8, apFor210p8v1, apFor210p8v0, CMSSW_2_1_0_pre7, apFor210p7v1, apFor210pre7v1, apFor210p7v0, pe20080702b-for21X-412, pe20080702b-for21X, pe20080702a-for21X-412, pe20080702a-for21X, pe20080627a-for21X-412, pe20080627a-for21X, pe20080626a-for21X-412, pe20080626a-for21X, pe20080624a-for21X-412, pe20080624a-for21X, nr080623_for21x, pe20080623b-for21X-gp-412, pe20080623b-for21X-gp, pe20080623-for21X-gp, CMSSW_2_1_0_pre6, apFor210p6v0, pe20080616-for21X-412, pe20080616-for21X, pe20080611-for21X-412, pe20080611-for21X, pe20080610-for21X, pe20080610-for21X-412, pe20080609-for21X-412, pe20080609-for21X, SiteDB_030608_1, SiteDB_300508_1, SiteDB_280508_1, pe20080518b-ports-from210p4, pe20080518a-ports-from210p4
Changes since 1.19: +2 -0 lines
Log Message:
Avoid "ld -m elf_i386" patch when building for 64bit. (I think the BUILDIF
should avoid it on the other platforms, but apparently there is some newish
behaviour of that with the new cmsBuild. Thus this makes it at least build
for slc4_amd64_gcc345, but it may need to be revisited for other arches.)

File Contents

# Content
1 ### RPM external dpm 1.6.7.4
2 ## BUILDIF case $(uname):$(uname -p) in Linux:i*86 ) true ;; Linux:x86_64 ) true ;; Linux:ppc64 ) false ;; Darwin:* ) false ;; * ) true ;; esac
3 # for x86_64 this was false, but it causes problems on installation at least with cmsBuild
4
5 %define baseVersion %(echo %v | cut -d- -f1 | cut -d. -f1,2,3)
6 %define patchLevel %(echo %v | cut -d- -f1 | cut -d. -f4)
7 %define downloadv %{baseVersion}-%{patchLevel}
8 %define dpmarch %(echo %cmsplatf | cut -d_ -f1 | sed 's/onl//')
9
10 Source: http://eticssoft.web.cern.ch/eticssoft/repository/org.glite/LCG-DM/%{baseVersion}/src/DPM-%{downloadv}sec.%{dpmarch}.src.rpm
11
12 %define cpu %(echo %cmsplatf | cut -d_ -f2)
13 %if "%cpu" != "amd64"
14 %define libsuffix %{nil}
15 %else
16 %define libsuffix ()(64bit)
17 %endif
18 Provides: libdpm.so%{libsuffix}
19
20 %prep
21 rm -f %_builddir/DPM-%{downloadv}.src.tar.gz
22 rpm2cpio %{_sourcedir}/DPM-%{downloadv}sec.%{dpmarch}.src.rpm | cpio -ivd DPM-%{baseVersion}.src.tar.gz
23 cd %_builddir ; rm -rf DPM-%{baseVersion}; tar -xzvf DPM-%{baseVersion}.src.tar.gz
24
25 %build
26 cd DPM-%{baseVersion}
27 cp h/patchlevel.in h/patchlevel.h
28 perl -pi -e "s!__PATCHLEVEL__!%patchLevel!;s!__BASEVERSION__!\"%baseVersion\"!;s!__TIMESTAMP__!%(date +%%s)!" h/patchlevel.h
29 %if "%cpu" != "amd64"
30 perl -pi -e 's|ld\s+\$\(|ld -m elf_i386 \$\(|' shlib/Imakefile
31 %endif
32
33 for this in BuildDLI BuildDPMServer BuildNameServerDaemon BuildNameServerLibrary BuildRfioServer \
34 BuildSRMv1Server BuildSRMv2Server BuildSRMv2_2Server BuildTest ; do
35 perl -pi -e "s/\s+$this\s+YES/ $this\tNO/g" config/site.def
36 done
37
38 for this in BuildDPMClient BuildInterfaces BuildRfioClient; do
39 perl -pi -e "s/\s+$this\s+NO/ $this\tYES/g" config/site.def
40 done
41 for this in Accounting HasNroff UseCupv UseKRB4 UseKRB5 UseMySQL UseOracle UseVirtualIds UseVOMS ; do
42 perl -pi -e "s/\s+$this\s+YES/ $this\tNO/g" config/site.def
43 done
44 for this in SecMakeStaticLibrary BuildSecureRfio BuildSecureCns BuildSecureDpm ; do
45 perl -pi -e "s/\s+$this\s+YES/ $this\tNO/g" config/site.def
46 done
47
48 mkdir -p %i/lib %i/include/dpm
49
50 ./configure
51 cd shlib; make
52
53 %install
54 cd DPM-%{baseVersion}
55 cp ./shlib/lib%n.so %i/lib/lib%n.so.%realversion
56 cp ./h/*.h %i/include/dpm
57 ln -s lib%n.so.%realversion %i/lib/lib%n.so
58
59 # SCRAM ToolBox toolfile
60 mkdir -p %i/etc/scram.d
61 cat << \EOF_TOOLFILE >%i/etc/scram.d/%n
62 <doc type=BuildSystem::ToolDoc version=1.0>
63 <Tool name=%n version=%v>
64 <lib name=dpm>
65 <Client>
66 <Environment name=DPM_BASE default="%i"></Environment>
67 <Environment name=INCLUDE default="$DPM_BASE/include"></Environment>
68 <Environment name=LIBDIR default="$DPM_BASE/lib"></Environment>
69 </Client>
70 </Tool>
71 EOF_TOOLFILE
72
73 %post
74 %{relocateConfig}etc/scram.d/%n