14
0
Tomáš Chvátal
2020-03-16 10:32:08 +00:00
committed by Git OBS Bridge
parent 6434f5fa67
commit a66a781556
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> 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 # 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 # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -17,13 +17,13 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}} %{?!python_module:%define python_module() python-%{**} python3-%{**}}
%bcond_without python2
Name: python-factory_boy Name: python-factory_boy
Version: 2.12.0 Version: 2.12.0
Release: 0 Release: 0
Summary: A test fixtures replacement Summary: A test fixtures replacement
License: MIT License: MIT
Group: Development/Languages/Python URL: https://github.com/rbarrois/factory_boy
URL: http://github.com/rbarrois/factory_boy
Source: https://github.com/FactoryBoy/factory_boy/archive/%{version}.tar.gz Source: https://github.com/FactoryBoy/factory_boy/archive/%{version}.tar.gz
BuildRequires: %{python_module Django} BuildRequires: %{python_module Django}
BuildRequires: %{python_module Faker >= 0.7.0} BuildRequires: %{python_module Faker >= 0.7.0}
@@ -34,9 +34,11 @@ BuildRequires: %{python_module setuptools >= 0.8}
BuildRequires: %{pythons} BuildRequires: %{pythons}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
BuildRequires: python2-ipaddress
Requires: python-Faker >= 0.7.0 Requires: python-Faker >= 0.7.0
BuildArch: noarch BuildArch: noarch
%if %{with python2}
BuildRequires: python-ipaddress
%endif
%python_subpackages %python_subpackages
%description %description