Commit Message
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
---
.../python3-dns-no-setup-requires.patch | 26 ++++++++++
python3-dns/python3-dns.nm | 47 +++++++++++++++++++
2 files changed, 73 insertions(+)
create mode 100644 python3-dns/patches/python3-dns-no-setup-requires.patch
create mode 100644 python3-dns/python3-dns.nm
new file mode 100644
@@ -0,0 +1,26 @@
+From: Scott Kitterman <scott@kitterman.com>
+Date: Fri, 24 Dec 2021 13:42:26 -0500
+Subject: Patch away setup requires
+
+Debian python stuff takes care of this and does it differently.
+
+Origin: vendor
+Forwarded: not-needed
+Last-Update: 2021-12-24
+---
+ setup.cfg | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/setup.cfg b/setup.cfg
+index 0e28c67..59f364f 100644
+--- a/setup.cfg
++++ b/setup.cfg
+@@ -46,7 +46,7 @@ packages =
+ dns.rdtypes.CH
+ python_requires = >=3.7
+ test_suite = tests
+-setup_requires = setuptools>=44; setuptools_scm[toml]>=3.4.3
++#setup_requires = setuptools>=44; setuptools_scm[toml]>=3.4.3
+
+ [options.extras_require]
+ DOH = httpx>=0.21.1; h2>=4.1.0; requests; requests-toolbelt
new file mode 100644
@@ -0,0 +1,47 @@
+###############################################################################
+# IPFire.org - An Open Source Firewall Solution #
+# Copyright (C) - IPFire Development Team <info@ipfire.org> #
+###############################################################################
+
+name = python3-dns
+version = 2.3.0
+release = 1
+thisapp = dnspython-%{version}
+
+groups = Development/Libraries
+url = https://www.dnspython.org
+license = ISC and MIT
+summary = A powerful DNS toolkit for python.
+
+description
+ dnspython is a DNS toolkit for Python. It supports almost all record types.
+ It can be used for queries, zone transfers, and dynamic updates. It
+ supports TSIG authenticated messages and EDNS0.
+
+ dnspython provides both high and low level access to DNS.
+end
+
+source_dl = https://github.com/rthalley/dnspython/archive/refs/tags/v%{version}.tar.gz#/
+
+build
+ requires
+ python3-devel
+ python3-setuptools
+ end
+
+ build
+ %{python3} setup.py build
+ end
+
+ install
+ %{python3} setup.py install --skip-build --root=%{BUILDROOT}
+ end
+end
+
+packages
+ package %{name}
+
+ package %{name}-debuginfo
+ template DEBUGINFO
+ end
+end