diff --git a/python-aiodns-2.0.0-fix-typing-dependency.patch b/python-aiodns-2.0.0-fix-typing-dependency.patch new file mode 100644 index 0000000..1ce27c5 --- /dev/null +++ b/python-aiodns-2.0.0-fix-typing-dependency.patch @@ -0,0 +1,23 @@ +From 281112107c742a3e24e8bce2cb09c3c4d9d01b6d Mon Sep 17 00:00:00 2001 +From: Gerion Entrup +Date: Sun, 8 Sep 2019 12:34:10 +0200 +Subject: [PATCH] setup: typing exists since Python 3.5 + +Fix #71. +--- + setup.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/setup.py b/setup.py +index 415a2af..bcf54ce 100644 +--- a/setup.py ++++ b/setup.py +@@ -19,7 +19,7 @@ def get_version(): + description = "Simple DNS resolver for asyncio", + long_description = codecs.open("README.rst", encoding="utf-8").read(), + long_description_content_type = "text/x-rst", +- install_requires = ['pycares>=3.0.0', 'typing; python_version<"3.7"'], ++ install_requires = ['pycares>=3.0.0', 'typing; python_version<"3.5"'], + packages = ['aiodns'], + platforms = ["POSIX", "Microsoft Windows"], + classifiers = [ diff --git a/python-aiodns.changes b/python-aiodns.changes index e8917a2..573eab2 100644 --- a/python-aiodns.changes +++ b/python-aiodns.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Jul 9 05:55:21 UTC 2020 - Matthias Fehring + +- add python-aiodns-2.0.0-fix-typing-dependency.patch to fix wrong + dependency to python-typing on python 3.5+ (gh#saghul/aiodns/issues/71) + ------------------------------------------------------------------- Thu Mar 21 14:07:32 UTC 2019 - Ondřej Súkup diff --git a/python-aiodns.spec b/python-aiodns.spec index 274d8ec..75a957b 100644 --- a/python-aiodns.spec +++ b/python-aiodns.spec @@ -1,7 +1,7 @@ # # spec file for package python-aiodns # -# 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 @@ -27,8 +27,10 @@ Release: 0 Summary: Simple DNS resolver for asyncio License: MIT Group: Development/Libraries/Python -Url: https://github.com/saghul/aiodns/releases +URL: https://github.com/saghul/aiodns/releases Source0: https://github.com/saghul/aiodns/archive/aiodns-%{version}.tar.gz +# PATCH-FIX-UPSTREAM python-aiodns-2.0.0-fix-typing-dependency.patch gh#saghul/aiodns/issues/71 -- buschmann23@opensuse.org +Patch0: python-aiodns-2.0.0-fix-typing-dependency.patch BuildRequires: %{python_module setuptools} Requires: python-pycares >= 3.0.0 BuildRequires: fdupes