forked from pool/python-pyftpdlib
- Fix build without python2
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyftpdlib?expand=0&rev=21
This commit is contained in:
committed by
Git OBS Bridge
parent
d5145a68ed
commit
6f88b044ac
@@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Apr 20 10:41:55 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
|
||||||
|
|
||||||
|
- Fix build without python2
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Mar 27 08:46:37 UTC 2020 - Antonio Larrosa <alarrosa@suse.com>
|
Fri Mar 27 08:46:37 UTC 2020 - Antonio Larrosa <alarrosa@suse.com>
|
||||||
|
|
||||||
|
@@ -20,6 +20,7 @@
|
|||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
# Tests randomly fail: https://github.com/giampaolo/pyftpdlib/issues/386
|
# Tests randomly fail: https://github.com/giampaolo/pyftpdlib/issues/386
|
||||||
%bcond_with test
|
%bcond_with test
|
||||||
|
%bcond_without python2
|
||||||
Name: python-pyftpdlib
|
Name: python-pyftpdlib
|
||||||
Version: 1.5.6
|
Version: 1.5.6
|
||||||
Release: 0
|
Release: 0
|
||||||
@@ -34,15 +35,17 @@ BuildRequires: %{python_module pyOpenSSL}
|
|||||||
BuildRequires: %{python_module pysendfile}
|
BuildRequires: %{python_module pysendfile}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-ipaddress
|
|
||||||
BuildRequires: python-mock
|
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires: python-pyOpenSSL
|
Requires: python-pyOpenSSL
|
||||||
Recommends: python-pysendfile
|
Recommends: python-pysendfile
|
||||||
|
BuildArch: noarch
|
||||||
|
%if %{with python2}
|
||||||
|
BuildRequires: python-ipaddress
|
||||||
|
BuildRequires: python-mock
|
||||||
|
%endif
|
||||||
%ifpython2
|
%ifpython2
|
||||||
Requires: python-ipaddress
|
Requires: python-ipaddress
|
||||||
%endif
|
%endif
|
||||||
BuildArch: noarch
|
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
|
Reference in New Issue
Block a user