-
Notifications
You must be signed in to change notification settings - Fork 176
/
xrootd.spec
51 lines (43 loc) · 1.4 KB
/
xrootd.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
### RPM external xrootd 5.4.0
## INITENV +PATH LD_LIBRARY_PATH %i/lib64
## INITENV +PATH PYTHON3PATH %{i}/${PYTHON3_LIB_SITE_PACKAGES}
%define tag v%{realversion}
%define branch stable-5.3.x
%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 gmake autotools
Requires: zlib
Requires: python3
Requires: libxml2
Requires: scitokens-cpp
%define soext so
%ifarch darwin
%define soext dylib
%endif
%prep
%setup -n %n-%{realversion}
%build
# By default xrootd has perl, fuse, krb5, readline, and crypto enabled.
# libfuse and libperl are not produced by CMSDIST.
rm -rf build; mkdir build; cd build
cmake .. \
-DCMAKE_INSTALL_PREFIX=%{i} \
-DCMAKE_BUILD_TYPE=Release \
-DZLIB_ROOT:PATH=${ZLIB_ROOT} \
-DENABLE_FUSE=FALSE \
-DENABLE_KRB5=TRUE \
-DENABLE_READLINE=FALSE \
-DENABLE_CRYPTO=TRUE \
-DCMAKE_SKIP_RPATH=TRUE \
-DENABLE_PYTHON=TRUE \
-DXRD_PYTHON_REQ_VERSION=3 \
-DCMAKE_CXX_FLAGS="-I${LIBUUID_ROOT}/include" \
-DUUID_INCLUDE_DIR="${LIBUUID_ROOT}/include" \
-DUUID_LIBRARY="${LIBUUID_ROOT}/lib64/libuuid.%{soext}" \
-DSCITOKENS_CPP_DIR="${SCITOKENS_CPP_ROOT}" \
-DCMAKE_PREFIX_PATH="${PYTHON3_ROOT};${LIBXML2_ROOT};${LIBUUID_ROOT};${SCITOKENS_CPP_ROOT}"
make %makeprocesses VERBOSE=1
make install
%{relocatePy3SitePackages}
%install
%define strip_files %i/lib