Hello community, here is the log from the commit of package python-cheroot for openSUSE:Factory checked in at 2020-03-27 00:25:15 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-cheroot (Old) and /work/SRC/openSUSE:Factory/.python-cheroot.new.3160 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-cheroot" Fri Mar 27 00:25:15 2020 rev:11 rq:785565 version:8.3.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-cheroot/python-cheroot.changes 2020-03-08 22:23:01.892036520 +0100 +++ /work/SRC/openSUSE:Factory/.python-cheroot.new.3160/python-cheroot.changes 2020-03-27 00:25:19.176257478 +0100 @@ -1,0 +2,5 @@ +Mon Mar 16 10:23:16 UTC 2020 - Tomáš Chvátal <tchva...@suse.com> + +- Fix build without python2 + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-cheroot.spec ++++++ --- /var/tmp/diff_new_pack.6LddNX/_old 2020-03-27 00:25:20.564258181 +0100 +++ /var/tmp/diff_new_pack.6LddNX/_new 2020-03-27 00:25:20.564258181 +0100 @@ -18,6 +18,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define pypi_name cheroot +%bcond_without python2 Name: python-%{pypi_name} Version: 8.3.0 Release: 0 @@ -39,7 +40,6 @@ BuildRequires: %{python_module six >= 1.11.0} BuildRequires: %{python_module trustme} BuildRequires: fdupes -BuildRequires: python-backports.functools_lru_cache BuildRequires: python-rpm-macros Requires: python-jaraco.functools Requires: python-more-itertools >= 2.6 @@ -49,6 +49,9 @@ # *smacks head against desk* Provides: python-Cheroot = %{version} BuildArch: noarch +%if %{with python2} +BuildRequires: python-backports.functools_lru_cache +%endif %ifpython2 Requires: python-backports.functools_lru_cache %endif