From 101985d11ca4b6785476a8e52665fc9e72301c8c727aba6e7812b4ef13c2e79a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Fri, 5 Apr 2019 08:16:00 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-zope.exceptions?expand=0&rev=18 --- python-zope.exceptions.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/python-zope.exceptions.spec b/python-zope.exceptions.spec index 0f49297..ea4fbe0 100644 --- a/python-zope.exceptions.spec +++ b/python-zope.exceptions.spec @@ -58,17 +58,21 @@ general purpose that they don't belong in Zope application-specific packages. %python_build %install +%if !%{with test} %python_install -%python_expand %fdupes -s %{buildroot}%{$python_sitelib} +%python_expand %fdupes %{buildroot}%{$python_sitelib} +%endif %if %{with test} %check %python_expand %{_bindir}/zope-testrunner-%{$python_bin_suffix} -vvv --test-path src %endif +%if !%{with test} %files %{python_files} %license LICENSE.txt %doc CHANGES.rst COPYRIGHT.txt README.rst %{python_sitelib}/* +%endif %changelog