diff --git a/python-podman.spec b/python-podman.spec index 92fb782..f4df5d2 100644 --- a/python-podman.spec +++ b/python-podman.spec @@ -5,7 +5,7 @@ %global pypi_name podman %global desc %{pypi_name} is a library of bindings to use the RESTful API for Podman. -%global built_tag v4.2.0 +%global built_tag_strip 4.2.0 Name: python-%{pypi_name} Epoch: 3 @@ -20,7 +20,7 @@ Release: %autorelease %endif Summary: RESTful API for Podman URL: https://github.com/containers/%{pypi_name}-py -Source0: %{url}/releases/download/%{built_tag}/%{pypi_name}-%{version}.tar.gz +Source0: %{url}/releases/download/v%{built_tag_strip}/%{pypi_name}-%{version}.tar.gz BuildArch: noarch %description @@ -46,7 +46,8 @@ BuildRequires: pyproject-rpm-macros %if "%{_vendor}" == "debbuild" BuildRequires: python%{python3_pkgversion}-xdg Requires: python%{python3_pkgversion}-xdg -%else %if 0%{?centos} <= 8 +%else +%if 0%{?centos} <= 8 BuildRequires: python%{python3_pkgversion}-pyxdg Requires: python%{python3_pkgversion}-pyxdg %endif @@ -54,6 +55,7 @@ Requires: python%{python3_pkgversion}-pyxdg BuildRequires: python%{python3_pkgversion}-toml Requires: python%{python3_pkgversion}-toml %endif +%endif Provides: %{pypi_name}-py = %{version}-%{release} Summary: %{summary} %{?python_provide:%python_provide python%{python3_pkgversion}-%{pypi_name}} @@ -62,7 +64,7 @@ Summary: %{summary} %desc %prep -%autosetup -Sgit -n %{pypi_name}-%{version} +%autosetup -Sgit -n %{pypi_name}-%{built_tag_strip} %if 0%{?fedora} || 0%{?rhel} >= 9 %generate_buildrequires