commit python-websocket-client for openSUSE:Factory
![](https://seccdn.libravatar.org/avatar/e2145bc5cf53dda95c308a3c75e8fef3.jpg?s=120&d=mm&r=g)
Hello community, here is the log from the commit of package python-websocket-client for openSUSE:Factory checked in at 2016-04-28 16:53:41 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-websocket-client (Old) and /work/SRC/openSUSE:Factory/.python-websocket-client.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "python-websocket-client" Changes: -------- --- /work/SRC/openSUSE:Factory/python-websocket-client/python-websocket-client.changes 2016-01-23 01:16:51.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.python-websocket-client.new/python-websocket-client.changes 2016-04-28 16:56:45.000000000 +0200 @@ -1,0 +2,5 @@ +Tue Apr 12 07:57:30 UTC 2016 - andrea@opensuse.org + +- added update-alternatives to allow the python3 version to be installed + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-websocket-client.spec ++++++ --- /var/tmp/diff_new_pack.Dn0iUz/_old 2016-04-28 16:56:46.000000000 +0200 +++ /var/tmp/diff_new_pack.Dn0iUz/_new 2016-04-28 16:56:46.000000000 +0200 @@ -37,6 +37,8 @@ Requires: %backports Requires: python Requires: python-six +Requires(post): update-alternatives +Requires(postun): update-alternatives BuildRoot: %{_tmppath}/%{name}-%{version}-build %if 0%{?suse_version} && 0%{?suse_version} <= 1110 BuildRequires: python-argparse @@ -70,19 +72,36 @@ python setup.py install --prefix=%{_prefix} --root=%{buildroot} # Use the system certs rm %{buildroot}/%{python_sitelib}/websocket/cacert.pem +# update alternatives +mv %{buildroot}%{_bindir}/wsdump.py %{buildroot}%{_bindir}/wsdump.py-%{py_ver} +mkdir -p %{buildroot}%{_sysconfdir}/alternatives +touch %{buildroot}%{_sysconfdir}/alternatives/wsdump.py +ln -sf %{_sysconfdir}/alternatives/wsdump.py %{buildroot}/%{_bindir}/wsdump.py %check python websocket/tests/test_websocket.py +%post +update-alternatives \ + --install %{_bindir}/wsdump.py wsdump.py %{_bindir}/wsdump.py-%{py_ver} 20 + +%postun +if [ $1 -eq 0 ] ; then + update-alternatives --remove wsdump.py %{_bindir}/wsdump.py-%{py_ver} +fi + + %files %defattr(-,root,root,-) %doc LICENSE README.rst %dir %{python_sitelib}/websocket %dir %{python_sitelib}/websocket_client-%{version}-py*.egg-info %{_bindir}/wsdump.py +%{_bindir}/wsdump.py-%{py_ver} %exclude %{python_sitelib}/websocket/tests/ %{python_sitelib}/websocket/* %{python_sitelib}/*egg-info/* +%ghost %{_sysconfdir}/alternatives/wsdump.py %files test %defattr(-,root,root,-)
participants (1)
-
root@hilbert.suse.de