From fe12e885811526dccb8a9eb541e069044fb6d73a Mon Sep 17 00:00:00 2001 From: Lokesh Mandvekar Date: Tue, 14 Jun 2022 09:22:34 -0400 Subject: [PATCH] adjust dependencies Signed-off-by: Lokesh Mandvekar --- python-podman.spec | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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