From patchwork Fri Feb 17 14:55:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Schantl X-Patchwork-Id: 6546 Return-Path: Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4PJFH86kRXz3x1h for ; Fri, 17 Feb 2023 14:55:32 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail02.haj.ipfire.org", Issuer "R3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4PJFH72BrXz16X; Fri, 17 Feb 2023 14:55:31 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4PJFH671THz2ysv; Fri, 17 Feb 2023 14:55:30 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4PJFH50YYqz2xVx for ; Fri, 17 Feb 2023 14:55:29 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id 4PJFH36rDGzHs; Fri, 17 Feb 2023 14:55:27 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1676645728; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=B9sn6Js9n4WA4rmHFn4AmwWY9CInuBuSmQd0y7mY9S8=; b=btQhLg7b2NcgUV8sM0WbslyIA+doXuHV2IizIG0TRJUFFSEyJA28CXotElKEiG9dbcHf/+ R4rV1ljmjxk52AAQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1676645728; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=B9sn6Js9n4WA4rmHFn4AmwWY9CInuBuSmQd0y7mY9S8=; b=rYhoKBpwxNeuqXkhJ0X8lIxSa1dOWbDFz+lcgVGsZ6S5QdJKSwprs4mcnAiPAFkA7s94CL EteMtxOZhY61jl8IlH3wuQ/3OulBsvejFNGmBhQaNksQnUDTJ+30fFRyvve219bjWLox3z JI8GOk5D+Eh8lMie/RCFqJEIhPdcJOk+SvfIHS15lv1rLkTLQKompKvbbD/qkTH7si9NpE Nli4DSPqwU26YJymIC6l4ESXw12MvTNttB3fyjSOp2KO++hHHlq088ZUyLbHlHSFdym1mG SbvoDGD303PdgFz0hKNqvzK+fUp7v9UNfPKI9jjusx6xe8Yz+ockG8ueI73zwg== From: Stefan Schantl To: development@lists.ipfire.org Subject: [PATCH] python3-dns: New package Date: Fri, 17 Feb 2023 15:55:21 +0100 Message-Id: <20230217145521.186762-1-stefan.schantl@ipfire.org> MIME-Version: 1.0 X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: IPFire development talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: development-bounces@lists.ipfire.org Sender: "Development" Signed-off-by: Stefan Schantl --- .../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 diff --git a/python3-dns/patches/python3-dns-no-setup-requires.patch b/python3-dns/patches/python3-dns-no-setup-requires.patch new file mode 100644 index 000000000..2cdbda896 --- /dev/null +++ b/python3-dns/patches/python3-dns-no-setup-requires.patch @@ -0,0 +1,26 @@ +From: Scott Kitterman +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 diff --git a/python3-dns/python3-dns.nm b/python3-dns/python3-dns.nm new file mode 100644 index 000000000..20c172403 --- /dev/null +++ b/python3-dns/python3-dns.nm @@ -0,0 +1,47 @@ +############################################################################### +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # +############################################################################### + +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