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.2 by eulisse, Fri Apr 14 21:59:43 2006 UTC vs.
Revision 1.5 by ratnik, Thu Jun 8 01:43:59 2006 UTC

# Line 1 | Line 1
1   ### RPM external xdaq 3.4
2   %define xdaqv %(echo %v |tr . _)
3   %define libext so
4 + %define to_be_removed_externals cppunit gmp mimetic xerces tinyproxy
5 +
6 + Requires: xerces-c
7 + Requires: mimetic
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
6 < Source1: http://cmsdoc.cern.ch/Releases/XDAQ/XDAQ_%xdaqv/powerpack_G_28175_V1_3_1.tgz
7 < Source2: http://cmsdoc.cern.ch/Releases/XDAQ/XDAQ_%xdaqv/worksuite_G_28176_V1_4.tgz
10 > Source: http://cmsdoc.cern.ch/Releases/XDAQ/XDAQ_%xdaqv/coretools_G_17559_V%xdaqv.tgz
11  
12   %prep
13 < %setup -T -b 0 -n TriDAS
11 < %setup -D -T -b 1 -n TriDAS
12 < %setup -D -T -b 2 -n TriDAS
13 <
14 < echo " Install root in prep:" %{i}    %{pkginstroot}
13 > %setup -n TriDAS
14  
15   %build
16   # Xdaq does not provide makeinstall,  it uses "simplify" script instead to
# Line 26 | Line 25 | export XDAQ_ROOT=$PWD
25   cd %{i}/daq
26   make Set=extern
27   make Set=coretools
29 make Set=powerpack
30 make Set=worksuite
28   # The following structure used as defined in Xdaq "simplify" script:
29   cd %{i}
30   mkdir -p %{i}/lib
31   mkdir -p %{i}/bin
32 +
33 + # Remove unneeded and standard externals that can be re-used from CMS distribution:
34 +
35 + for extern in %{to_be_removed_externals}; do echo removing external from daq: ${extern} ...;  rm -rf daq/extern/${extern}; done
36 +
37   # Catch-all
38   find .  -type f ! -path "./lib/*.%{libext}" -name "*.%{libext}" -exec mv {}  %{i}/lib \;
39   find .  -type f ! -path "./bin/*.exe" -name "*.exe" -exec mv {} %{i}/bin \;
40  
41   # Libraries from extern (not found cause they are symlinks)
42 < cp -dL daq/extern/*/linuxx86/lib/* %{i}/lib
42 > cp -rdL daq/extern/*/linuxx86/lib/* %{i}/lib
43 >
44 > find daq -type f ! -path "*/extern/*lib*" -name "*.a" -exec cp {} %{i}/lib \;
45 > perl -p -i -e "s|^#!.*make|/usr/bin/env make|" %{i}/daq/extern/slp/openslp-1.2.0/debian/rules

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines