15
0

- Update to 1.10:

* no upstream changelog
- Drop merged add-license.patch

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-certstream?expand=0&rev=7
This commit is contained in:
Tomáš Chvátal
2019-03-06 19:55:10 +00:00
committed by Git OBS Bridge
parent 47cd4b84d6
commit f9aea4a0e4
5 changed files with 26 additions and 51 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-certstream
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2019 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,53 +17,45 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%{!?license: %global license %doc}
%bcond_without tests
Name: python-certstream
Version: 1.9
Version: 1.10
Release: 0
Summary: CertStream is a library for receiving certificate transparency list updates
License: MIT
Group: Development/Libraries/Python
Url: https://github.com/CaliDog/certstream-python/
Source0: https://pypi.io/packages/source/c/certstream/certstream-%{version}.tar.gz
# PATCH-FIX-OPENSUSE add-license.patch
Patch0: add-license.patch
URL: https://github.com/CaliDog/certstream-python/
Source0: https://files.pythonhosted.org/packages/source/c/certstream/certstream-%{version}.tar.gz
BuildRequires: %{python_module setuptools >= 18.0.1}
#SECTION tests
BuildRequires: %{python_module termcolor}
BuildRequires: %{python_module websocket-client >= 0.48.0}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
#SECTION tests
%if %{with tests}
BuildRequires: %{python_module termcolor}
BuildRequires: %{python_module websocket-client}
%endif
# /SECTION
Requires: python3-termcolor
Requires: python3-websocket-client
Requires: python3-websocket-client >= 0.48.0
BuildArch: noarch
%python_subpackages
%description
Certstream is a library to connect to the certstream network (certstream.calidog.io).
Certstream is a library to connect to the certstream network (certstream.calidog.io).
It supports automatic reconnection when networks issues occur, and should be stable for long-running jobs.
It supports automatic reconnection when networks issues occur, and should be stable for long-running jobs.
%prep
%setup -q -n certstream-%{version}
%patch0 -p1
# do not hardcode dependencies
sed -i -e 's:==:>=:g' requirements.txt
%build
%{python_build}
%python_build
%install
%{python_install}
%{python_expand %fdupes -s %{buildroot}%{$python_sitelib}}
%python_install
%python_expand %fdupes -s %{buildroot}%{$python_sitelib}
%if %{with tests}
%check
%python_exec setup.py test
%endif
# there are no tests
%files %{python_files}
%doc README.md