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