-
Notifications
You must be signed in to change notification settings - Fork 74
/
ansible-bender.spec
152 lines (110 loc) · 4.42 KB
/
ansible-bender.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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
# All tests require Internet access
# to test in mock use: --enable-network --with check
# to test in a privileged environment use:
# --with check --with privileged_tests
%bcond_with check
%bcond_with privileged_tests
Name: ansible-bender
Version: 0.10.1
Release: 1%{?dist}
Summary: Build container images using Ansible playbooks
License: MIT
URL: https://github.com/ansible-community/ansible-bender
Source0: %{pypi_source ansible-bender}
BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: pyproject-rpm-macros
%if %{with check}
# These are required for tests:
BuildRequires: ansible-core
BuildRequires: podman
BuildRequires: buildah
BuildRequires: git
%endif
Requires: (ansible-core or ansible)
Suggests: ansible-core
Requires: buildah
%description
This is a tool which bends containers using Ansible playbooks and
turns them into container images. It has a pluggable builder selection
- it is up to you to pick the tool which will be used to construct
your container image. Right now the only supported builder is
buildah. More to come in the future. Ansible-bender (ab) relies on
Ansible connection plugins for performing builds.
tl;dr Ansible is the frontend, buildah is the backend.
%prep
%autosetup
# Coverage tests should not be run in the RPM build according to the Python
# Packaging Guidelines
sed -i '/pytest-cov/d' setup.cfg
%generate_buildrequires
%pyproject_buildrequires %{?with_check:-x testing}
%build
%pyproject_wheel
%install
%pyproject_install
%pyproject_save_files ansible_bender
%if %{with check}
%check
%pytest \
-v \
--disable-pytest-warnings \
--numprocesses=auto \
%if %{with privileged_tests}
tests
%else
tests/unit
%endif
%endif
%files -f %{pyproject_files}
%{_bindir}/ansible-bender
%license LICENSE
%doc docs/* README.md
%changelog
* Mon Feb 06 2023 Tomas Tomecek <[email protected]> - 0.10.1-1
- 0.10.1 upstream release
* Fri Feb 03 2023 Tomas Tomecek <[email protected]> - 0.10.0-1
- 0.10.0 upstream release
* Wed Jan 18 2023 Fedora Release Engineering <[email protected]> - 0.9.0-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Wed Jul 20 2022 Fedora Release Engineering <[email protected]> - 0.9.0-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Mon Jun 13 2022 Python Maint <[email protected]> - 0.9.0-7
- Rebuilt for Python 3.11
* Sun Apr 24 2022 Gordon Messmer <[email protected]> - 0.9.0-6
- Suggest ansible-core
- Use %pytest macro
* Tue Feb 22 2022 Maxwell G <[email protected]> - 0.9.0-5
- Allow users to choose between ansible and ansible-core.
- Switch BR to ansible-core.
* Wed Jan 19 2022 Fedora Release Engineering <[email protected]> - 0.9.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Wed Jul 21 2021 Fedora Release Engineering <[email protected]> - 0.9.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Fri Jun 04 2021 Python Maint <[email protected]> - 0.9.0-2
- Rebuilt for Python 3.10
* Sat Jan 30 2021 Gordon Messmer <[email protected]> - 0.9.0-1
- Build 0.9.0
* Tue Jan 26 2021 Fedora Release Engineering <[email protected]> - 0.8.1-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Mon Jul 27 2020 Fedora Release Engineering <[email protected]> - 0.8.1-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Tue May 26 2020 Miro Hrončok <[email protected]> - 0.8.1-3
- Rebuilt for Python 3.9
* Mon May 18 2020 Gordon Messmer <[email protected]> - 0.8.1-2
- Rebuild with fix for missing python modules.
* Mon Apr 27 2020 Gordon Messmer <[email protected]> - 0.8.1-1
- Build 0.8.1
* Tue Jan 28 2020 Fedora Release Engineering <[email protected]> - 0.7.0-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Thu Oct 03 2019 Miro Hrončok <[email protected]> - 0.7.0-4
- Rebuilt for Python 3.8.0rc1 (#1748018)
* Mon Aug 19 2019 Miro Hrončok <[email protected]> - 0.7.0-3
- Rebuilt for Python 3.8
* Wed Jul 24 2019 Fedora Release Engineering <[email protected]> - 0.7.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Wed Jul 03 2019 Gordon Messmer <[email protected]> - 0.7.0-1
- Build 0.7.0
* Tue Jul 02 2019 Gordon Messmer <[email protected]> - 0.6.1-6
- First build for Fedora