- Fix build without python2 available

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-freezegun?expand=0&rev=30
This commit is contained in:
Tomáš Chvátal 2020-03-11 17:30:07 +00:00 committed by Git OBS Bridge
parent ec149c0e3a
commit 574f8da219
2 changed files with 9 additions and 4 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Mar 11 17:29:52 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
- Fix build without python2 available
-------------------------------------------------------------------
Wed Mar 11 08:59:55 UTC 2020 - Dirk Mueller <dmueller@suse.com>

View File

@ -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