From 746fb60f0c080ad04094b37303ae0cc30000d6ac6a6f9306f75784a386287404 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Mon, 17 Sep 2018 13:03:22 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-hypothesis?expand=0&rev=83 --- python-hypothesis.spec | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/python-hypothesis.spec b/python-hypothesis.spec index 1c122cc..2305f69 100644 --- a/python-hypothesis.spec +++ b/python-hypothesis.spec @@ -12,7 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # @@ -92,12 +92,14 @@ work on Jython or on Python 3.0 through 3.2. %python_build %install +%if !%{with test} %python_install %{python_expand \ $python -m compileall -d %{$python_sitelib} %{buildroot}%{$python_sitelib}/hypothesis/ $python -O -m compileall -d %{$python_sitelib} %{buildroot}%{$python_sitelib}/hypothesis/ %fdupes %{buildroot}%{$python_sitelib} } +%endif %check %if %{with test} && ! %{with python2}