999f5f
Name: python-podman
999f5f
Version: 3.2.1
999f5f
Release: 4%{?dist}
bef526
Summary: RESTful API for Podman
bef526
License: ASL 2.0
999f5f
URL: https://github.com/containers/podman-py
999f5f
Source0: %{url}/releases/download/v%{version}/podman-%{version}.tar.gz
bef526
BuildArch: noarch
bef526
999f5f
%description
999f5f
%{name} is a library of bindings to use the RESTful API for Podman.
bef526
999f5f
%package -n python%{python3_pkgversion}-podman
bef526
BuildRequires: python%{python3_pkgversion}-devel
bef526
BuildRequires: python%{python3_pkgversion}-rpm-macros
bef526
%if 0%{?fedora} || 0%{?rhel} >= 9
bef526
BuildRequires: python%{python3_pkgversion}-toml
bef526
Requires: python%{python3_pkgversion}-toml
bef526
%else
bef526
BuildRequires: python%{python3_pkgversion}-pytoml
bef526
Requires: python%{python3_pkgversion}-pytoml
bef526
%endif
bef526
BuildRequires: python%{python3_pkgversion}-pyxdg
bef526
BuildRequires: python%{python3_pkgversion}-requests
bef526
BuildRequires: python%{python3_pkgversion}-setuptools
bef526
BuildRequires: git-core
bef526
Requires: python%{python3_pkgversion}-pyxdg
bef526
Requires: python%{python3_pkgversion}-requests
999f5f
Provides: podman-py = %{version}-%{release}
bef526
Summary: %{summary}
999f5f
%{?python_provide:%python_provide python%{python3_pkgversion}-podman}
bef526
999f5f
%description -n python%{python3_pkgversion}-podman
999f5f
%{name} is a library of bindings to use the RESTful API for Podman.
bef526
bef526
%prep
999f5f
%autosetup -Sgit_am -n podman-%{version}
bef526
bef526
%build
bef526
%py3_build
bef526
bef526
%install
bef526
%py3_install
bef526
bef526
%files -n python3-podman
bef526
%license LICENSE
bef526
%doc README.md
bef526
%{python3_sitelib}/podman/*
bef526
%{python3_sitelib}/podman-*/*
bef526
bef526
%changelog
999f5f
* Wed Sep 29 2021 Jindrich Novy <jnovy@redhat.com> - 3.2.1-4
999f5f
- do not depend on pyproject-rpm-macros - not present in RHEL8
999f5f
- Related: #2001445
999f5f
bef526
* Wed Jul 28 2021 Lokesh Mandvekar <lsm5@fedoraproject.org> - 3.2.0-2
bef526
- depend on python3-requests
bef526
- Resolves: #1978415 - initial upload to rhel
bef526
bef526
* Wed Jul 28 2021 Lokesh Mandvekar <lsm5@fedoraproject.org> - 3.2.0-1
bef526
- Bump to v3.2.0
bef526
bef526
* Tue May 04 2021 Lokesh Mandvekar <lsm5@fedoraproject.org> - 3.1.2.4-1
bef526
- Initial package
bef526