From 99c2a859e03b28bd93aa3595feca83f8268f3e5c8ebabdbabce7f36e8f283f35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Fri, 8 Dec 2017 13:12:53 +0000 Subject: [PATCH] Accepting request 554967 from home:sebix can also maintain it now with patched-in license as requested OBS-URL: https://build.opensuse.org/request/show/554967 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-certstream?expand=0&rev=1 --- .gitattributes | 23 ++++++++++++ .gitignore | 1 + add-license.patch | 24 +++++++++++++ certstream-1.8.tar.gz | 3 ++ python-certstream.changes | 9 +++++ python-certstream.spec | 75 +++++++++++++++++++++++++++++++++++++++ 6 files changed, 135 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 add-license.patch create mode 100644 certstream-1.8.tar.gz create mode 100644 python-certstream.changes create mode 100644 python-certstream.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/add-license.patch b/add-license.patch new file mode 100644 index 0000000..435ffbf --- /dev/null +++ b/add-license.patch @@ -0,0 +1,24 @@ +--- - 2017-12-07 11:28:01.643656998 +0100 ++++ certstream-1.8/LICENSE 2017-12-07 11:27:54.334676024 +0100 +@@ -0,0 +1,21 @@ ++MIT License ++ ++Copyright (c) 2017 Cali Dog Security ++ ++Permission is hereby granted, free of charge, to any person obtaining a copy ++of this software and associated documentation files (the "Software"), to deal ++in the Software without restriction, including without limitation the rights ++to use, copy, modify, merge, publish, distribute, sublicense, and/or sell ++copies of the Software, and to permit persons to whom the Software is ++furnished to do so, subject to the following conditions: ++ ++The above copyright notice and this permission notice shall be included in all ++copies or substantial portions of the Software. ++ ++THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR ++IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, ++FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE ++AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER ++LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, ++OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE ++SOFTWARE. diff --git a/certstream-1.8.tar.gz b/certstream-1.8.tar.gz new file mode 100644 index 0000000..69c188e --- /dev/null +++ b/certstream-1.8.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:19c7ad39640956591e977ffbe99025ee8255a2ffe84ffcfa41d3cbdf8cfb4d3c +size 8626 diff --git a/python-certstream.changes b/python-certstream.changes new file mode 100644 index 0000000..f756f95 --- /dev/null +++ b/python-certstream.changes @@ -0,0 +1,9 @@ +------------------------------------------------------------------- +Thu Dec 7 10:29:18 UTC 2017 - sebix+novell.com@sebix.at + +- add add-license.patch to add LICENSE file + +------------------------------------------------------------------- +Sat Dec 2 19:41:39 UTC 2017 - sebix+novell.com@sebix.at + +- initial package for version 1.8 diff --git a/python-certstream.spec b/python-certstream.spec new file mode 100644 index 0000000..3790467 --- /dev/null +++ b/python-certstream.spec @@ -0,0 +1,75 @@ +# +# spec file for package python-certstream +# +# Copyright (c) 2017 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 +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%{!?license: %global license %doc} +%bcond_without tests +Name: python-certstream +Version: 1.8 +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 +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools >= 18.0.1} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +#SECTION tests +%if %{with tests} +BuildRequires: %{python_module termcolor} +BuildRequires: %{python_module websocket-client} +%endif +# /SECTION +Requires: python3-websocket-client +Requires: python3-termcolor +BuildArch: noarch + +%python_subpackages + +%description +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. + +%prep +%setup -q -n certstream-%{version} +%patch0 -p1 + +%build +%{python_build} + +%install +%{python_install} +%{python_expand %fdupes -s %{buildroot}%{$python_sitelib}} + +%if %{with tests} +%check +%python_exec setup.py test +%endif + +%files %{python_files} +%doc README.md +%license LICENSE +%{python_sitelib}/certstream/ +%{python_sitelib}/certstream-%{version}-py*.egg-info +%python3_only %{_bindir}/certstream + +%changelog