diff --git a/python-websocket-client.spec b/python-websocket-client.spec index a682b77..c577200 100644 --- a/python-websocket-client.spec +++ b/python-websocket-client.spec @@ -108,7 +108,7 @@ ln -s /etc/pki/tls/cert.pem \ %{buildroot}/%{python2_sitelib}/%{modname}/cacert.pem # remove tests that got installed into the buildroot -rm -rf %{buildroot}/%{python2_sitelib}/tests/ +rm -r %{buildroot}%{python2_sitelib}/%{modname}/tests %if 0%{?with_python3} %{__python3} setup.py install -O1 --skip-build --root=%{buildroot} @@ -120,7 +120,7 @@ ln -s /etc/pki/tls/cert.pem \ %{buildroot}/%{python3_sitelib}/%{modname}/cacert.pem # remove tests that got installed into the buildroot -rm -rf %{buildroot}/%{python3_sitelib}/tests/ +rm -r %{buildroot}%{python3_sitelib}/%{modname}/tests %endif # https://fedoraproject.org/wiki/Packaging:Python#Executables_in_.2Fusr.2Fbin @@ -157,6 +157,7 @@ mv %{buildroot}%{_bindir}/wsdump.py %{buildroot}%{_bindir}/wsdump - Latest upstream rhbz#1462523 - Only ship one version of wsdump - Properly install LICENSE file +- Remove tests from buildroot * Sun Dec 17 2017 Zbigniew Jędrzejewski-Szmek - 0.40.0-4 - Python 2 binary package renamed to python2-websocket-client