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.29 by elmer, Tue May 1 10:53:03 2007 UTC

# Line 1 | Line 1
1 < ### RPM external xdaq 3.5
1 > ### RPM external xdaq 3.7.3
2   Requires: zlib
3   Requires: oracle
4   %define xdaqv %(echo %v |tr . _)
# Line 12 | Line 12 | Requires: oracle
12   #Source1: http://cmsdoc.cern.ch/Releases/XDAQ/XDAQ_%xdaqv/powerpack_G_28175_V1_3_1.tgz
13   #Source2: http://cmsdoc.cern.ch/Releases/XDAQ/XDAQ_%xdaqv/worksuite_G_28176_V1_4.tgz
14   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
15 > Source1: http://switch.dl.sourceforge.net/sourceforge/xdaq/powerpack_G_28175_V1_7.tgz
16 > Source2: http://switch.dl.sourceforge.net/sourceforge/xdaq/worksuite_G_28176_V1_7.tgz
17  
18   %prep
19   %setup -T -b 0 -n TriDAS
# Line 35 | Line 35 | cp -rp *  %{i} # assuming there are no s
35   cd %{i}
36   export XDAQ_ROOT=$PWD
37   cd %{i}/daq
38 < make Set=extern
39 < make Set=coretools
40 < make Set=powerpack
41 < make Set=worksuite
38 > make CPPDEFINES=linux Set=extern
39 > make CPPDEFINES=linux Set=coretools
40 > make CPPDEFINES=linux Set=powerpack
41 > make CPPDEFINES=linux Set=worksuite
42   cd tstore
43 < make  ORACLE_INCLUDE=$ORACLE_ROOT/include  ORACLE_LIB=$ORACLE_ROOT/lib
43 > make  CPPDEFINES=linux ORACLE_INCLUDE=$ORACLE_ROOT/include  ORACLE_LIB=$ORACLE_ROOT/lib
44   # The following structure used as defined in Xdaq "simplify" script:
45   #cd %{i}
46   # Catch-all
# Line 51 | Line 51 | find daq -path *src* -type d -exec rm -r
51   # copies all the libraries in extern in %i/lib
52   mkdir -p %{i}/lib/linux/x86
53   mkdir -p %{i}/bin/linux/x86
54 < (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 {} . \;)
54 > (cd %{i}/lib; find ../daq \( -path "*/lib/lib*" -o -name "*.%{libext}" -o -name "*.%{libext}.*" -o -name "*.a" -o -name "*.la*" -o -name "*.lo*" \) -exec ln -s {} . \;)
55 > (cd %{i}/lib/linux/x86; find ../../../daq  \( -path "*/lib/lib*" -o -name "*.%{libext}" -o -name "*.%{libext}.*" -o -name "*.a" -o -name "*.la*" -o -name "*.lo*" \) -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  
# Line 70 | Line 70 | mkdir -p %{i}/bin/linux/x86
70   #find daq -type f ! -path "*/extern/*lib*" -name "*.a" -exec cp {} %{i}/lib \;
71   perl -p -i -e "s|^#!.*make|#!/usr/bin/env make|" %{i}/daq/extern/slp/openslp-1.2.0/debian/rules
72   %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"
73 > #find $RPM_INSTALL_PREFIX/%pkgrel -type l | xargs ls -la | sed -e "s|.*[ ]\(/.*\) -> \(.*\)| \2 \1|;s|[ ]/[^ ]*/external| $RPM_INSTALL_PREFIX/%cmsplatf/external|g"
74   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