diff --git a/python-factory_boy.changes b/python-factory_boy.changes index 2dcaa4b..f43ce8e 100644 --- a/python-factory_boy.changes +++ b/python-factory_boy.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Mar 16 10:31:31 UTC 2020 - Tomáš Chvátal + +- Fix build without python2 + ------------------------------------------------------------------- Mon Nov 18 00:57:55 UTC 2019 - Steve Kowalik diff --git a/python-factory_boy.spec b/python-factory_boy.spec index 63b3711..e3ac3d8 100644 --- a/python-factory_boy.spec +++ b/python-factory_boy.spec @@ -1,7 +1,7 @@ # # spec file for package python-factory_boy # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,13 +17,13 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} +%bcond_without python2 Name: python-factory_boy Version: 2.12.0 Release: 0 Summary: A test fixtures replacement License: MIT -Group: Development/Languages/Python -URL: http://github.com/rbarrois/factory_boy +URL: https://github.com/rbarrois/factory_boy Source: https://github.com/FactoryBoy/factory_boy/archive/%{version}.tar.gz BuildRequires: %{python_module Django} BuildRequires: %{python_module Faker >= 0.7.0} @@ -34,9 +34,11 @@ BuildRequires: %{python_module setuptools >= 0.8} BuildRequires: %{pythons} BuildRequires: fdupes BuildRequires: python-rpm-macros -BuildRequires: python2-ipaddress Requires: python-Faker >= 0.7.0 BuildArch: noarch +%if %{with python2} +BuildRequires: python-ipaddress +%endif %python_subpackages %description