1 |
< |
### RPM external xdaq 3.5.2 |
2 |
< |
# Get xdaq 3.5.2 from DAQKit-03-09-01, according to version information at |
3 |
< |
# http://cmsdoc.cern.ch/cms/TRIDAS/DAQKit/version-03-09/doc/html/componentList.html |
4 |
< |
|
1 |
> |
### RPM external xdaq 3.5 |
2 |
> |
%define xdaqv %(echo %v |tr . _) |
3 |
|
%define libext so |
6 |
– |
%define to_be_removed_externals cppunit gmp mimetic xerces tinyproxy |
7 |
– |
|
8 |
– |
Requires: xerces-c |
9 |
– |
Requires: mimetic |
10 |
– |
|
4 |
|
# Download from cern afs area to speed up testing: |
5 |
< |
Source: http://cmsdoc.cern.ch/cms/TRIDAS/DAQKit/version-03-09/software/tars/DAQKit-03-09-01.tgz |
5 |
> |
#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 |
8 |
> |
Source0: http://switch.dl.sourceforge.net/sourceforge/xdaq/coretools_G_17559_V%{xdaqv}.tgz |
9 |
> |
Source1: http://switch.dl.sourceforge.net/sourceforge/xdaq/powerpack_G_28175_V1_4.tgz |
10 |
> |
Source2: http://switch.dl.sourceforge.net/sourceforge/xdaq/worksuite_G_28176_V1_5.tgz |
11 |
> |
|
12 |
|
%prep |
13 |
< |
%setup -n TriDAS |
13 |
> |
%setup -T -b 0 -n TriDAS |
14 |
> |
%setup -D -T -b 1 -n TriDAS |
15 |
> |
%setup -D -T -b 2 -n TriDAS |
16 |
> |
|
17 |
> |
echo " Install root in prep:" %{i} %{pkginstroot} |
18 |
|
|
19 |
|
%build |
20 |
|
# Xdaq does not provide makeinstall, it uses "simplify" script instead to |
29 |
|
cd %{i}/daq |
30 |
|
make Set=extern |
31 |
|
make Set=coretools |
32 |
+ |
make Set=powerpack |
33 |
+ |
make Set=worksuite |
34 |
|
# The following structure used as defined in Xdaq "simplify" script: |
35 |
|
cd %{i} |
36 |
|
mkdir -p %{i}/lib |
37 |
|
mkdir -p %{i}/bin |
33 |
– |
|
34 |
– |
# Remove unneeded and standard externals that can be re-used from CMS distribution: |
35 |
– |
|
36 |
– |
for extern in %{to_be_removed_externals}; do echo removing external from daq: ${extern} ...; rm -rf daq/extern/${extern}; done |
37 |
– |
|
38 |
|
# Catch-all |
39 |
|
find . -type f ! -path "./lib/*.%{libext}" -name "*.%{libext}" -exec mv {} %{i}/lib \; |
40 |
|
find . -type f ! -path "./bin/*.exe" -name "*.exe" -exec mv {} %{i}/bin \; |