ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/xdaq.spec
Revision: 1.89
Committed: Sun Jul 31 14:22:30 2011 UTC (13 years, 9 months ago) by eulisse
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-50X, vs20120215-44X, vs20120215-44X-ports, da20120214-50X, CMSSW_5_0_1_patch3, daForCMSSW_5_0_1_patch3b-slc5_amd64_gcc434, daForCMSSW_5_0_1_patch3-slc5_amd64_gcc434, CMSSW_5_0_1_patch2, daForCMSSW_5_0_1_patch2c-slc5_amd64_gcc434, daForCMSSW_5_0_1_patch2b-slc5_amd64_gcc434, daForCMSSW_5_0_1_patch2-slc5_amd64_gcc434, da20120206-50X, da20120205-44X-ports, da20120205-44X, da20120205-50X, CMSSW_5_0_1_patch1, CMSSW_5_0_0_patch2, CMSSW_5_0_1, da20120129-50X, CMSSW_4_4_3-ports, CMSSW_4_4_3, sm120124-ports, da20120123-50X, da20120123-44X-ports, da20120123-44X, CMSSW_5_0_0_patch1, CMSSW_4_4_2_p10JEmalloc, da20120112-50X, da20120110-50X, da20120108-52X, da20120106-52X, CMSSW_5_0_0_g4emtest, CMSSW_4_4_2_patch10-ports, CMSSW_4_4_2_patch10, azFor442patch10gcc451, azFor442patch10, da20111220-50X, da20111219-50X, sjgFor510pre1, CMSSW_5_0_0, sjgFor500, az20111214-50X, CMSSW_4_4_2_patch9-ports, CMSSW_4_4_2_patch9, vsFor442patch9gcc451, vsFor442patch9, vs20111213-50X, fwFor500pre7-online, CMSSW_4_4_2_patch8-ports, CMSSW_4_4_2_patch8, CMSSW_5_0_0_pre7pythia424, sjgFor500pre7p424b, sjgFor500pre7p424, CMSSW_5_0_0_pre7, sjgFor500pre7, da20111205-50X, sjg20111204b-50X, sjg20111204-50X, da20111202-50X, vs20111201c-50X, vs20111201temp-50X, vs20111201b-50X, vs20111201-50X, da20111201b-50X, da20111201-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, az20110804-44X-ports, az20110804-44X, sjg110804-50X-ports, sjg110804-50X, sjg110803-50X-ports, sjg110803-50X, az20110801-44X, az20110801-44X-ports
Changes since 1.88: +2 -1 lines
Log Message:
Fix missing symbol on macosx.

File Contents

