Skip to content

Commit

Permalink
Merge pull request #7827 from cms-sw/add-xrdcl_record
Browse files Browse the repository at this point in the history
* Add xrdcl-record package

* Fix recipe

* Update xrdcl-record.spec

* Add toolfile

* Update toolfile following review

* Update xrdcl-record.xml
  • Loading branch information
iarspider authored Apr 28, 2022
1 parent 7cd8e3f commit 4d5199b
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
1 change: 1 addition & 0 deletions cmssw-tool-conf.spec
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ Requires: xerces-c
Requires: dcap
Requires: frontier_client
Requires: xrootd
Requires: xrdcl-record
Requires: dd4hep
Requires: valgrind
Requires: cmsswdata
Expand Down
6 changes: 6 additions & 0 deletions scram-tools.file/tools/xrdcl-record/xrdcl-record.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<tool name="xrdcl-record" version="@TOOL_VERSION@">
<client>
<environment name="XRDCL_RECORD_BASE" default="@TOOL_ROOT@"/>
</client>
<runtime name="XRDCL_RECORDER_PLUGIN" value="${XRDCL_RECORD_BASE}/lib64/libXrdClRecorder-5.so"/>
</tool>
23 changes: 23 additions & 0 deletions xrdcl-record.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
### RPM external xrdcl-record 5.4.2
Source: https://github.com/xrootd/xrdcl-record/archive/refs/tags/v%{realversion}.tar.gz

BuildRequires: gmake cmake
Requires: xrootd

%prep
%setup -n %setup -q -n %{n}-%{realversion}

%build
rm -rf ../build; mkdir ../build ; cd ../build
cmake ../%{n}-%{realversion} \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX="%{i}" \
-DCMAKE_PREFIX_PATH="${XROOTD_ROOT}" \
-DCMAKE_VERBOSE=1 \
-DCMAKE_CXX_FLAGS="-L${XROOTD_ROOT}/lib64"

gmake %{makeprocesses} VERBOSE=1

%install
cd ../build
gmake %{makeprocesses} install

0 comments on commit 4d5199b

Please sign in to comment.