From 360d11f5b860e01a9889b7a8bdae8419ca0fa13a Mon Sep 17 00:00:00 2001 From: Carl George Date: Jan 02 2018 16:18:08 +0000 Subject: remove unnecessary steps --- diff --git a/python-websocket-client.spec b/python-websocket-client.spec index afc03f4..a682b77 100644 --- a/python-websocket-client.spec +++ b/python-websocket-client.spec @@ -83,20 +83,12 @@ python-websocket-client supports only hybi-13. %prep %setup -q -n %{eggname}-%{version} -# Remove bundled egg-info in case it exists -rm -rf %{distname}.egg-info -rm -rf %{eggname}.egg-info +rm -r %{eggname}.egg-info -%if 0%{?with_python3} -rm -rf %{py3dir} -cp -a . %{py3dir} -%endif %build %if 0%{?with_python3} -pushd %{py3dir} %{__python3} setup.py build -popd %endif %{__python2} setup.py build @@ -118,11 +110,7 @@ ln -s /etc/pki/tls/cert.pem \ # remove tests that got installed into the buildroot rm -rf %{buildroot}/%{python2_sitelib}/tests/ -# Remove executable bit from installed files. -find %{buildroot}/%{python2_sitelib} -type f -exec chmod -x {} \; - %if 0%{?with_python3} -pushd %{py3dir} %{__python3} setup.py install -O1 --skip-build --root=%{buildroot} # unbundle cacert @@ -133,10 +121,6 @@ ln -s /etc/pki/tls/cert.pem \ # remove tests that got installed into the buildroot rm -rf %{buildroot}/%{python3_sitelib}/tests/ - -# Remove executable bit from installed files. -find %{buildroot}/%{python3_sitelib} -type f -exec chmod -x {} \; -popd %endif # https://fedoraproject.org/wiki/Packaging:Python#Executables_in_.2Fusr.2Fbin @@ -145,9 +129,7 @@ mv %{buildroot}%{_bindir}/wsdump.py %{buildroot}%{_bindir}/wsdump %check %if 0%{?with_python3} -pushd %{py3dir} %{__python3} setup.py test -popd %endif %{__python2} setup.py test