1 |
|
### RPM external xdaq 3.4 |
2 |
|
%define xdaqv %(echo %v |tr . _) |
3 |
+ |
%define libext so |
4 |
|
# Download from cern afs area to speed up testing: |
5 |
< |
Source: http://cmsdoc.cern.ch/Releases/XDAQ/XDAQ_%xdaqv/coretools_G_17559_V%xdaqv.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 |
|
|
9 |
|
%prep |
10 |
< |
%setup -n TriDAS |
10 |
> |
%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} |
15 |
|
|
16 |
|
%build |
24 |
|
cd %{i} |
25 |
|
export XDAQ_ROOT=$PWD |
26 |
|
cd %{i}/daq |
27 |
< |
make Set=extern |
27 |
> |
make Set=extern |
28 |
|
make Set=coretools |
29 |
+ |
make Set=powerpack |
30 |
+ |
make Set=worksuite |
31 |
|
# The following structure used as defined in Xdaq "simplify" script: |
32 |
|
cd %{i} |
33 |
< |
mkdir -p %{i}/lib/linux/x86 |
34 |
< |
mkdir -p %{i}/bin/linux/x86 |
33 |
> |
mkdir -p %{i}/lib |
34 |
> |
mkdir -p %{i}/bin |
35 |
|
# Catch-all |
36 |
< |
find . -type f ! -path "./lib/*.so" -name "*.so" -exec mv {} lib/linux/x86 \; |
37 |
< |
find . -type f ! -path "./bin/*.exe" -name "*.exe" -exec mv {} bin/linux/x86 \; |
36 |
> |
find . -type f ! -path "./lib/*.%{libext}" -name "*.%{libext}" -exec mv {} %{i}/lib \; |
37 |
> |
find . -type f ! -path "./bin/*.exe" -name "*.exe" -exec mv {} %{i}/bin \; |
38 |
|
|
39 |
|
# Libraries from extern (not found cause they are symlinks) |
40 |
< |
cp -d daq/extern/*/linuxx86/lib/* lib/linux/x86 |
40 |
> |
cp -dL daq/extern/*/linuxx86/lib/* %{i}/lib |