fix error in conditionals

Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
This commit is contained in:
Lokesh Mandvekar 2022-03-09 14:14:51 -05:00
parent 9b3a95f0ea
commit abcdec0cc4

View File

@ -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}