14
0

Accepting request 307133 from home:benoit_monin:branches:devel:languages:python

- update to version 0.6.1
- switch archive to zip (tar.gz not available on pypi)
- add unzip as BuildRequires
- remove unwanted shebang in python files
- drop unneeded executable bit of web_socket.js

OBS-URL: https://build.opensuse.org/request/show/307133
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-websockify?expand=0&rev=12
This commit is contained in:
Jan Matejek
2015-05-18 13:36:05 +00:00
committed by Git OBS Bridge
parent 9bd1f711fd
commit 8e24acf579
4 changed files with 22 additions and 6 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-websockify
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,15 +17,16 @@
Name: python-websockify
Version: 0.6.0
Version: 0.6.1
Release: 0
Summary: Websockify
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
Source: http://pypi.python.org/packages/source/w/websockify/websockify-%{version}.zip
BuildRequires: python-devel
BuildRequires: python-setuptools
BuildRequires: unzip
Recommends: python-numpy
Requires: python-pyOpenSSL
BuildRoot: %{_tmppath}/%{name}-%{version}-build
@@ -46,6 +47,10 @@ the target in both directions.
%prep
%setup -q -n websockify-%{version}
# remove unwanted shebang
sed -i '1 { /^#!/ d }' websockify/websocket*.py
# drop unneeded executable bit
chmod -x include/web-socket-js/web_socket.js
%build
python setup.py build