Compare commits

1 Commits
main ... 1.1

2 changed files with 9 additions and 15 deletions

View File

@@ -1,8 +1,3 @@
-------------------------------------------------------------------
Wed May 31 12:38:53 UTC 2023 - Matej Cepl <mcepl@suse.com>
- Clean up SPEC file
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Apr 21 12:23:45 UTC 2023 - Dirk Müller <dmueller@suse.com> Fri Apr 21 12:23:45 UTC 2023 - Dirk Müller <dmueller@suse.com>

View File

@@ -16,6 +16,7 @@
# #
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%{?sle15_python_module_pythons} %{?sle15_python_module_pythons}
Name: python-cookies Name: python-cookies
Version: 2.2.1 Version: 2.2.1
@@ -23,15 +24,14 @@ Release: 0
Summary: Friendlier RFC 6265-compliant cookie parser/renderer Summary: Friendlier RFC 6265-compliant cookie parser/renderer
License: MIT License: MIT
Group: Development/Languages/Python Group: Development/Languages/Python
URL: https://github.com/sashahart/cookies URL: https://gitlab.com/sashahart/cookies
Source: https://files.pythonhosted.org/packages/source/c/cookies/cookies-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/c/cookies/cookies-%{version}.tar.gz
Source1: https://raw.githubusercontent.com/sashahart/cookies/master/LICENSE Source1: https://raw.githubusercontent.com/sashahart/cookies/master/LICENSE
# PATCH-FIX-OPENSUSE do-not-install-test_cookies.diff -- Do not install test files # PATCH-FIX-OPENSUSE do-not-install-test_cookies.diff -- Do not install test files
Patch0: do-not-install-test_cookies.diff Patch0: do-not-install-test_cookies.diff
Patch1: python37.patch Patch1: python37.patch
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytest}
BuildRequires: %{python_module wheel} BuildRequires: %{python_module setuptools}
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
BuildArch: noarch BuildArch: noarch
%python_subpackages %python_subpackages
@@ -68,24 +68,23 @@ This does not compete with the cookielib (http.cookiejar) module in the Python
standard library. standard library.
%prep %prep
%autosetup -p1 -n cookies-%{version} %setup -q -n cookies-%{version}
%autopatch -p1
cp %{SOURCE1} . cp %{SOURCE1} .
%build %build
%pyproject_wheel %python_build
%install %install
%pyproject_install %python_install
%check %check
%pytest test_cookies.py %python_expand py.test-%{$python_version} test_cookies.py
%files %{python_files} %files %{python_files}
%license LICENSE %license LICENSE
%doc README %doc README
%{python_sitelib}/cookies.py %{python_sitelib}/*
%pycache_only %{python_sitelib}/__pycache__/cookies*.pyc
%{python_sitelib}/cookies-%{version}*-info
%changelog %changelog