Skip to content

Commit

Permalink
make sure to use libuuid from cms distribution
Browse files Browse the repository at this point in the history
  • Loading branch information
smuzaffar committed Oct 22, 2021
1 parent 4427256 commit 875f2f6
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions xrootd.spec
Expand Up @@ -7,11 +7,16 @@
%define github_user xrootd
Source: git+https://github.com/%github_user/xrootd.git?obj=%{branch}/%{tag}&export=%{n}-%{realversion}&output=/%{n}-%{realversion}.tgz

BuildRequires: cmake
BuildRequires: cmake autotools
Requires: zlib
Requires: python3
Requires: libxml2

%define soext so
%ifarch darwin
%define soext dylib
%endif

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

Expand All @@ -31,7 +36,10 @@ cmake .. \
-DCMAKE_SKIP_RPATH=TRUE \
-DENABLE_PYTHON=TRUE \
-DXRD_PYTHON_REQ_VERSION=3 \
-DCMAKE_PREFIX_PATH="${PYTHON3_ROOT};${LIBXML2_ROOT}"
-DCMAKE_CXX_FLAGS="-I${LIBUUID_ROOT}/include" \
-DUUID_INCLUDE_DIR="${LIBUUID_ROOT}/include" \
-DUUID_LIBRARY="${LIBUUID_ROOT}/lib64/libuuid.%{soext}" \
-DCMAKE_PREFIX_PATH="${PYTHON3_ROOT};${LIBXML2_ROOT};${LIBUUID_ROOT};${LIBUUID_ROOT}"

make %makeprocesses VERBOSE=1
make install
Expand Down

0 comments on commit 875f2f6

Please sign in to comment.