update macros for rhcontainerbot autobuilds

Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
This commit is contained in:
Lokesh Mandvekar 2021-08-12 08:46:22 -04:00
parent 7882cbbcf5
commit ec88c28c93

View File

@ -1,6 +1,9 @@
%global pypi_name podman %global pypi_name podman
%global desc %{pypi_name} is a library of bindings to use the RESTful API for Podman. %global desc %{pypi_name} is a library of bindings to use the RESTful API for Podman.
%global built_tag v3.1.2.4
%global built_tag_strip %(b=%{built_tag}; echo ${b:1})
Name: python-%{pypi_name} Name: python-%{pypi_name}
Epoch: 3 Epoch: 3
Version: 3.1.2.4 Version: 3.1.2.4
@ -8,7 +11,7 @@ Release: 6%{?dist}
Summary: RESTful API for Podman Summary: RESTful API for Podman
License: ASL 2.0 License: ASL 2.0
URL: https://github.com/containers/%{pypi_name}-py URL: https://github.com/containers/%{pypi_name}-py
Source0: %{url}/archive/%{version}/%{pypi_name}-py-%{version}.tar.gz Source0: %{url}/archive/%{version}.tar.gz
BuildArch: noarch BuildArch: noarch
%description %description
@ -26,7 +29,7 @@ Summary: %{summary}
%desc %desc
%prep %prep
%autosetup -Sgit_am -n %{pypi_name}-py-%{version} %autosetup -Sgit_am -n %{pypi_name}-py-%{built_tag_strip}
%generate_buildrequires %generate_buildrequires
%pyproject_buildrequires %{?with_tests:-t} %pyproject_buildrequires %{?with_tests:-t}