Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update xrootd 5.4.2 #7700

Merged
merged 3 commits into from Mar 21, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
20 changes: 11 additions & 9 deletions xrootd.spec
@@ -1,14 +1,15 @@
### RPM external xrootd 5.4.1
### RPM external xrootd 5.4.2
## INITENV +PATH LD_LIBRARY_PATH %i/lib64
## INITENV +PATH PYTHON3PATH %{i}/${PYTHON3_LIB_SITE_PACKAGES}

%define tag v%{realversion}
%define strip_files %i/lib
%define tag 332967cdc6553aebff0fd356254d4cdab9c9e515
%define branch master
%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
BuildRequires: cmake gmake autotools python-python3
Requires: zlib libuuid
Requires: python3
Requires: libxml2
Requires: scitokens-cpp
Expand All @@ -20,13 +21,14 @@ Requires: scitokens-cpp

%prep
%setup -n %n-%{realversion}
sed -i -e 's|UUID REQUIRED|UUID |' cmake/XRootDFindLibs.cmake

%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 .. \
rm -rf ../build; mkdir ../build; cd ../build
cmake ../%n-%{realversion} \
-DCMAKE_INSTALL_PREFIX=%{i} \
-DCMAKE_BUILD_TYPE=Release \
-DZLIB_ROOT:PATH=${ZLIB_ROOT} \
Expand All @@ -44,8 +46,8 @@ cmake .. \
-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
cd ../build
make install
%{relocatePy3SitePackages}