-
Notifications
You must be signed in to change notification settings - Fork 0
/
umobj.spec
49 lines (42 loc) · 1.14 KB
/
umobj.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
%define name umobj
%define release 1
Summary: UMIACS Object Storage Commands
Name: %{name}
Version: %{version}
Release: %{release}
Source0: %{name}-%{version}.tar.gz
License: LGPL v2.1
Group: Development/Libraries
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
Requires: %{python}
Requires: %{python}-bagit >= 1.7.0
Requires: %{python}-boto >= 2.49.0
Requires: %{python}-certifi >= 2019.11.28
Requires: %{python}-filechunkio
Requires: %{python}-progressbar
%if 0%{?el8}
Requires: %{python}-qav >= 1.0.2
%else
Requires: qav >= 0.3.2
%endif
AutoReq: no
Prefix: %{_prefix}
BuildArch: noarch
Vendor: UMIACS Staff <[email protected]>
Url: https://github.com/UMIACS/umobj
%description
Command-line utilities for S3-compatible Object Storage
%prep
%setup
%build
%{python} setup.py build
%install
%{python} setup.py install --single-version-externally-managed -O1 --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES
## install man pages
install -m0755 -d $RPM_BUILD_ROOT%{_mandir}/man1
install -Dp -m0644 share/man/man1/* %{buildroot}%{_mandir}/man1
%clean
rm -rf $RPM_BUILD_ROOT
%files -f INSTALLED_FILES
%defattr(-,root,root)
%{_mandir}/man1/*.1.gz