forked from pool/python-cookies
- 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:
committed by
Git OBS Bridge
parent
031be5b6c6
commit
e96d3f3953
@@ -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}/*
|
||||
|
||||
|
Reference in New Issue
Block a user