-
Notifications
You must be signed in to change notification settings - Fork 3
/
rpm_s3_mirror.spec
55 lines (39 loc) · 1.27 KB
/
rpm_s3_mirror.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
52
53
54
55
Name: rpm_s3_mirror
Version: %{major_version}
Release: %{minor_version}%{?dist}
Url: http://github.com/aiven/rpm-s3-mirror
Summary: Aiven RPM S3 mirror tool
BuildArch: noarch
License: ASL 2.0
Source0: rpm_s3_mirror-rpm-src.tar
BuildRequires: python3-pytest
BuildRequires: rpm-build
Requires: python3-defusedxml
Requires: python3-requests
Requires: python3-dateutil
Requires: python3-botocore
Requires: python3-lxml
Requires: python3-zstandard
Requires: systemd
Requires: zchunk
%undefine _missing_build_ids_terminate_build
%description
rpm_s3_mirror is a tool to create a RPM mirror in s3 and periodically sync changes
%global debug_package %{nil}
%prep
%setup -q -n rpm_s3_mirror
%build
%install
python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
sed -e "s@#!/bin/python@#!%{_bindir}/python@" -i %{buildroot}%{_bindir}/*
%{__install} -Dm0644 rpm_s3_mirror.unit %{buildroot}%{_unitdir}/rpm_s3_mirror.service
%check
%files
%defattr(-,root,root,-)
%doc LICENSE README.md rpm_s3_mirror.json
%{_bindir}/rpm_s3_mirror*
%{_unitdir}/rpm_s3_mirror.service
%{python3_sitelib}/*
%changelog
* Wed Mar 18 2020 William Coe <[email protected]> - 1.0.0
- Initial version