From f0385fab3e2bf9710dceef1cea92b803a69791a6 Mon Sep 17 00:00:00 2001 From: cao-fei8 Date: Fri, 13 Jan 2023 12:39:50 +0800 Subject: [PATCH] Fix missing import Reference: https://github.com/rthalley/dnspython/commit/20e9b7f9d4dcdec5f0b92d7bc72be2566826fc83 Signed-off-by: cao-fei8 --- 0001-Fix-missing-import.patch | 24 ++++++++++++++++++++++++ python-dns.spec | 6 +++++- 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 0001-Fix-missing-import.patch diff --git a/0001-Fix-missing-import.patch b/0001-Fix-missing-import.patch new file mode 100644 index 0000000..9d7cc63 --- /dev/null +++ b/0001-Fix-missing-import.patch @@ -0,0 +1,24 @@ +From 20e9b7f9d4dcdec5f0b92d7bc72be2566826fc83 Mon Sep 17 00:00:00 2001 +From: Martin Horak +Date: Mon, 24 Jan 2022 20:47:27 +0100 +Subject: [PATCH] Fix missing import. + +--- + dns/tsigkeyring.py | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/dns/tsigkeyring.py b/dns/tsigkeyring.py +index 47a1f79..788581c 100644 +--- a/dns/tsigkeyring.py ++++ b/dns/tsigkeyring.py +@@ -20,6 +20,7 @@ + import base64 + + import dns.name ++import dns.tsig + + + def from_text(textring): +-- +2.33.0 + diff --git a/python-dns.spec b/python-dns.spec index 1c13b0c..af93b3c 100644 --- a/python-dns.spec +++ b/python-dns.spec @@ -14,7 +14,7 @@ messages, names, and records. Name: python-dns Summary: %{sum} Version: 2.2.1 -Release: 2 +Release: 3 License: ISC and MIT URL: http://www.dnspython.org/ Source0: https://github.com/rthalley/dnspython/archive/v%{version}/dnspython-%{version}.tar.gz @@ -22,6 +22,7 @@ Source0: https://github.com/rthalley/dnspython/archive/v%{version}/dnspyt Patch0: fix-failed-tests.patch Patch1: backport-fix-missing-version-in-setup.cfg.patch Patch2: 0001-fix-win32util.py-file-mode.patch +Patch3: 0001-Fix-missing-import.patch BuildArch: noarch @@ -64,6 +65,9 @@ pytest %doc examples %changelog +* Fri Jan 13 2023 caofei - 2.2.1-3 +- Fix missing import + * Mon Jan 9 2023 caofei - 2.2.1-2 - fix win32util.py file mode -- Gitee