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