3 |
|
Requires: oracle |
4 |
|
%define xdaqv %(echo %v |tr . _) |
5 |
|
%define libext so |
6 |
+ |
%if "%cmsplatf" == "slc3_ia32_gcc323" |
7 |
+ |
%define installDir linux/x86 |
8 |
+ |
%endif |
9 |
+ |
|
10 |
|
# Download from cern afs area to speed up testing: |
11 |
|
#Source0: http://cmsdoc.cern.ch/Releases/XDAQ/XDAQ_%xdaqv/coretools_G_17559_V%xdaqv.tgz |
12 |
|
#Source1: http://cmsdoc.cern.ch/Releases/XDAQ/XDAQ_%xdaqv/powerpack_G_28175_V1_3_1.tgz |
42 |
|
cd tstore |
43 |
|
make 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 |
47 |
+ |
# cp -r ./lib %{i}/lib |
48 |
+ |
# cp -r ./bin %{i}/bin |
49 |
|
cd %{i} |
50 |
< |
mkdir -p %{i}/lib |
51 |
< |
mkdir -p %{i}/bin |
52 |
< |
# Catch-all |
53 |
< |
find . -type f ! -path "./lib/*.%{libext}" -name "*.%{libext}" -exec mv {} %{i}/lib \; |
54 |
< |
find . -type f ! -path "./bin/*.exe" -name "*.exe" -exec mv {} %{i}/bin \; |
50 |
> |
# copies all the libraries in extern in %i/lib |
51 |
> |
mkdir -p %{i}/lib/linux/x86 |
52 |
> |
mkdir -p %{i}/bin/linux/x86 |
53 |
> |
tar cpfv - `find . ! -path "%{i}/lib/*.%{libext}" -type f -name "*.%{libext}"` | ( cd %{i}/lib; tar xpfv -) |
54 |
> |
tar cpfv - `find . ! -path "%{i}/bin/*.exe" -type f -name "*.exe"` | ( cd %{i}/bin; tar xpfv -) |
55 |
> |
|
56 |
> |
#links them back to lib and bin |
57 |
> |
find daq -type f ! -path "%{i}/lib/*.%{libext}" -name "*.%{libext}" -exec ln -sf {} %{i}/lib \; |
58 |
> |
find daq -type f ! -path "%{i}/lib/*.%{libext}" -name "*.%{libext}" -exec ln -sf {} ../../%{i}/lib/%installDir \; |
59 |
> |
find daq -type f ! -path "%{i}/bin/*.exe" -name "*.exe" -exec ln -sf {} %{i}/bin \; |
60 |
> |
find daq -type f ! -path "%{i}/bin/*.exe" -name "*.exe" -exec ln -sf {} ../../%{i}/bin/%installDir \; |
61 |
|
|
62 |
|
# Libraries from extern (not found cause they are symlinks) |
49 |
– |
cp -rdL daq/extern/*/linuxx86/lib/* %{i}/lib |
63 |
|
|
64 |
|
find daq -type f ! -path "*/extern/*lib*" -name "*.a" -exec cp {} %{i}/lib \; |
65 |
|
perl -p -i -e "s|^#!.*make|#!/usr/bin/env make|" %{i}/daq/extern/slp/openslp-1.2.0/debian/rules |