From c8ffcaf2afb93a40bd3b7cb60df763dcc3210c13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Pierret=20=28fepitre=29?= Date: Sat, 8 Aug 2020 12:38:24 +0200 Subject: [PATCH] spec: add bcond for check MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Frédéric Pierret (fepitre) --- pyxdg.spec | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pyxdg.spec b/pyxdg.spec index f38371e..0cf4003 100644 --- a/pyxdg.spec +++ b/pyxdg.spec @@ -1,3 +1,5 @@ +%bcond_without tests + Name: pyxdg Version: 0.26 Release: 11%{?dist} @@ -19,8 +21,10 @@ PyXDG is a python library to access freedesktop.org standards %package -n python%{python3_pkgversion}-pyxdg Summary: Python3 library to access freedesktop.org standards BuildRequires: python%{python3_pkgversion}-devel +%if %{with check} # These are needed for the nose tests. BuildRequires: python%{python3_pkgversion}-nose +%endif %{?python_provide:%python_provide python%{python3_pkgversion}-pyxdg} %description -n python%{python3_pkgversion}-pyxdg @@ -38,10 +42,12 @@ package contains a Python 3 version of PyXDG. %install %py3_install +%if %{with check} %check # icon-test currently fails # https://bugs.freedesktop.org/show_bug.cgi?id=104846 nosetests-%{python3_version} || : +%endif %files -n python%{python3_pkgversion}-pyxdg %license COPYING