14
0
forked from pool/python-pycurl

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
This commit is contained in:
2019-04-08 13:58:31 +00:00
committed by Git OBS Bridge
parent 8fe46206a5
commit 65a6986e5b

View File

@@ -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