Hello community, here is the log from the commit of package python-abseil for openSUSE:Factory checked in at 2020-04-22 20:58:43 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-abseil (Old) and /work/SRC/openSUSE:Factory/.python-abseil.new.2738 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-abseil" Wed Apr 22 20:58:43 2020 rev:6 rq:796253 version:0.9.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-abseil/python-abseil.changes 2020-03-09 11:42:27.121326299 +0100 +++ /work/SRC/openSUSE:Factory/.python-abseil.new.2738/python-abseil.changes 2020-04-22 20:58:43.500070135 +0200 @@ -1,0 +2,5 @@ +Wed Apr 22 10:03:45 UTC 2020 - Tomáš Chvátal <tchva...@suse.com> + +- Fix build without python2 + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-abseil.spec ++++++ --- /var/tmp/diff_new_pack.sJPBTo/_old 2020-04-22 20:58:44.212071553 +0200 +++ /var/tmp/diff_new_pack.sJPBTo/_new 2020-04-22 20:58:44.216071561 +0200 @@ -17,6 +17,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} +%bcond_without python2 Name: python-abseil Version: 0.9.0 Release: 0 @@ -25,11 +26,9 @@ URL: https://github.com/abseil/abseil-py Source0: https://github.com/abseil/abseil-py/archive/pypi-v%{version}.tar.gz BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module six} BuildRequires: fdupes -BuildRequires: python-enum34 -BuildRequires: python-mock BuildRequires: python-rpm-macros -BuildRequires: python-six Requires: python-six BuildArch: noarch %ifpython2 @@ -37,6 +36,10 @@ %endif # SECTION test requirements BuildRequires: %{python_module six} +%if %{with python2} +BuildRequires: python-enum34 +BuildRequires: python-mock +%endif # /SECTION %python_subpackages