do not package tests as documentation

This commit is contained in:
Lukáš Zaoral 2023-09-15 13:36:54 +02:00
parent 3151ceb8bf
commit 107d5625fc
No known key found for this signature in database
GPG Key ID: 39157506DD67752D

View File

@ -23,7 +23,7 @@
Name: python-%{modname}
Version: 7.45.2
Release: 6%{?dist}
Release: 7%{?dist}
Summary: A Python interface to libcurl
License: curl OR LGPL-2.1-or-later
@ -140,14 +140,12 @@ export PYCURL_SSL_LIBRARY=openssl
export PYCURL_VSFTPD_PATH=vsftpd
export PYTEST_ADDOPTS="--ignore examples -m 'not online'"
make test PYTHON=%{__python3} PYTEST=%{pytest} PYFLAKES=true
rm -fv tests/fake-curl/libcurl/*.so
rm -fvr tests/__pycache__
%endif
%if %{with python2}
%files -n python2-%{modname}
%license COPYING-LGPL COPYING-MIT
%doc ChangeLog README.rst examples doc tests
%doc ChangeLog README.rst examples doc
%{python2_sitearch}/curl/
%{python2_sitearch}/%{modname}.so
%{python2_sitearch}/%{modname}-%{version}-*.egg-info
@ -156,13 +154,16 @@ rm -fvr tests/__pycache__
%if %{with python3}
%files -n python3-%{modname}
%license COPYING-LGPL COPYING-MIT
%doc ChangeLog README.rst examples doc tests
%doc ChangeLog README.rst examples doc
%{python3_sitearch}/curl/
%{python3_sitearch}/%{modname}.*.so
%{python3_sitearch}/%{modname}-%{version}-*.egg-info
%endif
%changelog
* Fri Sep 15 2023 Lukáš Zaoral <lzaoral@redhat.com> - 7.45.2-7
- do not package tests as documentation
* Fri Sep 15 2023 Lukáš Zaoral <lzaoral@redhat.com> - 7.45.2-6
- migrate to SPDX license format