Accepting request 785574 from devel:languages:python

- Fix build without python2

OBS-URL: https://build.opensuse.org/request/show/785574
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-factory_boy?expand=0&rev=13
This commit is contained in:
Dominique Leuenberger 2020-03-26 23:25:39 +00:00 committed by Git OBS Bridge
commit ccee309656
2 changed files with 11 additions and 4 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Mar 16 10:31:31 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
- Fix build without python2
-------------------------------------------------------------------
Mon Nov 18 00:57:55 UTC 2019 - Steve Kowalik <steven.kowalik@suse.com>

View File

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