2021-06-09 16:04:46 +00:00
|
|
|
%global pypi_name podman
|
|
|
|
%global desc %{pypi_name} is a library of bindings to use the RESTful API for Podman.
|
|
|
|
|
2022-09-09 13:15:58 +00:00
|
|
|
%global pypi_dist 4
|
2023-05-31 16:02:03 +00:00
|
|
|
%global built_tag v4.5.1
|
2022-10-05 18:21:46 +00:00
|
|
|
%global built_tag_strip %(b=%{built_tag}; echo ${b:1})
|
|
|
|
%global gen_version %(b=%{built_tag_strip}; echo ${b/-/"~"})
|
2021-08-12 12:46:22 +00:00
|
|
|
|
2021-06-09 16:04:46 +00:00
|
|
|
Name: python-%{pypi_name}
|
|
|
|
Epoch: 3
|
2022-10-05 18:21:46 +00:00
|
|
|
Version: %{gen_version}
|
2023-03-06 12:28:03 +00:00
|
|
|
License: Apache-2.0
|
2022-01-27 19:09:29 +00:00
|
|
|
Release: %autorelease
|
2021-06-09 16:04:46 +00:00
|
|
|
Summary: RESTful API for Podman
|
|
|
|
URL: https://github.com/containers/%{pypi_name}-py
|
2022-10-05 18:21:46 +00:00
|
|
|
# Tarball fetched from upstream
|
2022-10-21 09:40:32 +00:00
|
|
|
Source0: %{url}/archive/%{built_tag}.tar.gz
|
2021-06-09 16:04:46 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
|
2022-08-29 22:41:36 +00:00
|
|
|
%description
|
2021-06-09 16:04:46 +00:00
|
|
|
%desc
|
|
|
|
|
|
|
|
%package -n python%{python3_pkgversion}-%{pypi_name}
|
|
|
|
BuildRequires: git-core
|
2022-03-09 18:36:36 +00:00
|
|
|
BuildRequires: python%{python3_pkgversion}-devel
|
2022-03-09 19:14:51 +00:00
|
|
|
BuildRequires: pyproject-rpm-macros
|
2022-08-29 22:41:36 +00:00
|
|
|
BuildRequires: python%{python3_pkgversion}-requests
|
2022-03-09 20:13:51 +00:00
|
|
|
BuildRequires: python%{python3_pkgversion}-toml
|
2022-08-29 22:41:36 +00:00
|
|
|
Requires: python%{python3_pkgversion}-requests
|
2022-03-09 20:13:51 +00:00
|
|
|
Requires: python%{python3_pkgversion}-toml
|
2021-06-09 16:04:46 +00:00
|
|
|
Provides: %{pypi_name}-py = %{version}-%{release}
|
2022-09-09 13:15:58 +00:00
|
|
|
Provides: python%{python3_pkgversion}dist(%{pypi_name}) = %{pypi_dist}
|
|
|
|
Provides: python%{python3_version}dist(%{pypi_name}) = %{pypi_dist}
|
2022-09-15 12:39:34 +00:00
|
|
|
Obsoletes: python%{python3_pkgversion}-%{pypi_name}-api <= 0.0.0-1
|
2022-09-15 12:47:44 +00:00
|
|
|
Provides: python%{python3_pkgversion}-%{pypi_name}-api = %{epoch}:%{version}-%{release}
|
2021-06-09 16:04:46 +00:00
|
|
|
Summary: %{summary}
|
|
|
|
%{?python_provide:%python_provide python%{python3_pkgversion}-%{pypi_name}}
|
|
|
|
|
|
|
|
%description -n python%{python3_pkgversion}-%{pypi_name}
|
|
|
|
%desc
|
|
|
|
|
|
|
|
%prep
|
2022-10-21 09:40:32 +00:00
|
|
|
%autosetup -Sgit -n %{pypi_name}-py-%{built_tag_strip}
|
2021-06-09 16:04:46 +00:00
|
|
|
|
|
|
|
%generate_buildrequires
|
|
|
|
%pyproject_buildrequires %{?with_tests:-t}
|
|
|
|
|
|
|
|
%build
|
|
|
|
export PBR_VERSION="0.0.0"
|
|
|
|
%pyproject_wheel
|
|
|
|
|
|
|
|
%install
|
|
|
|
export PBR_VERSION="0.0.0"
|
|
|
|
%pyproject_install
|
|
|
|
%pyproject_save_files %{pypi_name}
|
|
|
|
|
|
|
|
%files -n python%{python3_pkgversion}-%{pypi_name} -f %{pyproject_files}
|
|
|
|
%license LICENSE
|
|
|
|
%doc README.md
|
|
|
|
|
|
|
|
%changelog
|
2022-01-27 19:09:29 +00:00
|
|
|
%autochangelog
|