# User Rev Content
1 zafar 1.88 ### RPM external xdaq VR17173
2 andreasp 1.60
3 muzaffar 1.62 Requires: zlib mimetic xerces-c uuid sqlite
4 dlange 1.33 %define xdaqv %(echo %v | cut -f1 -d- | tr . _)
5 eulisse 1.2 %define libext so
6 muzaffar 1.71 %define svntrunk %(echo %v | sed 's|^VR||')
7 muzaffar 1.87 Source: svn://svn.cern.ch/reps/cmsos/releases/baseline11/trunk/?scheme=svn+ssh&revision=%svntrunk&strategy=export&module=xdaq&output=/xdaq.tar.gz
8 muzaffar 1.62
9 muzaffar 1.87 Patch0: xdaq_VR16993_build
10 lsexton 1.68 Patch1: xdaq_mfDefs_flags
11 elmer 1.86 Patch2: xdaq-VR16796-gcc46
12 eulisse 1.89 Patch3: xdaq-VR17173-macosx
13 lsexton 1.68
14 dlange 1.56 Provides: /bin/awk
15 eulisse 1.78 # This is needed on macosx because this is the install_name for the .so
16     # library. We could simply run install_name_tool, but I'm not sure if somthing
17     # will break elsewhere.
18     Provides: libasyncresolv.0
19 ratnik 1.5
20 eulisse 1.7 %prep
21 muzaffar 1.62 %setup -T -b 0 -n xdaq
22 dlange 1.34
23 lsexton 1.68 %patch0 -p1
24 muzaffar 1.73 %patch1 -p1
25 elmer 1.86 %patch2 -p1
26 eulisse 1.89 %patch3 -p1
27 ratnik 1.1
28     %build
29     # Xdaq does not provide makeinstall, it uses "simplify" script instead to
30     # reorganize the directory structure after the build is done.
31     # Therefore build is done in the install area.
32    
33     %install
34     # Copy all code into the installation area, and build directly there:
35 eulisse 1.76 rm -rf %i
36     mkdir -p %i
37 ratnik 1.1 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 muzaffar 1.66
42 dlange 1.36 export MIMETIC_PREFIX=$MIMETIC_ROOT
43     export XERCES_PREFIX=$XERCES_C_ROOT
44 elmer 1.39 export UUID_LIB_PREFIX=$UUID_ROOT/lib
45 muzaffar 1.62 export SQLITE_PREFIX=$SQLITE_ROOT
46     export SEARCH_PATH=$PATH
47 elmer 1.53
48 eulisse 1.76 case %cmsplatf in
49 eulisse 1.84 osx*) PLATF_DEFINE=macosx ;;
50 eulisse 1.76 slc*) PLATF_DEFINE=linux ;;
51     esac
52    
53 eulisse 1.84 make CPPDEFINES=$PLATF_DEFINE Set=extern_coretools install
54     make CPPDEFINES=$PLATF_DEFINE Set=coretools install
55     make CPPDEFINES=$PLATF_DEFINE Set=extern_powerpack install
56     make CPPDEFINES=$PLATF_DEFINE Set=powerpack install
57     make CPPDEFINES=$PLATF_DEFINE Set=general_worksuite install
58 dlange 1.30
59 ratnik 1.1 # The following structure used as defined in Xdaq "simplify" script:
60     cd %{i}
61 dlange 1.32 mv x86*/lib .
62     mv x86*/bin .
63     mv x86*/include .
64 elmer 1.61 # Make the following directory (it will be missing in the gcc4 case where
65     # things fail during the build and scram at least needs to see it)
66     mkdir -p include/linux
67 eulisse 1.76 mkdir -p include/macosx
68 dlange 1.56 mkdir -p htdocs
69 dlange 1.48
70 eulisse 1.76 case %cmsplatf in
71     slc*)
72     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}'`
73     do
74     mkdir -p %{i}/htdocs/$subdir/{images,xml,html}
75     echo $subdir
76     if [ -d daq/$subdir/xml ]; then
77     cd daq/$subdir/xml
78     find . -name "*.*" -exec install -m 655 -D {} %{i}/htdocs/$subdir/xml/{} \;
79     cd %{i}
80     fi
81     if [ -d daq/$subdir/images ]; then
82     cd daq/$subdir/images
83     find . -name "*.*" -exec install -m 655 -D {} %{i}/htdocs/$subdir/images/{} \;
84 dlange 1.48 cd %{i}
85 eulisse 1.76 fi
86     if [ -d daq/$subdir/html ]; then
87     cd daq/$subdir/html
88     find . -name "*.*" -exec install -m 655 -D {} %{i}/htdocs/$subdir/html/{} \;
89     cd %{i}
90     fi
91     done
92     ;;
93     esac
94 dlange 1.44
95 dlange 1.56 mkdir -p include/interface
96 dlange 1.36 mv daq/interface/evb/include/interface/evb include/interface
97     mv daq/interface/shared/include/interface/shared include/interface
98 dlange 1.56 mkdir -p etc
99 muzaffar 1.62 mv daq/xdaq/etc/default.profile etc/
100 eulisse 1.76 rm -fr daq
101 dlange 1.32 rm -fr CVS
102 dlange 1.37 rm -fr x86*
103 elmer 1.67 rm -fR java
104     rm -fR htdocs
105 muzaffar 1.66 ln -s libasyncresolv %{i}/lib/libasyncresolv.so
106     rm -f %{i}/lib/lib*.a %{i}/lib/lib*.la
107 ratnik 1.1
108     # Libraries from extern (not found cause they are symlinks)
109 eulisse 1.3
110 eulisse 1.22 #find daq -type f ! -path "*/extern/*lib*" -name "*.a" -exec cp {} %{i}/lib \;
111 eulisse 1.11 perl -p -i -e "s|^#!.*make|#!/usr/bin/env make|" %{i}/daq/extern/slp/openslp-1.2.0/debian/rules