- 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
This commit is contained in:
parent
031be5b6c6
commit
e96d3f3953
19
LICENSE
Normal file
19
LICENSE
Normal file
@ -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.
|
@ -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
|
||||
|
||||
|
@ -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}/*
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user