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}