diff --git a/python-cheroot.changes b/python-cheroot.changes index b811649..31db1eb 100644 --- a/python-cheroot.changes +++ b/python-cheroot.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Sep 2 18:49:49 UTC 2019 - Dan Čermák + +- Drop dependency on backports.functools_lru_cache for the python3 subpackage + This fixes bsc#1149124 + ------------------------------------------------------------------- Sun Jun 2 21:15:22 UTC 2019 - Jan Engelhardt diff --git a/python-cheroot.spec b/python-cheroot.spec index c074ca9..510b54f 100644 --- a/python-cheroot.spec +++ b/python-cheroot.spec @@ -17,14 +17,15 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} -Name: python-cheroot +%define pypi_name cheroot +Name: python-%{pypi_name} Version: 6.5.5 Release: 0 Summary: Pure-python HTTP server License: BSD-3-Clause Group: Development/Languages/Python -URL: https://github.com/cherrypy/cheroot -Source: https://files.pythonhosted.org/packages/source/c/cheroot/cheroot-%{version}.tar.gz +URL: https://github.com/cherrypy/%{pypi_name} +Source: https://files.pythonhosted.org/packages/source/c/%{pypi_name}/%{pypi_name}-%{version}.tar.gz BuildRequires: %{python_module more-itertools >= 2.6} BuildRequires: %{python_module pyOpenSSL} BuildRequires: %{python_module pytest >= 2.8} @@ -55,9 +56,13 @@ Requires: python-backports.functools_lru_cache Cheroot is the pure-Python HTTP server used by CherryPy. %prep -%setup -q -n cheroot-%{version} +%autosetup -n cheroot-%{version} # do not require cov/xdist/etc sed -i -e '/addopts/d' pytest.ini +for file in "%{pypi_name}.egg-info/requires.txt" "setup.cfg"; do + sed -i "s/backports.functools_lru_cache$/backports.functools_lru_cache ; python_version < '3.3'/" \ + "${file}" +done %build %python_build