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}