From 17bded5ffdcb567a090fa8184a08eeea143b8a88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Esser?= Date: Thu, 5 Aug 2021 18:35:26 +0200 Subject: [PATCH] Add support for Python 3.10 --- autoconf-archive-2021.02.19-python_310.patch | 13 +++++++++++++ autoconf-archive.spec | 8 +++++++- 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 autoconf-archive-2021.02.19-python_310.patch diff --git a/autoconf-archive-2021.02.19-python_310.patch b/autoconf-archive-2021.02.19-python_310.patch new file mode 100644 index 0000000..a04add2 --- /dev/null +++ b/autoconf-archive-2021.02.19-python_310.patch @@ -0,0 +1,13 @@ +Index: autoconf-archive-2021.02.19/m4/ax_python.m4 +=================================================================== +--- autoconf-archive-2021.02.19.orig/m4/ax_python.m4 ++++ autoconf-archive-2021.02.19/m4/ax_python.m4 +@@ -55,7 +55,7 @@ + AC_DEFUN([AX_PYTHON], + [AC_MSG_CHECKING(for python build information) + AC_MSG_RESULT([]) +-for python in python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python; do ++for python in python3.10 python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python; do + AC_CHECK_PROGS(PYTHON_BIN, [$python]) + ax_python_bin=$PYTHON_BIN + if test x$ax_python_bin != x; then diff --git a/autoconf-archive.spec b/autoconf-archive.spec index a3149ee..a6effe2 100644 --- a/autoconf-archive.spec +++ b/autoconf-archive.spec @@ -1,6 +1,6 @@ Name: autoconf-archive Version: 2021.02.19 -Release: 2%{?dist} +Release: 3%{?dist} Summary: The Autoconf Macro Archive License: GPLv3+ with exceptions URL: https://www.gnu.org/software/autoconf-archive/ @@ -14,6 +14,9 @@ BuildRequires: gnupg2 BuildRequires: make Requires: autoconf +# Add support for Python 3.10 +Patch0: autoconf-archive-2021.02.19-python_310.patch + %description The GNU Autoconf Archive is a collection of more than 450 macros for GNU Autoconf that have been contributed as free software by friendly @@ -41,6 +44,9 @@ rm -frv %{buildroot}%{_datadir}/doc/%{name} %{_infodir}/autoconf-archive.info* %changelog +* Thu Aug 05 2021 Björn Esser - 2021.02.19-3 +- Add support for Python 3.10 + * Wed Jul 21 2021 Fedora Release Engineering - 2021.02.19-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild