diff --git a/python-podman.spec b/python-podman.spec index ea6f42d..cb3da02 100644 --- a/python-podman.spec +++ b/python-podman.spec @@ -38,13 +38,18 @@ BuildRequires: python%{python3_pkgversion}-devel BuildRequires: python%{python3_pkgversion}-pytoml BuildRequires: python%{python3_pkgversion}-requests BuildRequires: python%{python3_pkgversion}-setuptools -BuildRequires: python%{python3_pkgversion}-xdg Requires: python%{python3_pkgversion}-pytoml Requires: python%{python3_pkgversion}-requests -Requires: python%{python3_pkgversion}-xdg %else BuildRequires: pyproject-rpm-macros %endif +%if %{_vendor} == "debbuild" +BuildRequires: python%{python3_pkgversion}-xdg +Requires: python%{python3_pkgversion}-xdg +%else %if 0%{?centos} <= 8 +BuildRequires: python%{python3_pkgversion}-pyxdg +Requires: python%{python3_pkgversion}-pyxdg +%endif %if 0%{?fedora} == 35 BuildRequires: python%{python3_pkgversion}-toml Requires: python%{python3_pkgversion}-toml