From 8ca4d180e4f8f7600843a1e2d1276d420b75f0f62372434c0ffb972e9dc16659 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 4 Dec 2018 17:25:42 +0000 Subject: [PATCH] Clean up the SPEC file OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-websockify?expand=0&rev=31 --- python-websockify.spec | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/python-websockify.spec b/python-websockify.spec index 0b609df..a7f9176 100644 --- a/python-websockify.spec +++ b/python-websockify.spec @@ -23,7 +23,7 @@ Release: 0 Summary: WebSocket to TCP proxy/bridge License: LGPL-3.0-only AND MPL-2.0 AND BSD-2-Clause AND BSD-3-Clause Group: Development/Languages/Python -Url: https://github.com/kanaka/websockify +URL: https://github.com/kanaka/websockify Source: https://files.pythonhosted.org/packages/source/w/websockify/websockify-%{version}.tar.gz # PATCH-FEATURE-UPSTREAM u_Add-support-for-inetd.patch fate#323880 msrb@suse.com -- https://github.com/novnc/websockify/pull/293 Patch1: u_Add-support-for-inetd.patch @@ -32,16 +32,14 @@ Patch2: u_Fix-inetd-mode-on-python-2.patch 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 - +%if 0%{?suse_version} +Recommends: python-numpy +%endif %python_subpackages %description @@ -92,13 +90,13 @@ chmod -x include/web-socket-js/web_socket.js %python_uninstall_alternative websockify %files %{python_files} -%defattr(-,root,root,-) -%doc CHANGES.txt LICENSE.txt README.md +%license LICENSE.txt +%doc CHANGES.txt README.md %python_alternative %{_bindir}/websockify %{python_sitelib}/* %files -n python-websockify-common -%doc LICENSE.txt +%license LICENSE.txt %{_datadir}/websockify %changelog