diff --git a/python-Logbook.changes b/python-Logbook.changes index 80c5de3..fd8eb9d 100644 --- a/python-Logbook.changes +++ b/python-Logbook.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sat Mar 14 08:12:35 UTC 2020 - Tomáš Chvátal + +- Fix build without python2 + ------------------------------------------------------------------- Wed Jan 15 10:46:40 UTC 2020 - Marketa Calabkova diff --git a/python-Logbook.spec b/python-Logbook.spec index 3c2e4b9..9497d86 100644 --- a/python-Logbook.spec +++ b/python-Logbook.spec @@ -17,12 +17,12 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} +%bcond_without python2 Name: python-Logbook Version: 1.5.3 Release: 0 Summary: A logging replacement for Python License: BSD-3-Clause -Group: Development/Languages/Python URL: https://github.com/getlogbook/logbook Source: https://files.pythonhosted.org/packages/source/L/Logbook/Logbook-%{version}.tar.gz BuildRequires: %{python_module Brotli} @@ -40,7 +40,6 @@ BuildRequires: %{python_module redis} BuildRequires: %{python_module setuptools} BuildRequires: dos2unix BuildRequires: fdupes -BuildRequires: python-mock BuildRequires: python-rpm-macros BuildRequires: redis BuildRequires: util-linux @@ -50,6 +49,9 @@ Recommends: python-execnet >= 1.0.9 Recommends: python-gevent Recommends: python-pyzmq Recommends: python-redis +%if %{with python2} +BuildRequires: python-mock +%endif %python_subpackages %description