Skip to content

Commit 12993f5

Browse files
authored
Merge pull request #4 from bbockelm/rpm_build
Add simple RPM build to repository
2 parents 21f6d56 + ac260d3 commit 12993f5

File tree

2 files changed

+60
-0
lines changed

2 files changed

+60
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
build
2+
build-linux

rpm/xrdhttp-pelican.spec

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
2+
Name: xrdhttp-pelican
3+
Version: 0.0.3
4+
Release: 1%{?dist}
5+
Summary: A Pelican-specific plugin for the XrdHttp server
6+
7+
Group: System Environment/Daemons
8+
License: BSD
9+
URL: https://github.com/pelicanplatform/xrdhttp-pelican
10+
# Generated from:
11+
# git archive --format tar.gz v%{version} --prefix=xrdhttp-pelican-%{version}/ > ~/rpmbuild/SOURCES/xrdhttp-pelican-%{version}.tar.gz
12+
Source0: %{name}-%{version}.tar.gz
13+
14+
%define xrootd_current_major 5
15+
%define xrootd_current_minor 7
16+
%define xrootd_next_minor 8
17+
18+
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
19+
# Since we rely on the private headers, we don't want the plugin to cross
20+
# unknown feature release versions.
21+
BuildRequires: xrootd-devel >= 1:%{xrootd_current_major}.%{xrootd_current_minor}.0
22+
BuildRequires: xrootd-devel < 1:%{xrootd_current_major}.%{xrootd_next_minor}.0
23+
BuildRequires: xrootd-private-devel
24+
BuildRequires: gcc-c++
25+
BuildRequires: cmake
26+
27+
Requires: xrootd-client >= 1:%{xrootd_current_major}.%{xrootd_current_minor}
28+
Requires: xrootd-client < 1:%{xrootd_current_major}.%{xrootd_next_minor}.0
29+
30+
%description
31+
%{summary}
32+
33+
%prep
34+
%setup -q
35+
36+
%build
37+
38+
%cmake3 -DCMAKE_BUILD_TYPE=RelWithDebInfo
39+
pushd redhat-linux-build
40+
make VERBOSE=1 %{?_smp_mflags}
41+
popd
42+
43+
%install
44+
rm -rf $RPM_BUILD_ROOT
45+
pushd redhat-linux-build
46+
make install DESTDIR=$RPM_BUILD_ROOT
47+
popd
48+
49+
%clean
50+
rm -rf $RPM_BUILD_ROOT
51+
52+
%files
53+
%defattr(-,root,root,-)
54+
%{_libdir}/libXrdHttpPelican-*.so
55+
56+
%changelog
57+
* Mon Dec 23 2024 Brian Bockelman <bbockelman@morgridge.org> - 0.0.3-1
58+
- First build of the xrdhttp-pelican plugin
59+

0 commit comments

Comments
 (0)