forked from pool/python-websocket-client
Accepting request 511933 from home:TheBlackCat:branches:devel:languages:python
- Fix singlespec macro usage - Fix source URL. OBS-URL: https://build.opensuse.org/request/show/511933 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-websocket-client?expand=0&rev=19
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Jul 21 17:46:23 UTC 2017 - toddrme2178@gmail.com
|
||||||
|
|
||||||
|
- Fix singlespec macro usage
|
||||||
|
- Fix source URL.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Jul 5 05:10:45 UTC 2017 - tbechtold@suse.com
|
Wed Jul 5 05:10:45 UTC 2017 - tbechtold@suse.com
|
||||||
|
|
||||||
|
|||||||
@@ -18,11 +18,13 @@
|
|||||||
|
|
||||||
# RHEL provides this backport in its own repository
|
# RHEL provides this backport in its own repository
|
||||||
%if 0%{?rhel} == 7
|
%if 0%{?rhel} == 7
|
||||||
%define backports python-backports-ssl_match_hostname
|
%define ssl_match_hostname python-backports-ssl_match_hostname
|
||||||
%else
|
%else
|
||||||
%define backports python-backports.ssl_match_hostname
|
%define ssl_match_hostname python-backports.ssl_match_hostname
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
|
%define oldpython python
|
||||||
Name: python-websocket-client
|
Name: python-websocket-client
|
||||||
Version: 0.44.0
|
Version: 0.44.0
|
||||||
Release: 0
|
Release: 0
|
||||||
@@ -30,8 +32,8 @@ Summary: WebSocket client implementation
|
|||||||
License: LGPL-2.1
|
License: LGPL-2.1
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
Url: https://github.com/liris/websocket-client/releases
|
Url: https://github.com/liris/websocket-client/releases
|
||||||
Source0: https://file.pythonhosted.org/packages/source/w/websocket-client/websocket_client-%{version}.tar.gz
|
Source0: https://files.pythonhosted.org/packages/source/w/websocket-client/websocket_client-%{version}.tar.gz
|
||||||
BuildRequires: %backports
|
BuildRequires: %ssl_match_hostname
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: %{python_module six}
|
BuildRequires: %{python_module six}
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
@@ -40,20 +42,19 @@ Requires: python-six
|
|||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(postun): update-alternatives
|
Requires(postun): update-alternatives
|
||||||
%ifpython2
|
%ifpython2
|
||||||
Requires: %backports
|
Requires: %ssl_match_hostname
|
||||||
Provides: python-websocket-client-test = %{version}
|
Provides: %{oldpython}-websocket-client-test = %{version}
|
||||||
Obsoletes: python-websocket-client-test < %{version}
|
Obsoletes: %{oldpython}-websocket-client-test < %{version}
|
||||||
%endif
|
%endif
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
websocket-client module is WebSocket client for python. This provide the
|
The websocket-client module is WebSocket client for python. This provide the
|
||||||
low level APIs for WebSocket. All APIs are the synchronous functions.
|
low level APIs for WebSocket. All APIs are the synchronous functions.
|
||||||
|
|
||||||
websocket-client supports only hybi-13.
|
Websocket-client supports only hybi-13.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n websocket_client-%{version}
|
%setup -q -n websocket_client-%{version}
|
||||||
@@ -64,6 +65,7 @@ websocket-client supports only hybi-13.
|
|||||||
%install
|
%install
|
||||||
%python_install
|
%python_install
|
||||||
%python_clone -a %{buildroot}%{_bindir}/wsdump.py
|
%python_clone -a %{buildroot}%{_bindir}/wsdump.py
|
||||||
|
|
||||||
# Use the system certs
|
# Use the system certs
|
||||||
rm %{buildroot}/%{python_sitelib}/websocket/cacert.pem
|
rm %{buildroot}/%{python_sitelib}/websocket/cacert.pem
|
||||||
|
|
||||||
@@ -79,10 +81,8 @@ rm %{buildroot}/%{python_sitelib}/websocket/cacert.pem
|
|||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc LICENSE README.rst
|
%doc LICENSE README.rst
|
||||||
%dir %{python_sitelib}/websocket
|
|
||||||
%dir %{python_sitelib}/websocket_client-%{version}-py*.egg-info
|
|
||||||
%python_alternative %{_bindir}/wsdump.py
|
%python_alternative %{_bindir}/wsdump.py
|
||||||
%{python_sitelib}/websocket/*
|
%{python_sitelib}/websocket/
|
||||||
%{python_sitelib}/*egg-info/*
|
%{python_sitelib}/websocket_client-%{version}-py*.egg-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
|||||||
Reference in New Issue
Block a user