+++ /dev/null
---- pyftpdlib-1.5.5/pyftpdlib/test/__init__.py.orig 2018-05-15 14:14:07.000000000 +0200
-+++ pyftpdlib-1.5.5/pyftpdlib/test/__init__.py 2019-10-05 17:47:17.336707773 +0200
-@@ -37,7 +37,8 @@
- unittest.TestCase.assertRaisesRegex = unittest.TestCase.assertRaisesRegexp
-
- if os.name == 'posix':
-- import sendfile
-+ if not hasattr(os, 'sendfile'):
-+ import sendfile
- else:
- sendfile = None
-
---- pyftpdlib-1.5.5/pyftpdlib/test/test_functional.py.orig 2019-03-27 17:31:43.000000000 +0100
-+++ pyftpdlib-1.5.5/pyftpdlib/test/test_functional.py 2019-10-05 17:55:46.157284589 +0200
-@@ -67,7 +67,8 @@
- import ssl
-
- if POSIX:
-- import sendfile
-+ if not hasattr(os, 'sendfile'):
-+ import sendfile
- else:
- sendfile = None
-
Summary: Very fast asynchronous FTP server library for Python 2
Summary(pl.UTF-8): Bardzo szybka biblioteka asynchronicznego serwera FTP dla Pythona 2
Name: python-pyftpdlib
-Version: 1.5.5
-Release: 4
+Version: 1.5.6
+Release: 1
License: MIT
Group: Libraries/Python
#Source0Download: https://pypi.python.org/simple/pyftpdlib/
Source0: https://files.pythonhosted.org/packages/source/p/pyftpdlib/pyftpdlib-%{version}.tar.gz
-# Source0-md5: 7f8089520d60171bee5dab2b721e8d00
+# Source0-md5: 459dd3e685c4b7dfcf574ca05e5586eb
Patch0: %{name}-tests.patch
-Patch1: %{name}-sendfile.patch
URL: https://github.com/giampaolo/pyftpdlib/
%if %{with python2}
BuildRequires: python-modules >= 1:2.6
%prep
%setup -q -n pyftpdlib-%{version}
%patch0 -p1
-%patch1 -p1
%build
%if %{with python2}