From abcdec0cc4c6e03e05d7907ae1639d51cafca308 Mon Sep 17 00:00:00 2001 From: Lokesh Mandvekar Date: Wed, 9 Mar 2022 14:14:51 -0500 Subject: [PATCH] fix error in conditionals Signed-off-by: Lokesh Mandvekar --- python-podman.spec | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/python-podman.spec b/python-podman.spec index be66b33..6c33e49 100644 --- a/python-podman.spec +++ b/python-podman.spec @@ -21,10 +21,7 @@ BuildArch: noarch %package -n python%{python3_pkgversion}-%{pypi_name} BuildRequires: git-core BuildRequires: python%{python3_pkgversion}-devel -# Handle centos conditionals for podman4 copr -%if 0%{?fedora} -BuildRequires: pyproject-rpm-macros -%else +# Handle rhel/centos 8 stream conditionals for podman4 copr %if %{?rhel} <= 8 BuildRequires: python%{python3_pkgversion}-pytoml BuildRequires: python%{python3_pkgversion}-pyxdg @@ -33,6 +30,8 @@ BuildRequires: python%{python3_pkgversion}-setuptools Requires: python%{python3_pkgversion}-pytoml Requires: python%{python3_pkgversion}-pyxdg Requires: python%{python3_pkgversion}-requests +%else +BuildRequires: pyproject-rpm-macros %endif Provides: %{pypi_name}-py = %{version}-%{release} Summary: %{summary}