diff --git a/python-pydocstyle.changes b/python-pydocstyle.changes index 200dabe..a9a280f 100644 --- a/python-pydocstyle.changes +++ b/python-pydocstyle.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Mar 1 11:13:40 UTC 2019 - Hans-Peter Jansen + +- don't run tests, if they're disabled from build conditional + ------------------------------------------------------------------- Tue Dec 4 12:52:06 UTC 2018 - Matej Cepl diff --git a/python-pydocstyle.spec b/python-pydocstyle.spec index 2ed3d2e..c52f6b7 100644 --- a/python-pydocstyle.spec +++ b/python-pydocstyle.spec @@ -1,7 +1,7 @@ # # spec file for package python-pydocstyle # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -66,6 +66,7 @@ conventions. %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} +%if %{with test} %check mkdir empty pushd empty @@ -74,6 +75,7 @@ $python -c "import pydocstyle" $python -c "from pydocstyle import *" } popd +%endif %files %{python_files} %defattr(-,root,root,-)