[packages/python-dns] - remove python 3 support

baggins baggins at pld-linux.org
Mon Mar 15 09:38:50 CET 2021


commit b4a18032010d08aac2770bdaa5e480c1e11a203b
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Mon Mar 15 09:38:16 2021 +0100

    - remove python 3 support
    
    Python 2.x support ended with 1.16.0.
    Dnspython 2.0.0 will require Python 3.6 or later.

 python-dns.spec | 70 +--------------------------------------------------------
 1 file changed, 1 insertion(+), 69 deletions(-)
---
diff --git a/python-dns.spec b/python-dns.spec
index 83eb636..5d107d8 100644
--- a/python-dns.spec
+++ b/python-dns.spec
@@ -1,27 +1,16 @@
-#
-# Conditional build:
-%bcond_without	python2	# CPython 2.x module
-%bcond_without	python3	# CPython 2.x module
-
 %define		module	dns
 Summary:	dnspython - a DNS toolkit for Python 2
 Summary(pl.UTF-8):	dnspython - zestaw narzędzi do DNS dla Pythona 2
 Name:		python-%{module}
 Version:	1.16.0
-Release:	5
+Release:	6
 License:	MIT
 Group:		Development/Languages/Python
 Source0:	http://www.dnspython.org/kits/%{version}/dnspython-%{version}.tar.gz
 # Source0-md5:	5691e0fbb280ed4eaf182ebedccf3462
 URL:		http://www.dnspython.org/
-%if %{with python2}
 BuildRequires:	python-devel >= 1:2.6
 BuildRequires:	python-setuptools
-%endif
-%if %{with python3}
-BuildRequires:	python3-devel >= 1:3.3
-BuildRequires:	python3-setuptools
-%endif
 BuildRequires:	rpm-pythonprov
 BuildRequires:	rpmbuild(macros) >= 1.714
 Requires:	python-modules >= 1:2.6
@@ -50,50 +39,15 @@ 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.
 
-%package -n python3-%{module}
-Summary:	dnspython - a DNS toolkit for Python 3
-Summary(pl.UTF-8):	dnspython - zestaw narzędzi do DNS dla Pythona 3
-Group:		Development/Languages/Python
-Requires:	python3-modules >= 1:3.3
-
-%description -n python3-%{module}
-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 -n python3-%{module} -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
-%if %{with python2}
 %py_build
-%endif
-
-%if %{with python3}
-%py3_build
-%endif
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%if %{with python2}
 %py_install
 
 %py_postclean
@@ -103,35 +57,13 @@ cp -pr examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 
 sed -E -i -e '1s,#!\s*/usr/bin/env\s+python(\s|$),#!%{__python}\1,' -e '1s,#!\s*/usr/bin/env\s+python3(\s|$),#!%{__python}\1,' \
       $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/*.py
-%endif
-
-%if %{with python3}
-%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
-%endif
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%if %{with python2}
 %files
 %defattr(644,root,root,755)
 %doc LICENSE README.md
 %{py_sitescriptdir}/dns
 %{py_sitescriptdir}/dnspython-%{version}-py*.egg-info
 %{_examplesdir}/%{name}-%{version}
-%endif
-
-%if %{with python3}
-%files -n python3-%{module}
-%defattr(644,root,root,755)
-%doc LICENSE README.md
-%{py3_sitescriptdir}/dns
-%{py3_sitescriptdir}/dnspython-%{version}-py*.egg-info
-%{_examplesdir}/python3-%{module}-%{version}
-%endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-dns.git/commitdiff/b4a18032010d08aac2770bdaa5e480c1e11a203b



More information about the pld-cvs-commit mailing list