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

Fix RPM-based builds #88

Merged
merged 7 commits into from
Feb 1, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 23 additions & 22 deletions rpm/xrootd-s3-http.spec
Original file line number Diff line number Diff line change
@@ -1,28 +1,26 @@
Name: xrootd-s3-http
Version: 0.0.2
Release: 1%{?dist}
Summary: S3/HTTP filesystem plugins for xrootd

Group: System Environment/Daemons
License: BSD
# Generated from:
# git archive v%{version} --prefix=xrootd-s3-http-%{version}/ | gzip -7 > ~/rpmbuild/SOURCES/xrootd-s3-http-%{version}.tar.gz
URL: https://github.com/pelicanplatform/xrootd-s3-http
Source0: %{name}-%{version}.tar.gz
Name: xrootd-s3-http
Version: 0.2.1
Release: 1%{?dist}
Summary: S3/HTTP filesystem plugins for xrootd

License: Apache-2.0
URL: https://github.com/PelicanPlatform/%{name}
Source0: %{url}/archive/refs/tags/v%{version}/%{name}-%{version}.tar.gz

%define xrootd_current_major 5
%define xrootd_current_minor 5
%define xrootd_current_minor 7
%define xrootd_next_major 6

BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
BuildRequires: cmake3
BuildRequires: gcc-c++
BuildRequires: make
BuildRequires: xrootd-server-libs >= 1:%{xrootd_current_major}
BuildRequires: xrootd-server-libs < 1:%{xrootd_next_major}
BuildRequires: xrootd-server-devel >= 1:%{xrootd_current_major}
BuildRequires: xrootd-server-devel < 1:%{xrootd_next_major}
BuildRequires: cmake3
BuildRequires: gcc-c++
BuildRequires: libcurl-devel
BuildRequires: openssl-devel
BuildRequires: tinyxml2-devel

Requires: xrootd-server >= 1:%{xrootd_current_major}.%{xrootd_current_minor}
Requires: xrootd-server < 1:%{xrootd_next_major}.0.0-1
Expand All @@ -34,19 +32,22 @@ Requires: xrootd-server < 1:%{xrootd_next_major}.0.0-1
%setup -q

%build
%cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo .
make VERBOSE=1 %{?_smp_mflags}
%cmake . -DCMAKE_BUILD_TYPE=RelWithDebInfo -DXROOTD_EXTERNAL_TINYXML2=ON
cmake --build redhat-linux-build --verbose

%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
%cmake_install

%files
%defattr(-,root,root,-)
%{_libdir}/libXrdS3*.so
%{_libdir}/libXrdHTTPServer*.so
%{_libdir}/libXrdHTTPServer-5.so
%{_libdir}/libXrdS3-5.so
%doc README.md
%license LICENSE

%changelog
* Sat Feb 1 2025 Brian Bockelman <[email protected]> - 0.2.1-1
- Bump to upstream version 0.2.1.

* Tue Nov 28 2023 Justin Hiemstra <[email protected]> - 0.0.2-1
- Add HTTPServer plugin

Expand Down
Loading