This repository has been archived by the owner on Nov 4, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
podcust.spec
90 lines (71 loc) · 2.75 KB
/
podcust.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
%global pypi_name podcust
Name: %{pypi_name}
Version: 0.1.8
Release: 1%{?dist}
Summary: Python utility to handle podman containers within Fedora
License: Parity Public License v7.0.0
URL: https://github.com/Iolaum/fcust
Source0: %{URL}/archive/v%{Version}.tar.gz#/%{pypi_name}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: python3dist(wheel)
BuildRequires: python3dist(black)
# BuildRequires: python3dist(check-manifest) fails because of missing dependencies in repositories.
BuildRequires: python3dist(click)
BuildRequires: python3dist(coverage)
BuildRequires: python3dist(flake8)
BuildRequires: python3dist(mypy)
BuildRequires: python3dist(pip)
BuildRequires: python3dist(pytest)
BuildRequires: python3dist(pytest-runner)
BuildRequires: python3dist(setuptools)
BuildRequires: python3dist(sphinx)
BuildRequires: yamllint
BuildRequires: twine
BuildRequires: hadolint
Requires: podman
%description
Podman Custodian Python utility to handle podman containers within Fedora.
%prep
%autosetup -n %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info
# python preparation
python3 -m pip install --upgrade pip
pip install check-manifest
%build
%py3_build
# generate html and man docs
PYTHONPATH=${PWD} sphinx-build-3 docs html
PYTHONPATH=${PWD} sphinx-build-3 docs man
# remove the sphinx-build leftovers
rm -rf html/.{doctrees,buildinfo}
%install
%py3_install
%check
%{__python3} setup.py test
%files -n %{pypi_name}
%license License.md
%doc html
%{_mandir}/man1/podcust.1.gz
%{_bindir}/podcust
%{python3_sitelib}/%{pypi_name}
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info
%changelog
* Mon May 03 2021 Nikolaos Perrakis <[email protected]> - 0.1.8-1
- Build changes for F34 packaging.
- Fix command to remove transmission pod.
* Sun Apr 04 2021 Nikolaos Perrakis <[email protected]> - 0.1.7-1
- Enable user linger so transmission-pod service starts after boot.
* Sun Mar 14 2021 Nikolaos Perrakis <[email protected]> - 0.1.3-1
- Add functionality to delete transmission image data and service unit file.
* Sun Mar 14 2021 Nikolaos Perrakis <[email protected]> - 0.1.2-1
- Recreate transmission kubernetes template for podman 3.0.
* Sun Mar 07 2021 Nikolaos Perrakis <[email protected]> - 0.1.1-1
- Fix service file issue.
* Sun Mar 07 2021 Nikolaos Perrakis <[email protected]> - 0.1.0-2
- Adding systemd user service unit to perform maintenance and updates for transmission container.
* Mon Mar 01 2021 Nikolaos Perrakis <[email protected]> - 0.0.33-1
- Adding barebones transmission container functionality.
* Fri Feb 26 2021 Nikolaos Perrakis <[email protected]> - 0.0.27-1
- Initial fedora package.