From 65a6986e5beb0e560444138ca84f57aa4e5d40a2898699fac61cc14e5bb827ab Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Mon, 8 Apr 2019 13:58:31 +0000 Subject: [PATCH] Accepting request 692312 from home:mcepl:branches:devel:languages:python More elegant use of %{with test} OBS-URL: https://build.opensuse.org/request/show/692312 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pycurl?expand=0&rev=62 --- python-pycurl.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python-pycurl.spec b/python-pycurl.spec index 8c24758..4c6ed3e 100644 --- a/python-pycurl.spec +++ b/python-pycurl.spec @@ -119,14 +119,14 @@ nosetests-%{$python_bin_suffix} -v --with-flaky -a "$test_flags" rm -rf %{buildroot}%{_libexecdir}/debug %{buildroot}%{_libdir}/python* %endif # test +%if ! %{with test} %files %{python_files} %license COPYING-LGPL COPYING-MIT %doc AUTHORS ChangeLog README.rst -%if ! %{with test} %{python_sitearch}/* -%endif %files -n %{name}-doc %doc examples doc/*.rst +%endif %changelog