diff --git a/0001-Prepare-for-python-3.10.patch b/0001-Prepare-for-python-3.10.patch new file mode 100644 index 0000000..87a4e6b --- /dev/null +++ b/0001-Prepare-for-python-3.10.patch @@ -0,0 +1,25 @@ +From a20a17054b796522c21bd541ce1ed04c06e1d7e5 Mon Sep 17 00:00:00 2001 +From: "Steven A. Falco" +Date: Thu, 26 Nov 2020 13:29:34 -0500 +Subject: [PATCH] Prepare for python 3.10 + +--- + CMakeModules/FindPythonLibs.cmake | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/CMakeModules/FindPythonLibs.cmake b/CMakeModules/FindPythonLibs.cmake +index c23508ffe8..87e0dc5ad6 100644 +--- a/CMakeModules/FindPythonLibs.cmake ++++ b/CMakeModules/FindPythonLibs.cmake +@@ -44,7 +44,7 @@ cmake_find_frameworks(Python) + + set(_PYTHON1_VERSIONS 1.6 1.5) + set(_PYTHON2_VERSIONS 2.7 2.6 2.5 2.4 2.3 2.2 2.1 2.0) +-set(_PYTHON3_VERSIONS 3.9 3.8 3.7 3.6 3.5 3.4 3.3 3.2 3.1 3.0) ++set(_PYTHON3_VERSIONS 3.10 3.9 3.8 3.7 3.6 3.5 3.4 3.3 3.2 3.1 3.0) + + if(PythonLibs_FIND_VERSION) + if(PythonLibs_FIND_VERSION MATCHES "^[0-9]+\\.[0-9]+(\\.[0-9]+.*)?$") +-- +2.28.0 + diff --git a/kicad.spec b/kicad.spec index ef59650..d97fafc 100644 --- a/kicad.spec +++ b/kicad.spec @@ -1,6 +1,6 @@ Name: kicad Version: 5.1.8 -Release: 2%{?dist} +Release: 3%{?dist} Epoch: 1 Summary: EDA software suite for creation of schematic diagrams and PCBs @@ -16,6 +16,8 @@ Source5: https://gitlab.com/kicad/libraries/kicad-footprints/-/archive/%{ Source6: https://gitlab.com/kicad/libraries/kicad-packages3D/-/archive/%{version}/kicad-packages3D-%{version}.tar.bz2 Patch1: 0001-Do-not-strip-executables.patch +# Add compatibility for Python 3.10 +Patch2: 0001-Prepare-for-python-3.10.patch # kicad is only available on the following architectures (see https://bugs.launchpad.net/kicad/+bug/1755752): ExclusiveArch: %{ix86} x86_64 %{arm} aarch64 ppc64le @@ -94,6 +96,7 @@ Documentation for KiCad. %setup -q -a 1 -a 2 -a 3 -a 4 -a 5 -a 6 %patch1 -p1 +%patch2 -p1 %build @@ -235,6 +238,9 @@ appstream-util validate-relax --nonet %{buildroot}/%{_datadir}/appdata/*.appdata %changelog +* Thu Nov 26 2020 Steven A. Falco - 1:5.1.8-3 +- Add Python 3.10 compatibility + * Thu Nov 26 2020 Richard Shaw - 1:5.1.8-2 - Rebuild for OCC 7.5.0.