commit python-websockify for openSUSE:Factory
Hello community, here is the log from the commit of package python-websockify for openSUSE:Factory checked in at 2017-08-29 11:44:11 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-websockify (Old) and /work/SRC/openSUSE:Factory/.python-websockify.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "python-websockify" Tue Aug 29 11:44:11 2017 rev:14 rq:518694 version:0.8.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-websockify/python-websockify.changes 2017-07-25 11:40:45.737241754 +0200 +++ /work/SRC/openSUSE:Factory/.python-websockify.new/python-websockify.changes 2017-08-29 11:44:16.666656187 +0200 @@ -1,0 +2,11 @@ +Fri Aug 25 09:42:56 UTC 2017 - tbechtold@suse.com + +- use https for Source + +------------------------------------------------------------------- +Fri Aug 25 07:57:23 UTC 2017 - tbechtold@suse.com + +- convert to singlespec +- split data files into -common package + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-websockify.spec ++++++ --- /var/tmp/diff_new_pack.daqzvD/_old 2017-08-29 11:44:17.894483103 +0200 +++ /var/tmp/diff_new_pack.daqzvD/_new 2017-08-29 11:44:17.910480847 +0200 @@ -16,6 +16,7 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-websockify Version: 0.8.0 Release: 0 @@ -23,17 +24,23 @@ License: LGPL-3.0 and MPL-2.0 and BSD-2-Clause and BSD-3-Clause Group: Development/Languages/Python Url: https://github.com/kanaka/websockify -Source: http://pypi.python.org/packages/source/w/websockify/websockify-%{version}.tar.gz -BuildRequires: python-devel -BuildRequires: python-setuptools +Source: https://files.pythonhosted.org/packages/source/w/websockify/websockify-%{version}.tar.gz +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: python-rpm-macros BuildRequires: unzip %if 0%{?suse_version} Recommends: python-numpy %endif Requires: python-setuptools +Requires: python-websockify-common = %{version} BuildRoot: %{_tmppath}/%{name}-%{version}-build +Requires(post): update-alternatives +Requires(postun): update-alternatives BuildArch: noarch +%python_subpackages + %description websockify was formerly named wsproxy and was part of the noVNC project. @@ -43,6 +50,22 @@ parses it, and then begins forwarding traffic between the client and the target in both directions. +%package -n python-websockify-common +Summary: Websockify +Group: Development/Languages/Python +Provides: %{python_module websockify-common = %{version}} + +%description -n python-websockify-common +websockify was formerly named wsproxy and was part of the +noVNC project. + +At the most basic level, websockify just translates WebSockets traffic +to normal socket traffic. Websockify accepts the WebSockets handshake, +parses it, and then begins forwarding traffic between the client and +the target in both directions. + +This package contains common files. + %prep %setup -q -n websockify-%{version} # remove unwanted shebang @@ -51,16 +74,26 @@ chmod -x include/web-socket-js/web_socket.js %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install +%python_clone -a %{buildroot}%{_bindir}/websockify + +%post +%python_install_alternative websockify -%files +%postun +%python_uninstall_alternative websockify + +%files %{python_files} %defattr(-,root,root,-) %doc CHANGES.txt LICENSE.txt README.md -%{_bindir}/websockify -%{_datadir}/websockify +%python_alternative %{_bindir}/websockify %{python_sitelib}/* +%files -n python-websockify-common +%doc LICENSE.txt +%{_datadir}/websockify + %changelog
participants (1)
-
root@hilbert.suse.de