From ec88c28c93f0b3c44f6bd315a49e4df221060f30 Mon Sep 17 00:00:00 2001 From: Lokesh Mandvekar Date: Thu, 12 Aug 2021 08:46:22 -0400 Subject: [PATCH] update macros for rhcontainerbot autobuilds Signed-off-by: Lokesh Mandvekar --- python-podman.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/python-podman.spec b/python-podman.spec index 090adde..b1d2ee1 100644 --- a/python-podman.spec +++ b/python-podman.spec @@ -1,6 +1,9 @@ %global pypi_name 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} Epoch: 3 Version: 3.1.2.4 @@ -8,7 +11,7 @@ Release: 6%{?dist} Summary: RESTful API for Podman License: ASL 2.0 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 %description @@ -26,7 +29,7 @@ Summary: %{summary} %desc %prep -%autosetup -Sgit_am -n %{pypi_name}-py-%{version} +%autosetup -Sgit_am -n %{pypi_name}-py-%{built_tag_strip} %generate_buildrequires %pyproject_buildrequires %{?with_tests:-t}