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