-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathjanitor.spec.in
44 lines (35 loc) · 1.12 KB
/
janitor.spec.in
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
Name: janitor
Version: @RPM_VERSION@
Release: @RPM_RELEASE@
Summary: automatic clean-up for your Openstack tenant
Group: Applications/Tools
License: GPL3+
Source0: http://github.com/eduardocerqueira/janitor/%{name}-%{version}.tar.gz
BuildRequires: python3-setuptools
Requires: python3
Requires: python3-pip
%global debug_package %{nil}
# %define _unpackaged_files_terminate_build 0
%define _missing_doc_files_terminate_build 0
%description
janitor is a Linux helper tool to perform clean-up tasks to Openstack based on whitelist
%prep
%setup -q -n %{name}
%build
%{__python3} setup.py build
%install
%{__python3} setup.py install -O1 --skip-build --root %{buildroot}
mkdir -p %{buildroot}/%{_mandir}/man1
cp janitor.1 %{buildroot}/%{_mandir}/man1/janitor.1
%files
%defattr(755,root,root,755)
%{python3_sitelib}/janitor*
%attr (755,root,root)/usr/bin/janitor
%doc README.md
%doc AUTHORS
%{_mandir}/man1/janitor.1.gz
%changelog
* Fri Apr 30 2021 Eduardo Cerqueira <[email protected]> - 0.0.2
- code refactoring migrating to python3
* Sun Oct 30 2016 Eduardo Cerqueira <[email protected]> - 0.0.1
- initial build