|
|
|
@ -1,19 +1,16 @@
|
|
|
|
|
%global pypi_name podman
|
|
|
|
|
%global desc %{pypi_name} is a library of bindings to use the RESTful API for Podman.
|
|
|
|
|
|
|
|
|
|
Name: python-%{pypi_name}
|
|
|
|
|
Version: 3.2.0
|
|
|
|
|
Release: 2%{?dist}
|
|
|
|
|
Name: python-podman
|
|
|
|
|
Version: 3.2.1
|
|
|
|
|
Release: 4%{?dist}
|
|
|
|
|
Summary: RESTful API for Podman
|
|
|
|
|
License: ASL 2.0
|
|
|
|
|
URL: https://github.com/containers/%{pypi_name}-py
|
|
|
|
|
Source0: %{url}/archive/v%{version}.tar.gz
|
|
|
|
|
URL: https://github.com/containers/podman-py
|
|
|
|
|
Source0: %{url}/releases/download/v%{version}/podman-%{version}.tar.gz
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
%desc
|
|
|
|
|
%description
|
|
|
|
|
%{name} is a library of bindings to use the RESTful API for Podman.
|
|
|
|
|
|
|
|
|
|
%package -n python%{python3_pkgversion}-%{pypi_name}
|
|
|
|
|
%package -n python%{python3_pkgversion}-podman
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-devel
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-rpm-macros
|
|
|
|
|
%if 0%{?fedora} || 0%{?rhel} >= 9
|
|
|
|
@ -29,15 +26,15 @@ BuildRequires: python%{python3_pkgversion}-setuptools
|
|
|
|
|
BuildRequires: git-core
|
|
|
|
|
Requires: python%{python3_pkgversion}-pyxdg
|
|
|
|
|
Requires: python%{python3_pkgversion}-requests
|
|
|
|
|
Provides: %{pypi_name}-py = %{version}-%{release}
|
|
|
|
|
Provides: podman-py = %{version}-%{release}
|
|
|
|
|
Summary: %{summary}
|
|
|
|
|
%{?python_provide:%python_provide python%{python3_pkgversion}-%{pypi_name}}
|
|
|
|
|
%{?python_provide:%python_provide python%{python3_pkgversion}-podman}
|
|
|
|
|
|
|
|
|
|
%description -n python%{python3_pkgversion}-%{pypi_name}
|
|
|
|
|
%desc
|
|
|
|
|
%description -n python%{python3_pkgversion}-podman
|
|
|
|
|
%{name} is a library of bindings to use the RESTful API for Podman.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -Sgit_am -n %{pypi_name}-py-%{version}
|
|
|
|
|
%autosetup -Sgit_am -n podman-%{version}
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%py3_build
|
|
|
|
@ -52,6 +49,10 @@ Summary: %{summary}
|
|
|
|
|
%{python3_sitelib}/podman-*/*
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Wed Sep 29 2021 Jindrich Novy <jnovy@redhat.com> - 3.2.1-4
|
|
|
|
|
- do not depend on pyproject-rpm-macros - not present in RHEL8
|
|
|
|
|
- Related: #2001445
|
|
|
|
|
|
|
|
|
|
* Wed Jul 28 2021 Lokesh Mandvekar <lsm5@fedoraproject.org> - 3.2.0-2
|
|
|
|
|
- depend on python3-requests
|
|
|
|
|
- Resolves: #1978415 - initial upload to rhel
|
|
|
|
|