use easier tag macros to make both fedora and debbuild happy
Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
This commit is contained in:
parent
05112f274f
commit
79915c03ce
@ -5,7 +5,7 @@
|
|||||||
%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 v4.2.0
|
%global built_tag_strip 4.2.0
|
||||||
|
|
||||||
Name: python-%{pypi_name}
|
Name: python-%{pypi_name}
|
||||||
Epoch: 3
|
Epoch: 3
|
||||||
@ -20,7 +20,7 @@ Release: %autorelease
|
|||||||
%endif
|
%endif
|
||||||
Summary: RESTful API for Podman
|
Summary: RESTful API for Podman
|
||||||
URL: https://github.com/containers/%{pypi_name}-py
|
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
|
BuildArch: noarch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -46,7 +46,8 @@ BuildRequires: pyproject-rpm-macros
|
|||||||
%if "%{_vendor}" == "debbuild"
|
%if "%{_vendor}" == "debbuild"
|
||||||
BuildRequires: python%{python3_pkgversion}-xdg
|
BuildRequires: python%{python3_pkgversion}-xdg
|
||||||
Requires: python%{python3_pkgversion}-xdg
|
Requires: python%{python3_pkgversion}-xdg
|
||||||
%else %if 0%{?centos} <= 8
|
%else
|
||||||
|
%if 0%{?centos} <= 8
|
||||||
BuildRequires: python%{python3_pkgversion}-pyxdg
|
BuildRequires: python%{python3_pkgversion}-pyxdg
|
||||||
Requires: python%{python3_pkgversion}-pyxdg
|
Requires: python%{python3_pkgversion}-pyxdg
|
||||||
%endif
|
%endif
|
||||||
@ -54,6 +55,7 @@ Requires: python%{python3_pkgversion}-pyxdg
|
|||||||
BuildRequires: python%{python3_pkgversion}-toml
|
BuildRequires: python%{python3_pkgversion}-toml
|
||||||
Requires: python%{python3_pkgversion}-toml
|
Requires: python%{python3_pkgversion}-toml
|
||||||
%endif
|
%endif
|
||||||
|
%endif
|
||||||
Provides: %{pypi_name}-py = %{version}-%{release}
|
Provides: %{pypi_name}-py = %{version}-%{release}
|
||||||
Summary: %{summary}
|
Summary: %{summary}
|
||||||
%{?python_provide:%python_provide python%{python3_pkgversion}-%{pypi_name}}
|
%{?python_provide:%python_provide python%{python3_pkgversion}-%{pypi_name}}
|
||||||
@ -62,7 +64,7 @@ Summary: %{summary}
|
|||||||
%desc
|
%desc
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -Sgit -n %{pypi_name}-%{version}
|
%autosetup -Sgit -n %{pypi_name}-%{built_tag_strip}
|
||||||
|
|
||||||
%if 0%{?fedora} || 0%{?rhel} >= 9
|
%if 0%{?fedora} || 0%{?rhel} >= 9
|
||||||
%generate_buildrequires
|
%generate_buildrequires
|
||||||
|
Loading…
Reference in New Issue
Block a user