Revision: | 1.42 |
Committed: | Thu Jul 5 21:11:31 2007 UTC (17 years, 9 months ago) by elmer |
Branch: | MAIN |
CVS Tags: | nr080626_for1612flt, CMSSW_1_6_12, apFor1612v0, apFor1612p3v0, CMSSW_1_6_12_pre2, apFor1612p2v1, apFor1612p2v0, CMSSW_1_6_12_pre1, apFor1612p1v1, apFor1612p1v0, CMSSW_1_6_11, apFor1611v0, apFor1611p1v1, apFor1611p1v0, CMSSW_1_6_10, apFor1610v0, CMSSW_1_6_10_pre2, CMSSW_1_6_10_pre1, apFor1610p2v0, apFor1610p1v2, CMSSW_1_6_8_FWLITE-root51800, apFor1610p1v1, CMSSW_1_6_9, apFor169v1, CMSSW_1_6_9_pre2, nr080124fwl168a, apFor169p2v2, apFor169p2v1, apFor169p2v0, ap20080116d, ap20080116c, ap20080116b, ap20080116a, ap20080115d, ap20080115c, ap20080115b, ap20080115a, ap20080114b, ap20080114a, CMSSW_1_6_9_pre1, apFor169p1, apFor169p1v5, apFor169p1v4, apFor169p1v3, apFor169p1v2, apFor169p1v1, apFor169p1v0, apFor169v0, CMSSW_1_6_8, CMSSW_1_6_8_pre2_FWLITE-root51706, apFor168, CMSSW_1_6_8_pre2, apFor168p2, CMSSW_1_6_8_pre1, apFor168p1, CMSSW_1_6_7_FWLITE, nr071026_fwlite167, nr071025_fwlite167, CMSSW_1_6_7, pe20071019a-for167, CMSSW_1_6_6, pe20071013a-for166p2, nr20071011-bootstrap, pe20071011a-for166, pe20071009a-for166p1, CMSSW_1_6_5, pe20071006a-for165, CMSSW_1_6_5_pre2, pe20071005a-for165p2, CMSSW_1_6_5_pre1, pe20070930b-for165p1, pe20070930a-for165p1, CMSSW_1_6_4, pe20070929a-for164, nr20070926-bootstrap, CMSSW_1_6_3, pe20070928a-for16Xdpm, pe20070926a-for163, CMSSW_1_6_2, ap-20070925, pe20070925a-for162, CMSSW_1_6_2_pre1, pe20070922a-for162p1, CMSSW_1_6_1, pe20070922g-for161p2, pe20070922f-for161p2, pe20070922e-for161p2, pe20070922d-for161p2, pe20070922c-for161p2, pe20070922b-for161p2, pe20070922a-for161p2, CMSSW_1_6_1_pre1, CMSSW_1_6_0, CMSSW_1_6_0_pre14, pe20070831d-160p14, pe20070831c-160p14, pe20070831b-160p14, pe20070831a-160p14, pe20070830a-160p14, CMSSW_1_7_0_pre1, dl070829, CMSSW_1_6_0_DAQ3, CMSSW_1_6_0_pre13, dl070828t2, dl070828, dl070827, dl070826, pe20070826a-160p13, CMSSW_1_6_0_pre12, dl070824, pe20070824b-160p12, pe20070824-160p12, pe20070823-160p12, CMSSW_1_6_0_pre11, CMSSW_1_6_0_pre10, ge20070810-ptc, CMSSW_1_6_0_pre9, CMSSW_1_6_0_pre8, CMSSW_1_6_0_pre7, dl070730, cms160daq1_zhen2, cms160daq1_zhen1, ge20070730-cmsbuild, ge20070729-amd64, CMSSW_1_6_0_pre6, pe20070727-160p6, CMSSW_1_6_0_DAQ1, ge20070726, ge20070724-slc3, nr20070723_fwlite160p5, ap20070723, CMSSW_1_6_0_pre5, dl070721, dl070720_160daq1_1, pe20070720-160daq1, pe20070720-160p5, ge20070718, ge20070717, ge20070713-macosx, ge20070712-migration, ge20070712, ge20070711-prodcommon, CMSSW_1_6_0_pre4, ge20070710-formencode, ge20070709-slc3, ge20070709-macosx, ge20070709a-macosx, ge20070706-macosx, CMSSW_1_6_0_pre3, pe20070705a-160p3 |
Changes since 1.41: | +3 -2 lines |
Log Message: | Update xdaq to include default-profile file. |
# | User | Rev | Content |
---|---|---|---|
1 | elmer | 1.42 | ### RPM external xdaq 3.9.0-CMS4 |
2 | elmer | 1.39 | Requires: zlib mimetic xerces-c uuid |
3 | dlange | 1.33 | %define xdaqv %(echo %v | cut -f1 -d- | tr . _) |
4 | eulisse | 1.2 | %define libext so |
5 | eulisse | 1.18 | %if "%cmsplatf" == "slc3_ia32_gcc323" |
6 | %define installDir linux/x86 | ||
7 | %endif | ||
8 | |||
9 | eulisse | 1.7 | # Download from cern afs area to speed up testing: |
10 | dlange | 1.30 | Source0: http://switch.dl.sourceforge.net/sourceforge/xdaq/coretools_G_V%{xdaqv}.tgz |
11 | Source1: http://switch.dl.sourceforge.net/sourceforge/xdaq/powerpack_G_V1_9_0.tgz | ||
12 | dlange | 1.31 | Source2: http://switch.dl.sourceforge.net/sourceforge/xdaq/worksuite_G_V1_8_0.tgz |
13 | dlange | 1.34 | Patch: xdaq_39_oracle |
14 | elmer | 1.39 | Patch1: xdaq-3.9.0-uuid |
15 | elmer | 1.40 | Patch2: xdaq-3.9.0-nossh |
16 | ratnik | 1.5 | |
17 | eulisse | 1.7 | %prep |
18 | %setup -T -b 0 -n TriDAS | ||
19 | %setup -D -T -b 1 -n TriDAS | ||
20 | %setup -D -T -b 2 -n TriDAS | ||
21 | dlange | 1.34 | |
22 | dlange | 1.36 | #%patch0 -p2 |
23 | elmer | 1.39 | %patch1 -p1 |
24 | elmer | 1.40 | %patch2 -p1 |
25 | eulisse | 1.11 | ls |
26 | dlange | 1.34 | #perl -p -i -e "s|^#.*ksh(.*)|#!/usr/bin/env ksh $1|" daq/extern/SBSVME/1003/v2p3p0/sys/makefile \ |
27 | # daq/extern/SBSVME/1003/v2p3p0/sys/mkbtp | ||
28 | eulisse | 1.7 | echo " Install root in prep:" %{i} %{pkginstroot} |
29 | ratnik | 1.1 | |
30 | %build | ||
31 | # Xdaq does not provide makeinstall, it uses "simplify" script instead to | ||
32 | # reorganize the directory structure after the build is done. | ||
33 | # Therefore build is done in the install area. | ||
34 | |||
35 | %install | ||
36 | # Copy all code into the installation area, and build directly there: | ||
37 | cp -rp * %{i} # assuming there are no symlinks in the original source code | ||
38 | cd %{i} | ||
39 | export XDAQ_ROOT=$PWD | ||
40 | cd %{i}/daq | ||
41 | dlange | 1.36 | export MIMETIC_PREFIX=$MIMETIC_ROOT |
42 | export XERCES_PREFIX=$XERCES_C_ROOT | ||
43 | elmer | 1.39 | export UUID_LIB_PREFIX=$UUID_ROOT/lib |
44 | dlange | 1.36 | |
45 | dlange | 1.34 | make CPPDEFINES=linux Set=extern_coretools install |
46 | dlange | 1.30 | make CPPDEFINES=linux Set=coretools install |
47 | dlange | 1.34 | make CPPDEFINES=linux Set=extern_powerpack install |
48 | dlange | 1.30 | make CPPDEFINES=linux Set=powerpack install |
49 | dlange | 1.36 | cd xdaq2rc |
50 | dlange | 1.38 | make CPPDEFINES=linux install |
51 | dlange | 1.36 | cd .. |
52 | |||
53 | dlange | 1.30 | |
54 | ratnik | 1.1 | # The following structure used as defined in Xdaq "simplify" script: |
55 | cd %{i} | ||
56 | dlange | 1.32 | mv x86*/lib . |
57 | mv x86*/bin . | ||
58 | mv x86*/include . | ||
59 | dlange | 1.37 | mkdir include/interface |
60 | dlange | 1.36 | mv daq/interface/evb/include/interface/evb include/interface |
61 | mv daq/interface/shared/include/interface/shared include/interface | ||
62 | elmer | 1.42 | mkdir etc |
63 | mv daq/etc/default.profile etc/ | ||
64 | dlange | 1.32 | rm -fr daq |
65 | rm -fr CVS | ||
66 | dlange | 1.37 | rm -fr x86* |
67 | ratnik | 1.1 | |
68 | # Libraries from extern (not found cause they are symlinks) | ||
69 | eulisse | 1.3 | |
70 | eulisse | 1.22 | #find daq -type f ! -path "*/extern/*lib*" -name "*.a" -exec cp {} %{i}/lib \; |
71 | eulisse | 1.11 | perl -p -i -e "s|^#!.*make|#!/usr/bin/env make|" %{i}/daq/extern/slp/openslp-1.2.0/debian/rules |
72 | eulisse | 1.12 | %post |
73 | 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 |