Revision: | 1.73 |
Committed: | Fri Feb 5 16:31:38 2010 UTC (15 years, 2 months ago) by muzaffar |
Branch: | MAIN |
CVS Tags: | ebFor363slhc3p1, CMSSW_3_6_3_SLHC3, ebFor363slhc3, ebFor363slhc2, CMSSW_3_6_3_SLHC1_patch3, ebFor363slhc1pat3, CMSSW_3_6_3_SLHC1_patch2, ebFor363slhc1pat2, ebFor363slhc1pat1v0, CMSSW_3_6_3_SLHC1, CMSSW_3_6_1_patch7, smFor361patch7, CMSSW_3_6_3_hltpatch4, dsr20100805fwlite363, CMSSW_3_6_3_onlpatch4_ONLINE, smFor363patch2, FRONTEND_CONF_3_30_20100724, FRONTEND_CONF_3_29_20100723, CMSSW_3_6_3_onlpatch3_ONLINE, CMSSW_3_6_1_patch6, apFor361p6v0, CMSSW_3_6_3_patch1, apFor363p1v0, CMSSW_3_6_3_onlpatch2_ONLINE, CMSSW_3_6_1_patch5, smFor361patch5, CMSSW_3_6_3_onlpatch1_ONLINE, CMSSW_3_6_3_ONLINE, CMSSW_3_6_3, apFor363v0, CMSSW_3_6_2_ONLINE, fw361online_test5, CMSSW_3_6_2, apFor362v1, apFor362v0, fw361online_test4, CMSSW_3_6_1_patch4, apFor361p4v0, fw361online_test3, dsr20100526fwlite361, fw361online_test2, CMSSW_3_6_1_patch3, fw361online_test1, apFor361p3v0, CMSSW_3_5_7_hltpatch4, apFor357hltp4v0, CMSSW_3_6_1_patch2, apFor361p2v0, DQMGUI_5_2_1c, DQMGUI_5_2_1, CMSSW_3_6_1_patch1, apFor361p1v2, apFor361p1v1, apFor361p1v0, CMSSW_3_5_8_patch4, apFor358p4v3, apFor358p4v2, apFor358p4v1, apFor358p4v0, DQMGUI_5_2_0, CMSSW_3_6_1, apFor361v1, apFor361v0, fw360online_test5, fw360online_test4, fw360online_test3, sm100507pftrack, fw360online_test2, fw360online_test1, sm100506, sm100505a, sm100505, CMSSW_3_7_0_pre3, for370pre3, CMSSW_3_6_0_patch2, apFor360p2v0, CMSSW_3_6_0_patch1, apFor360p1v2, apFor360p1v1, apFor360p1v0, CMSSW_3_5_8_patch3, apFor358p3v0, CMSSW_3_5_8_patch2, apFor358p2v0, CMSSW_3_5_8_patch1, apFor358p1v1, apFor358p1v0, CMSSW_3_5_7_onlpatch2_ONLINE, CMSSW_3_7_0_pre2, for370pre2, CMSSW_3_5_8, CMSSW_3_5_7_onlpatch1_ONLINE, CMSSW_3_5_7_ONLINE, apFor358v0, CMSSW_3_5_4_onlpatch4_ONLINE, CMSSW_3_7_0_pre1, smFor370pre1, pe20100419a-for36X-37X, CMSSW_3_6_0, fwFor357online, pe20100416a-for36X, CMSSW_3_5_7, apFor357v2, apFor357v1, apFor357v0, CMSSW_3_6_0_pre6, pe20100409b-for36X, pe20100409a-for36X, CMSSW_3_6_0_pre5io, pe20100408a-for36Xio, CMSSW_3_5_6_patch1, for356p1, CMSSW_3_6_0_pre5, pe20100401a-for36X, pe20100330a-for36X, CMSSW_3_5_4_patch2, CMSSW_3_5_6, for356, pe20100329a-for36X, for354p2, dsr20100326fwlite355osx, dsr20100326fwlite355, CMSSW_3_5_5, CMSSW_3_6_0_pre4, pe20100324a-for36X, CMSSW_3_5_4_onlpatch3_ONLINE, apFor355v0, pe20100321a-for36X, CMSSW_3_5_4_patch1, for354patch1, CMSSW_3_5_4_onlpatch2_ONLINE, CMSSW_3_5_4_onlpatch1_ONLINE, CMSSW_3_5_4_ONLINE, CMSSW_3_6_0_pre3, DQMGUI_5_1_8, pe20100313a-for36X, pe20100312a-for36X, pe20100311a-for36X, fwFor354onl, CMSSW_3_5_4, apFor354v0, pe20100307a-for36X, pe20100305e-for36X, pe20100305d-for36X, pe20100305c-for36X, pe20100305b-for36X, CMSSW_3_5_3_ONLINE, pe20100305-for36X, fwFor353onl, CMSSW_3_5_3, CMSSW_3_6_0_pre2, apFor353v0, sm100302a-for35X, sm100302b-for36X, sm100302a-for36X, wmtFor360pre2, fc20100228, pe20100228a-for36X, CMSSW_3_5_2_patch2, apFor352p2v0, CMSSW_3_5_2_patch1, apFor352p1v0, fwFor352onl, CMSSW_3_5_1_onlpatch1_ONLINE, CMSSW_3_6_0_pre1, pe20100223c-for36X, pe20100223b-for36X, 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, 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 |
Changes since 1.72: | +2 -2 lines |
Log Message: | updated xdaq snv url to use baseline10. |
# | User | Rev | Content |
---|---|---|---|
1 | muzaffar | 1.71 | ### RPM external xdaq VR16021 |
2 | andreasp | 1.60 | ## 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.62 | Requires: zlib mimetic xerces-c uuid sqlite |
5 | dlange | 1.33 | %define xdaqv %(echo %v | cut -f1 -d- | tr . _) |
6 | eulisse | 1.2 | %define libext so |
7 | muzaffar | 1.71 | %define svntrunk %(echo %v | sed 's|^VR||') |
8 | muzaffar | 1.73 | Source: svn://svn.cern.ch/reps/cmsos/releases/baseline10/tags/base/?scheme=svn+ssh&revision=%svntrunk&strategy=export&module=xdaq&output=/xdaq.tar.gz |
9 | muzaffar | 1.62 | |
10 | elmer | 1.72 | Patch0: xdaq_VR16021_build |
11 | lsexton | 1.68 | Patch1: xdaq_mfDefs_flags |
12 | elmer | 1.69 | Patch2: xdaq_VR15544_gcc44 |
13 | lsexton | 1.68 | |
14 | dlange | 1.56 | Provides: /bin/awk |
15 | ratnik | 1.5 | |
16 | eulisse | 1.7 | %prep |
17 | muzaffar | 1.62 | %setup -T -b 0 -n xdaq |
18 | dlange | 1.34 | |
19 | lsexton | 1.68 | %patch0 -p1 |
20 | muzaffar | 1.73 | %patch1 -p1 |
21 | elmer | 1.69 | %patch2 -p1 |
22 | ratnik | 1.1 | |
23 | %build | ||
24 | # Xdaq does not provide makeinstall, it uses "simplify" script instead to | ||
25 | # reorganize the directory structure after the build is done. | ||
26 | # Therefore build is done in the install area. | ||
27 | |||
28 | %install | ||
29 | # Copy all code into the installation area, and build directly there: | ||
30 | cp -rp * %{i} # assuming there are no symlinks in the original source code | ||
31 | cd %{i} | ||
32 | export XDAQ_ROOT=$PWD | ||
33 | cd %{i}/daq | ||
34 | muzaffar | 1.66 | |
35 | dlange | 1.36 | export MIMETIC_PREFIX=$MIMETIC_ROOT |
36 | export XERCES_PREFIX=$XERCES_C_ROOT | ||
37 | elmer | 1.39 | export UUID_LIB_PREFIX=$UUID_ROOT/lib |
38 | muzaffar | 1.62 | export SQLITE_PREFIX=$SQLITE_ROOT |
39 | export SEARCH_PATH=$PATH | ||
40 | elmer | 1.53 | |
41 | muzaffar | 1.63 | make CPPDEFINES=linux Set=extern_coretools install |
42 | make CPPDEFINES=linux Set=coretools install | ||
43 | make CPPDEFINES=linux Set=extern_powerpack install | ||
44 | make CPPDEFINES=linux Set=powerpack install | ||
45 | muzaffar | 1.71 | make CPPDEFINES=linux Set=general_worksuite install |
46 | dlange | 1.30 | |
47 | ratnik | 1.1 | # The following structure used as defined in Xdaq "simplify" script: |
48 | cd %{i} | ||
49 | dlange | 1.32 | mv x86*/lib . |
50 | mv x86*/bin . | ||
51 | mv x86*/include . | ||
52 | elmer | 1.61 | # Make the following directory (it will be missing in the gcc4 case where |
53 | # things fail during the build and scram at least needs to see it) | ||
54 | mkdir -p include/linux | ||
55 | dlange | 1.44 | |
56 | dlange | 1.56 | mkdir -p htdocs |
57 | dlange | 1.48 | |
58 | muzaffar | 1.62 | for subdir in `echo "xdaq2rc"; grep -h -v \# config/mfSet.coretools config/mfSet.extern_coretools config/mfSet.extern_powerpack config/mfSet.powerpack | grep -v Packages= | grep '[a-z]' | awk '{print $1}'` |
59 | dlange | 1.46 | do |
60 | dlange | 1.48 | mkdir -p %{i}/htdocs/$subdir/{images,xml,html} |
61 | echo $subdir | ||
62 | if [ -d daq/$subdir/xml ]; then | ||
63 | cd daq/$subdir/xml | ||
64 | find . -name "*.*" -exec install -m 655 -D {} %{i}/htdocs/$subdir/xml/{} \; | ||
65 | cd %{i} | ||
66 | fi | ||
67 | if [ -d daq/$subdir/images ]; then | ||
68 | cd daq/$subdir/images | ||
69 | find . -name "*.*" -exec install -m 655 -D {} %{i}/htdocs/$subdir/images/{} \; | ||
70 | cd %{i} | ||
71 | fi | ||
72 | if [ -d daq/$subdir/html ]; then | ||
73 | cd daq/$subdir/html | ||
74 | find . -name "*.*" -exec install -m 655 -D {} %{i}/htdocs/$subdir/html/{} \; | ||
75 | cd %{i} | ||
76 | fi | ||
77 | dlange | 1.46 | done |
78 | dlange | 1.44 | |
79 | dlange | 1.56 | mkdir -p include/interface |
80 | dlange | 1.36 | mv daq/interface/evb/include/interface/evb include/interface |
81 | mv daq/interface/shared/include/interface/shared include/interface | ||
82 | dlange | 1.56 | mkdir -p etc |
83 | muzaffar | 1.62 | mv daq/xdaq/etc/default.profile etc/ |
84 | dlange | 1.32 | rm -fr daq |
85 | rm -fr CVS | ||
86 | dlange | 1.37 | rm -fr x86* |
87 | elmer | 1.67 | rm -fR java |
88 | rm -fR htdocs | ||
89 | muzaffar | 1.66 | ln -s libasyncresolv %{i}/lib/libasyncresolv.so |
90 | rm -f %{i}/lib/lib*.a %{i}/lib/lib*.la | ||
91 | ratnik | 1.1 | |
92 | # Libraries from extern (not found cause they are symlinks) | ||
93 | eulisse | 1.3 | |
94 | eulisse | 1.22 | #find daq -type f ! -path "*/extern/*lib*" -name "*.a" -exec cp {} %{i}/lib \; |
95 | eulisse | 1.11 | perl -p -i -e "s|^#!.*make|#!/usr/bin/env make|" %{i}/daq/extern/slp/openslp-1.2.0/debian/rules |
96 | muzaffar | 1.43 | |
97 | # SCRAM ToolBox toolfile | ||
98 | mkdir -p %i/etc/scram.d | ||
99 | muzaffar | 1.70 | cat << \EOF_TOOLFILE >%i/etc/scram.d/%n.xml |
100 | <tool name="XDAQ" version="%v"> | ||
101 | <info url="http://home.cern.ch/xdaq"/> | ||
102 | <lib name="toolbox"/> | ||
103 | <lib name="xdaq"/> | ||
104 | <lib name="config"/> | ||
105 | <lib name="xoap"/> | ||
106 | <lib name="xgi"/> | ||
107 | <lib name="xdata"/> | ||
108 | <lib name="cgicc"/> | ||
109 | <lib name="log4cplus"/> | ||
110 | <lib name="xcept"/> | ||
111 | <lib name="logudpappender"/> | ||
112 | <lib name="peer"/> | ||
113 | <lib name="logxmlappender"/> | ||
114 | <lib name="asyncresolv"/> | ||
115 | <lib name="ptfifo"/> | ||
116 | <lib name="pthttp"/> | ||
117 | <lib name="pttcp"/> | ||
118 | <lib name="i2outils"/> | ||
119 | <lib name="xdaq2rc"/> | ||
120 | <lib name="xoapfilter"/> | ||
121 | <lib name="xalan-c"/> | ||
122 | <lib name="xalanMsg"/> | ||
123 | <lib name="wsaddressing"/> | ||
124 | <lib name="wsclientsubscriber"/> | ||
125 | <lib name="wseventing"/> | ||
126 | <lib name="wsserviceeventing"/> | ||
127 | <client> | ||
128 | <environment name="XDAQ_BASE" default="%i"/> | ||
129 | <environment name="LIBDIR" default="$XDAQ_BASE/lib"/> | ||
130 | <environment name="BINDIR" default="$XDAQ_BASE/bin"/> | ||
131 | <environment name="INCLUDE" default="$XDAQ_BASE/include"/> | ||
132 | <environment name="INCLUDE" default="$XDAQ_BASE/include/linux"/> | ||
133 | </client> | ||
134 | <flags cppdefines="SOAP__ LITTLE_ENDIAN__"/> | ||
135 | <flags cppdefines="linux"/> | ||
136 | <runtime name="XDAQ_OS" value="linux"/> | ||
137 | <runtime name="XDAQ_PLATFORM" value="x86"/> | ||
138 | <runtime name="PATH" value="$BINDIR" type="path"/> | ||
139 | <runtime name="XDAQ_ROOT" value="$XDAQ_BASE"/> | ||
140 | <runtime name="XDAQ_DOCUMENT_ROOT" value="$XDAQ_BASE/htdocs"/> | ||
141 | <use name="xerces-c"/> | ||
142 | <use name="sockets"/> | ||
143 | <use name="mimetic"/> | ||
144 | <use name="uuid"/> | ||
145 | </tool> | ||
146 | muzaffar | 1.43 | EOF_TOOLFILE |
147 | |||
148 | muzaffar | 1.70 | cat << \EOF_TOOLFILE >%i/etc/scram.d/xdaqheader.xml |
149 | <tool name="XDAQHEADER" version="%v"> | ||
150 | <info url="http://home.cern.ch/xdaq"/> | ||
151 | <client> | ||
152 | <environment name="XDAQHEADER_BASE" default="%i"/> | ||
153 | <environment name="INCLUDE" default="$XDAQHEADER_BASE/include"/> | ||
154 | </client> | ||
155 | </tool> | ||
156 | elmer | 1.58 | EOF_TOOLFILE |
157 | |||
158 | eulisse | 1.12 | %post |
159 | find $RPM_INSTALL_PREFIX/%pkgrel -type l | xargs ls -la | sed -e "s|.*[ ]\(/.*\) -> \(.*\)| \2 \1|;s|[ ]/[^ ]*/external| $RPM_INSTALL_PREFIX/%cmsplatf/external|g" | xargs -n2 ln -sf | ||
160 | muzaffar | 1.70 | %{relocateConfig}etc/scram.d/%n.xml |
161 | %{relocateConfig}etc/scram.d/xdaqheader.xml | ||
162 | elmer | 1.58 |