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