From 686d06f96c620a9800d0e5366e65031dd7644139 Mon Sep 17 00:00:00 2001 From: Lokesh Mandvekar Date: Wed, 9 Mar 2022 13:36:36 -0500 Subject: [PATCH] adjust dependencies for centos on podman4 copr Signed-off-by: Lokesh Mandvekar --- python-podman.spec | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/python-podman.spec b/python-podman.spec index a62f0f0..6a2fbe7 100644 --- a/python-podman.spec +++ b/python-podman.spec @@ -19,9 +19,25 @@ BuildArch: noarch %desc %package -n python%{python3_pkgversion}-%{pypi_name} -BuildRequires: pyproject-rpm-macros -BuildRequires: python3-devel BuildRequires: git-core +BuildRequires: python%{python3_pkgversion}-devel +# Handle centos conditionals for podman4 copr +%if 0%{?fedora} +BuildRequires: pyproject-rpm-macros +%else +BuildRequires: python%{python3_pkgversion}-pyxdg +BuildRequires: python%{python3_pkgversion}-requests +BuildRequires: python%{python3_pkgversion}-setuptools +Requires: python%{python3_pkgversion}-pyxdg +Requires: python%{python3_pkgversion}-requests +%if %{?rhel} >= 9 +BuildRequires: python%{python3_pkgversion}-toml +Requires: python%{python3_pkgversion}-toml +%else +BuildRequires: python%{python3_pkgversion}-pytoml +Requires: python%{python3_pkgversion}-pytoml +%endif +%endif Provides: %{pypi_name}-py = %{version}-%{release} Summary: %{summary} %{?python_provide:%python_provide python%{python3_pkgversion}-%{pypi_name}}