From e96d3f39530a45f09ea285643b73d84ae31f5551a8072df18a5ce1072594ee6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Wed, 29 Aug 2018 10:35:35 +0000 Subject: [PATCH] - Add license - Run the tests in a way to work on 42.3 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cookies?expand=0&rev=3 --- LICENSE | 19 +++++++++++++++++++ python-cookies.changes | 6 ++++++ python-cookies.spec | 13 ++++++------- 3 files changed, 31 insertions(+), 7 deletions(-) create mode 100644 LICENSE diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..1dfebbb --- /dev/null +++ b/LICENSE @@ -0,0 +1,19 @@ +Copyright (c) 2011 Sasha Hart. + +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/python-cookies.changes b/python-cookies.changes index 7c39ee4..9701b20 100644 --- a/python-cookies.changes +++ b/python-cookies.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Aug 29 10:33:58 UTC 2018 - tchvatal@suse.com + +- Add license +- Run the tests in a way to work on 42.3 + ------------------------------------------------------------------- Mon Apr 10 08:30:24 UTC 2017 - alarrosa@suse.com diff --git a/python-cookies.spec b/python-cookies.spec index ce841b6..7038543 100644 --- a/python-cookies.spec +++ b/python-cookies.spec @@ -1,7 +1,7 @@ # # spec file for package python-cookies # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 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 @@ -23,17 +23,15 @@ Release: 0 Summary: Friendlier RFC 6265-compliant cookie parser/renderer License: MIT Group: Development/Languages/Python -Url: https://github.com/sashahart/cookies +URL: https://github.com/sashahart/cookies Source: https://files.pythonhosted.org/packages/source/c/cookies/cookies-%{version}.tar.gz # PATCH-FIX-OPENSUSE do-not-install-test_cookies.diff -- Do not install test files Patch0: do-not-install-test_cookies.diff -BuildRequires: %{python_module devel} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} +Source1: https://raw.githubusercontent.com/sashahart/cookies/master/LICENSE BuildRequires: python-rpm-macros -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch - %python_subpackages %description @@ -70,6 +68,7 @@ standard library. %prep %setup -q -n cookies-%{version} %patch0 -p1 +cp %{SOURCE1} . %build %python_build @@ -78,10 +77,10 @@ standard library. %python_install %check -%python_expand pytest-%{$python_version} test_cookies.py +%python_expand py.test-%{$python_version} test_cookies.py %files %{python_files} -%defattr(-,root,root,-) +%license LICENSE %doc README %{python_sitelib}/*