708af28
%global modname cekit
708af28
%global _description \
7379275
CEKit helps to build container images from image definition files
708af28
708af28
Name:           %{modname}
d638a57
Version:        4.3.0
5204be2
Release:        1%{?dist}
708af28
Summary:        Container image creation tool
708af28
License:        MIT
5dc3b8c
URL:            https://cekit.io
bad91af
Source0:        https://github.com/cekit/cekit/archive/refs/tags/%{version}.tar.gz
708af28
BuildArch:      noarch
708af28
708af28
Requires:       git
708af28
708af28
%if 0%{?rhel} && 0%{?rhel} < 8
f1aa0d5
%global click python36-click
f1aa0d5
%global jinja python36-jinja2
f1aa0d5
%global pyyaml python36-PyYAML
708af28
%else
f1aa0d5
%global click python3-click
f1aa0d5
%global jinja python3-jinja2
f1aa0d5
%global pyyaml python3-pyyaml
f1aa0d5
f1aa0d5
BuildRequires:  python3-colorlog
f1aa0d5
f1aa0d5
Requires:       python3-colorlog
f1aa0d5
f1aa0d5
%endif
f1aa0d5
708af28
BuildRequires:  python3-devel
708af28
BuildRequires:  python3-setuptools
708af28
BuildRequires:  python3-pykwalify
f1aa0d5
BuildRequires:  %{pyyaml}
f1aa0d5
BuildRequires:  %{jinja}
708af28
f1aa0d5
Requires:       %{jinja}
708af28
Requires:       python3-setuptools
708af28
Requires:       python3-pykwalify
f1aa0d5
Requires:       %{pyyaml}
f1aa0d5
Requires:       %{click}
bd3b750
Requires:       python3-packaging
708af28
f1aa0d5
%if 0%{?fedora}
3cd41e7
Suggests:       python3-docker
3cd41e7
Suggests:       python3-docker-squash
3cd41e7
Suggests:       docker
708af28
%endif
708af28
708af28
%description %_description
708af28
708af28
%package -n %{modname}-bash-completion
708af28
Summary:        %{summary}
708af28
Requires:       bash-completion
708af28
%description -n %{modname}-bash-completion %_description
708af28
708af28
Bash completion.
708af28
708af28
%package -n %{modname}-zsh-completion
708af28
Summary:        %{summary}
708af28
Requires:       zsh
708af28
%description -n %{modname}-zsh-completion %_description
708af28
708af28
ZSH completion.
708af28
708af28
%prep
10ed440
%setup -q -n cekit-%{version}
708af28
708af28
%if 0%{?rhel} && 0%{?rhel} < 8
bd3b750
# Remove version requirement for packaging
bd3b750
sed -i 's/^packaging.*$/packaging/' requirements.txt
f1aa0d5
# Remove requirement for odcs
f1aa0d5
sed -i 's/^odcs.*$//' requirements.txt
f1aa0d5
# Remove requirement for colorlog
f1aa0d5
sed -i 's/^colorlog.*$//' requirements.txt
708af28
%endif
708af28
708af28
%build
708af28
%py3_build
708af28
708af28
%install
708af28
mkdir -p %{buildroot}/%{_sysconfdir}/bash_completion.d
6eadfc4
cp support/completion/bash/cekit %{buildroot}/%{_sysconfdir}/bash_completion.d/cekit
708af28
708af28
mkdir -p %{buildroot}/%{_datadir}/zsh/site-functions
6eadfc4
cp support/completion/zsh/_cekit %{buildroot}/%{_datadir}/zsh/site-functions/_cekit
708af28
708af28
%py3_install
708af28
708af28
%files -n %{modname}-bash-completion
708af28
%doc README.rst
708af28
%license LICENSE
708af28
%{_sysconfdir}/bash_completion.d/cekit
708af28
708af28
%files -n %{modname}-zsh-completion
708af28
%doc README.rst
708af28
%license LICENSE
708af28
%{_datadir}/zsh/site-functions/_cekit
708af28
708af28
%files -n %{modname}
708af28
%doc README.rst
708af28
%license LICENSE
708af28
708af28
%{python3_sitelib}/cekit/
708af28
%{python3_sitelib}/cekit-*.egg-info/
708af28
708af28
%{_bindir}/cekit
708af28
%{_bindir}/cekit-cache
708af28
708af28
%changelog
d638a57
* Wed Aug 03 2022 Nick Cross <ncross@redhat.com> - 4.3.0-1
d638a57
- Release 4.3.0
d638a57
e77f01e
* Mon Jul 11 2022 Nick Cross <ncross@redhat.com> - 4.2.0-1
e77f01e
- Release 4.2.0
e77f01e
cc9db25
* Wed Mar 30 2022 Nick Cross <ncross@redhat.com> - 4.1.0-1
cc9db25
- Release 4.1.0
cc9db25
0262b2c
* Thu Mar 10 2022 Nick Cross <ncross@redhat.com> - 4.0.0-1
0262b2c
- Release 4.0.0
0262b2c
bad91af
* Fri Oct 01 2021 Nick Cross <ncross@redhat.com> - 3.12.0-1
bad91af
- Release 3.12.0
bad91af
89ced8d
* Tue Jan 19 12:38:02 CET 2021 Marek Goldmann <mgoldman@redhat.com> - 3.8.0-1
89ced8d
- Release 3.8.0
89ced8d
5204be2
* Wed Jul 29 2020 Marek Goldmann <mgoldman@redhat.com> - 3.7.0-1
5204be2
- Release 3.7.0
5204be2
8d28748
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.6.0-4
8d28748
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
8d28748
5a23d1f
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 3.6.0-3
5a23d1f
- Rebuilt for Python 3.9
5a23d1f
a07876e
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.6.0-2
a07876e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
a07876e
1db9f00
* Wed Nov 06 2019 Marek Goldmann <mgoldman@redhat.com> - 3.6.0-1
1db9f00
- Release 3.6.0
1db9f00
e118f09
* Thu Sep 19 2019 Marek Goldmann <mgoldman@redhat.com> - 3.5.0-1
e118f09
- Release 3.5.0
e118f09
732e185
* Mon Sep 02 2019 Marek Goldmann <mgoldman@redhat.com> - 3.4.0-2
732e185
- Specify proper R/BR for PyYAML
732e185
f2158d4
* Thu Aug 22 2019 Marek Goldmann <mgoldman@redhat.com> - 3.4.0-1
f2158d4
- Release 3.4.0
f2158d4
9fd2154
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 3.3.1-3
9fd2154
- Rebuilt for Python 3.8
9fd2154
15628bc
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.1-2
15628bc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
15628bc
bd3b750
* Fri Jul 19 2019 Marek Goldmann <mgoldman@redhat.com> - 3.3.1-1
bd3b750
- Release 3.3.1
bd3b750
66e6bbe
* Wed Jun 26 2019 Marek Goldmann <mgoldman@redhat.com> - 3.2.0-1
66e6bbe
- Release 3.2.0
66e6bbe
429d57e
* Mon Jun 03 2019 Marek Goldmann <mgoldman@redhat.com> - 3.1.0-1
429d57e
- Release 3.1.0
429d57e
05b3fb4
* Tue Apr 30 2019 Marek Goldmann <mgoldman@redhat.com> - 3.0.1-1
05b3fb4
- Release 3.0.1
05b3fb4
10ed440
* Wed Apr 17 2019 Marek Goldmann <mgoldman@redhat.com> - 3.0.0-1
10ed440
- Release 3.0.0
10ed440
c352018
* Mon Apr 08 2019 Marek Goldmann <mgoldman@redhat.com> - 3.0.0-0.7.20190408git45cab46
c352018
- Updated revision to 45cab46
c352018
26e3acc
* Fri Mar 08 2019 Marek Goldmann <mgoldman@redhat.com> - 3.0.0-0.6.20190308git6318d73
26e3acc
- Rebuild
26e3acc
40edc40
* Fri Mar 08 2019 Marek Goldmann <mgoldman@redhat.com> - 3.0.0-0.5.20190308git6318d73
40edc40
- Rebuild
40edc40
5c72757
* Fri Mar 08 2019 Marek Goldmann <mgoldman@redhat.com> - 3.0.0-0.4.20190308git6318d73
5c72757
- Updated revision to 6318d73
5c72757
3868698
* Fri Mar 08 2019 Marek Goldmann <mgoldman@redhat.com> - 3.0.0-0.3.20190308git4f12391
3868698
- Updated revision to 4f12391
3868698
708af28
* Mon Feb 18 2019 Marek Goldmann <mgoldman@redhat.com> - 3.0.0-0.2.20190214git91cb6c1
708af28
- Update to commit dcb561650f177a800208c89e62d029d5ed9cc912
708af28
- Added support for RHEL 8 in coditionals
708af28
- Fixed Release
708af28
- Updated Source
708af28
708af28
* Thu Feb 14 2019 Marek Goldmann <mgoldman@redhat.com> - 3.0.0-0.1.20190214gitec3a0b
708af28
- Initial packaging