From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Schantl <stefan.schantl@ipfire.org> 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 Content-Type: multipart/mixed; boundary="===============7634570241620642333==" List-Id: <development.lists.ipfire.org> --===============7634570241620642333== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Signed-off-by: Stefan Schantl <stefan.schantl(a)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 diff --git a/python3-dns/patches/python3-dns-no-setup-requires.patch b/python= 3-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 <scott(a)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 =3D + dns.rdtypes.CH + python_requires =3D >=3D3.7 + test_suite =3D tests +-setup_requires =3D setuptools>=3D44; setuptools_scm[toml]>=3D3.4.3 ++#setup_requires =3D setuptools>=3D44; setuptools_scm[toml]>=3D3.4.3 +=20 + [options.extras_require] + DOH =3D httpx>=3D0.21.1; h2>=3D4.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 <info(a)ipfire.org> = # +############################################################################= ### + +name =3D python3-dns +version =3D 2.3.0 +release =3D 1 +thisapp =3D dnspython-%{version} + +groups =3D Development/Libraries +url =3D https://www.dnspython.org +license =3D ISC and MIT +summary =3D 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 =3D https://github.com/rthalley/dnspython/archive/refs/tags/v%{ve= rsion}.tar.gz#/ + +build + requires + python3-devel + python3-setuptools + end + + build + %{python3} setup.py build + end + + install + %{python3} setup.py install --skip-build --root=3D%{BUILDROOT} + end +end + +packages + package %{name} + + package %{name}-debuginfo + template DEBUGINFO + end +end --=20 2.30.2 --===============7634570241620642333==--