From 73dd6bc88a1481b612e56160b22233b6fa6a628f Mon Sep 17 00:00:00 2001 From: Yaakov Selkowitz Date: Wed, 9 Aug 2023 02:04:35 -0400 Subject: [PATCH] Skip python-pytest-xdist in RHEL builds python-pytest-xdist is unwanted in RHEL builds due to its dependencies. It is used only to support the pytest "-n auto" flag to enable parallel testing, but the tests are still run (serially) without it. --- xdg-desktop-portal.spec | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xdg-desktop-portal.spec b/xdg-desktop-portal.spec index 9304ef6..de3f010 100644 --- a/xdg-desktop-portal.spec +++ b/xdg-desktop-portal.spec @@ -28,7 +28,9 @@ BuildRequires: pkgconfig(libsystemd) BuildRequires: python3-dbusmock BuildRequires: python3-gobject-base BuildRequires: python3-pytest +%if %{undefined rhel} BuildRequires: python3-pytest-xdist +%endif BuildRequires: /usr/bin/xmlto Requires: dbus