81ee0d
%global python_podman_version v4.2.1
81ee0d
#%%global python_podman_branch v4.2.0-rhel
81ee0d
%global python_podman_commit0 c52201038ef5bed260b81d8d84df8b95b26fc231
81ee0d
%global python_podman_shortcommit0 %(c=%{python_podman_commit0}; echo ${c:0:7})
81ee0d
617101
Name: python-podman
81ee0d
Version: 4.2.1
617101
Release: 1%{?dist}
d57f3d
Summary: RESTful API for Podman
d57f3d
License: ASL 2.0
617101
URL: https://github.com/containers/podman-py
81ee0d
%if 0%{?python_podman_branch:1}
81ee0d
Source0: https://github.com/containers/podman-py/archive/%{python_podman_commit0}.tar.gz
81ee0d
%else
617101
Source0: %{url}/releases/download/v%{version}/podman-%{version}.tar.gz
81ee0d
%endif
d57f3d
BuildArch: noarch
d57f3d
617101
%description
617101
%{name} is a library of bindings to use the RESTful API for Podman.
d57f3d
617101
%package -n python%{python3_pkgversion}-podman
d57f3d
BuildRequires: python%{python3_pkgversion}-devel
d57f3d
BuildRequires: python%{python3_pkgversion}-rpm-macros
d57f3d
%if 0%{?fedora} || 0%{?rhel} >= 9
d57f3d
BuildRequires: python%{python3_pkgversion}-toml
d57f3d
Requires: python%{python3_pkgversion}-toml
d57f3d
%else
d57f3d
BuildRequires: python%{python3_pkgversion}-pytoml
d57f3d
Requires: python%{python3_pkgversion}-pytoml
d57f3d
%endif
d57f3d
BuildRequires: python%{python3_pkgversion}-pyxdg
d57f3d
BuildRequires: python%{python3_pkgversion}-requests
d57f3d
BuildRequires: python%{python3_pkgversion}-setuptools
d57f3d
BuildRequires: git-core
816af7
BuildRequires: python%{python3_pkgversion}-sphinx
d57f3d
Requires: python%{python3_pkgversion}-pyxdg
d57f3d
Requires: python%{python3_pkgversion}-requests
617101
Provides: podman-py = %{version}-%{release}
d57f3d
Summary: %{summary}
617101
%{?python_provide:%python_provide python%{python3_pkgversion}-podman}
d57f3d
617101
%description -n python%{python3_pkgversion}-podman
617101
%{name} is a library of bindings to use the RESTful API for Podman.
d57f3d
d57f3d
%prep
81ee0d
%if 0%{?python_podman_branch:1}
81ee0d
%autosetup -Sgit_am -n podman-py-%{python_podman_commit0}
81ee0d
%else
617101
%autosetup -Sgit_am -n podman-%{version}
81ee0d
%endif
d57f3d
d57f3d
%build
d57f3d
%py3_build
d57f3d
d57f3d
%install
d57f3d
%py3_install
d57f3d
d57f3d
%files -n python3-podman
d57f3d
%license LICENSE
d57f3d
%doc README.md
d57f3d
%{python3_sitelib}/podman/*
d57f3d
%{python3_sitelib}/podman-*/*
d57f3d
d57f3d
%changelog
81ee0d
* Mon Oct 24 2022 Jindrich Novy <jnovy@redhat.com> - 4.2.1-1
81ee0d
- update to 4.2.1 release
81ee0d
- Resolves: #2132360
81ee0d
81ee0d
* Thu Oct 20 2022 Jindrich Novy <jnovy@redhat.com> - 4.2.0-2
81ee0d
- fix "[RFE] python-podman: Podman support to perform custom actions on unhealthy containers"
81ee0d
- Resolves: #2132360
81ee0d
816af7
* Thu Aug 11 2022 Jindrich Novy <jnovy@redhat.com> - 4.2.0-1
816af7
- update to https://github.com/containers/podman-py/releases/tag/v4.2.0
816af7
- Related: #2061390
53513d
816af7
* Mon Feb 28 2022 Lokesh Mandvekar <lsm5@redhat.com> - 4.0.0-1
19337e
- bump to v4.0.0
19337e
- Related: #2001445
19337e
19337e
* Wed Sep 29 2021 Jindrich Novy <jnovy@redhat.com> - 3.2.1-4
617101
- do not depend on pyproject-rpm-macros - not present in RHEL8
617101
- Related: #2001445
617101
d57f3d
* Wed Jul 28 2021 Lokesh Mandvekar <lsm5@fedoraproject.org> - 3.2.0-2
d57f3d
- depend on python3-requests
d57f3d
- Resolves: #1978415 - initial upload to rhel
d57f3d
d57f3d
* Wed Jul 28 2021 Lokesh Mandvekar <lsm5@fedoraproject.org> - 3.2.0-1
d57f3d
- Bump to v3.2.0
d57f3d
d57f3d
* Tue May 04 2021 Lokesh Mandvekar <lsm5@fedoraproject.org> - 3.1.2.4-1
d57f3d
- Initial package
d57f3d