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 |
> |
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 |
27 |
|
cd %{i} |
28 |
|
export XDAQ_ROOT=$PWD |
29 |
|
cd %{i}/daq |
30 |
< |
make Set=extern |
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/linux/x86 |
37 |
< |
mkdir -p %{i}/bin/linux/x86 |
36 |
> |
mkdir -p %{i}/lib |
37 |
> |
mkdir -p %{i}/bin |
38 |
|
# Catch-all |
39 |
< |
find . -type f ! -path "./lib/*.so" -name "*.so" -exec mv {} lib/linux/x86 \; |
40 |
< |
find . -type f ! -path "./bin/*.exe" -name "*.exe" -exec mv {} bin/linux/x86 \; |
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 \; |
41 |
|
|
42 |
|
# Libraries from extern (not found cause they are symlinks) |
43 |
< |
cp -d daq/extern/*/linuxx86/lib/* lib/linux/x86 |
43 |
> |
cp -rdL daq/extern/*/linuxx86/lib/* %{i}/lib |
44 |
> |
|
45 |
> |
find daq -type f ! -path "*/extern/*lib*" -name "*.a" -exec cp {} %{i}/lib \; |
46 |
> |
perl -p -i -e "s|^#!.*make|/usr/bin/env make|" %{i}/daq/extern/slp/openslp-1.2.0/debian/rules |