diff --git a/python-freezegun.changes b/python-freezegun.changes index f0e9d7b..c408d97 100644 --- a/python-freezegun.changes +++ b/python-freezegun.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Mar 11 17:29:52 UTC 2020 - Tomáš Chvátal + +- Fix build without python2 available + ------------------------------------------------------------------- Wed Mar 11 08:59:55 UTC 2020 - Dirk Mueller diff --git a/python-freezegun.spec b/python-freezegun.spec index db7106a..8975051 100644 --- a/python-freezegun.spec +++ b/python-freezegun.spec @@ -17,12 +17,12 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} +%bcond_without python2 Name: python-freezegun Version: 0.3.15 Release: 0 Summary: Mock time date for Python License: Apache-2.0 -Group: Development/Languages/Python URL: https://github.com/spulec/freezegun Source: https://files.pythonhosted.org/packages/source/f/freezegun/freezegun-%{version}.tar.gz # gh#spulec/freezegun#259 @@ -32,15 +32,15 @@ BuildRequires: %{python_module python-dateutil > 2.0} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module six} BuildRequires: %{pythons} -%ifpython2 -BuildRequires: python-mock -%endif BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python Requires: python-python-dateutil > 2.0 Requires: python-six BuildArch: noarch +%if %{with python2} +BuildRequires: python-mock +%endif %python_subpackages %description