ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/xdaq.spec
(Generate patch)

Comparing COMP/CMSDIST/xdaq.spec (file contents):
Revision 1.24 by eulisse, Fri Aug 11 15:26:51 2006 UTC vs.
Revision 1.35 by dlange, Sat Jun 16 17:14:24 2007 UTC

# Line 1 | Line 1
1 < ### RPM external xdaq 3.5
2 < Requires: zlib
3 < Requires: oracle
4 < %define xdaqv %(echo %v |tr . _)
1 > ### RPM external xdaq 3.9.0-CMS1
2 > Requires: zlib oracle
3 > %define xdaqv %(echo %v | cut -f1 -d- | tr . _)
4   %define libext so
5   %if "%cmsplatf" == "slc3_ia32_gcc323"
6   %define installDir linux/x86
7   %endif
8  
9   # Download from cern afs area to speed up testing:
10 < #Source0: http://cmsdoc.cern.ch/Releases/XDAQ/XDAQ_%xdaqv/coretools_G_17559_V%xdaqv.tgz
11 < #Source1: http://cmsdoc.cern.ch/Releases/XDAQ/XDAQ_%xdaqv/powerpack_G_28175_V1_3_1.tgz
12 < #Source2: http://cmsdoc.cern.ch/Releases/XDAQ/XDAQ_%xdaqv/worksuite_G_28176_V1_4.tgz
13 < Source0: http://switch.dl.sourceforge.net/sourceforge/xdaq/coretools_G_17559_V%{xdaqv}.tgz
15 < Source1: http://switch.dl.sourceforge.net/sourceforge/xdaq/powerpack_G_28175_V1_4.tgz
16 < Source2: http://switch.dl.sourceforge.net/sourceforge/xdaq/worksuite_G_28176_V1_5.tgz
10 > 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 > Source2: http://switch.dl.sourceforge.net/sourceforge/xdaq/worksuite_G_V1_8_0.tgz
13 > Patch: xdaq_39_oracle
14  
15   %prep
16   %setup -T -b 0 -n TriDAS
17   %setup -D -T -b 1 -n TriDAS
18   %setup -D -T -b 2 -n TriDAS
19 +
20 + %patch0 -p2
21   ls
22 < perl -p -i -e "s|^#.*ksh(.*)|#!/usr/bin/env ksh $1|" daq/extern/SBSVME/1003/v2p3p0/sys/makefile \
23 <                                                     daq/extern/SBSVME/1003/v2p3p0/sys/mkbtp
22 > #perl -p -i -e "s|^#.*ksh(.*)|#!/usr/bin/env ksh $1|" daq/extern/SBSVME/1003/v2p3p0/sys/makefile \
23 > #                                                     daq/extern/SBSVME/1003/v2p3p0/sys/mkbtp
24   echo " Install root in prep:" %{i}    %{pkginstroot}
25  
26   %build
# Line 35 | Line 34 | cp -rp *  %{i} # assuming there are no s
34   cd %{i}
35   export XDAQ_ROOT=$PWD
36   cd %{i}/daq
37 < make Set=extern
38 < make Set=coretools
39 < make Set=powerpack
40 < make Set=worksuite
41 < cd tstore
42 < make  ORACLE_INCLUDE=$ORACLE_ROOT/include  ORACLE_LIB=$ORACLE_ROOT/lib
37 > #fool xdaq for oracle and friends
38 > #ln -s $ORACLE_ROOT extern/oracle/x86_slc4
39 > make CPPDEFINES=linux Set=extern_coretools install
40 > make CPPDEFINES=linux Set=coretools install
41 > make CPPDEFINES=linux Set=extern_powerpack install
42 > make CPPDEFINES=linux Set=powerpack install
43 > #make CPPDEFINES=linux Set=extern_worksuite install
44 > make CPPDEFINES=linux Set=worksuite install
45 >
46   # The following structure used as defined in Xdaq "simplify" script:
45 #cd %{i}
46 # Catch-all
47 # cp -r ./lib %{i}/lib
48 # cp -r ./bin %{i}/bin
47   cd %{i}
48 < find daq -path *src* -type d -exec rm -rf daq/{} \;
49 < # copies all the libraries in extern in %i/lib
50 < mkdir -p %{i}/lib/linux/x86
51 < mkdir -p %{i}/bin/linux/x86
52 < (cd %{i}/lib; find ../daq -path "*/lib/lib*" -o -name "*.%{libext}" -o -name "*.%{libext}.*"  -exec ln -s {} . \;)
55 < (cd %{i}/lib/linux/x86; find ../../../daq  -path "*/lib/lib*" -o -name "*.%{libext}" -o -path "*.%{libext}.*" -exec ln -s {} . \;)
56 < (cd %{i}/bin; find ../daq -path "*/bin/*.exe" -exec ln -s {} . \;)
57 < (cd %{i}/bin/linux/x86; find ../../../daq -path "*/bin/*.exe" -exec ln -s {} . \;)
58 <
59 < #tar cpfv - `find daq -path "*/lib/*.%{libext}"` | ( cd  %{i}/lib; tar xpfv -)
60 < #tar cpfv - `find daq -path "*/bin/*.exe" -type f` | ( cd  %{i}/bin; tar xpfv -)
61 <
62 < #links them back to lib and bin
63 < #find daq  -type f -name "*.%{libext}" -exec ln -sf {}  %{i}/lib \;
64 < #find daq  -type f -name "*.%{libext}" -exec ln -sf ../../{} %{i}/lib/%installDir \;
65 < #find daq  -type f -name "*.exe" -exec ln -sf {} %{i}/bin \;
66 < #find daq  -type f -name "*.exe" -exec ln -sf ../../{} %{i}/bin/%installDir \;
48 > mv x86*/lib .
49 > mv x86*/bin .
50 > mv x86*/include .
51 > rm -fr daq
52 > rm -fr CVS
53  
54   # Libraries from extern (not found cause they are symlinks)
55  
56   #find daq -type f ! -path "*/extern/*lib*" -name "*.a" -exec cp {} %{i}/lib \;
57   perl -p -i -e "s|^#!.*make|#!/usr/bin/env make|" %{i}/daq/extern/slp/openslp-1.2.0/debian/rules
58   %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"
59   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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines