[packages/python3-dns] - recover as 2.1.0, Python 2.x support ended with 1.16.0

baggins baggins at pld-linux.org
Mon Mar 15 09:36:35 CET 2021


commit 7f04bb735d27638480a3bb5df152dc6797a9c4f9
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Mon Mar 15 09:35:52 2021 +0100

    - recover as 2.1.0, Python 2.x support ended with 1.16.0

 python3-dns.spec | 67 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 67 insertions(+)
---
diff --git a/python3-dns.spec b/python3-dns.spec
new file mode 100644
index 0000000..ad09ba7
--- /dev/null
+++ b/python3-dns.spec
@@ -0,0 +1,67 @@
+%define		module	dns
+Summary:	dnspython - a DNS toolkit for Python 3
+Summary(pl.UTF-8):	dnspython - zestaw narzędzi do DNS dla Pythona 3
+Name:		python-%{module}
+Version:	2.1.0
+Release:	1
+License:	MIT
+Group:		Development/Languages/Python
+Source0:	https://github.com/rthalley/dnspython/archive/v%{version}/dnspython-%{version}.tar.gz
+# Source0-md5:	234d7785c7fef855f208b7953d6808d7
+URL:		http://www.dnspython.org/
+BuildRequires:	python3-devel >= 1:3.3
+BuildRequires:	python3-setuptools
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.714
+Requires:	python3-modules >= 1:3.6
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%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. The high
+level classes perform queries for data of a given name, type, and
+class, and return an answer set. The low level classes allow direct
+manipulation of DNS zones, messages, names, and records.
+
+%description -l pl.UTF-8
+dnspython to zestaw narzędzi do DNS dla Pythona. Obsługuje prawie
+wszystkie rodzaje rekordów. Może być używany do zapytań, transferów
+stref oraz dynamicznych uaktualnień. Obsługuje uwierzytelnione
+komunikaty TSIG oraz EDNS0.
+
+dnspython dostarcza zarówno wysoko- jak i niskopoziomowy dostęp do
+DNS-a. Klasy wysokopoziomowe wykonują zapytania o dane dla podanej
+nazwy, rodzaju i klasy, a zwracają zbiór odpowiedzi. Klasy
+niskopoziomowe umożliwiają bezpośrednie manipulacje na strefach,
+komunikatach, nazwach i rekordach w DNS-ie.
+
+%prep
+%setup -q -n dnspython-%{version}
+
+%build
+%py3_build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install
+
+install -d $RPM_BUILD_ROOT%{_examplesdir}/python3-%{module}-%{version}
+cp -pr examples/* $RPM_BUILD_ROOT%{_examplesdir}/python3-%{module}-%{version}
+
+sed -E -i -e '1s,#!\s*/usr/bin/env\s+python(\s|$),#!%{__python3}\1,' -e '1s,#!\s*/usr/bin/env\s+python3(\s|$),#!%{__python3}\1,' \
+      $RPM_BUILD_ROOT%{_examplesdir}/python3-%{module}-%{version}/*.py
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc LICENSE README.md
+%{py3_sitescriptdir}/dns
+%{py3_sitescriptdir}/dnspython-%{version}-py*.egg-info
+%{_examplesdir}/python3-%{module}-%{version}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-dns.git/commitdiff/7f04bb735d27638480a3bb5df152dc6797a9c4f9



More information about the pld-cvs-commit mailing list