From 9de6fb5ef992990fd21ed11b06f0983443408736074ca5a58ac8efb37be8536d Mon Sep 17 00:00:00 2001 From: Christophe Giboudeaux Date: Sun, 18 Jul 2021 09:19:52 +0000 Subject: [PATCH] conditionally install xvfb and mesa OBS-URL: https://build.opensuse.org/package/show/KDE:Qt5/python3-pyside2?expand=0&rev=52 --- python3-pyside2.spec | 2 ++ 1 file changed, 2 insertions(+) diff --git a/python3-pyside2.spec b/python3-pyside2.spec index 57861f1..403e321 100644 --- a/python3-pyside2.spec +++ b/python3-pyside2.spec @@ -99,8 +99,10 @@ BuildRequires: python3-Sphinx BuildRequires: python3-idna BuildRequires: python3-urllib3 BuildRequires: python3-wheel +%if %{with tests} BuildRequires: xvfb-run BuildRequires: Mesa-dri +%endif %description The PySide2 project provides Python bindings for the Qt