File project.diff of Package kicad.8
--- kicad.changes.orig
+++ kicad.changes
@@ -1,10 +1,33 @@
-------------------------------------------------------------------
+Sat Jun 14 10:48:38 UTC 2025 - Michal Suchanek <msuchanek@suse.de>
+
+- Random fixes cherry-picked from upstream
+
+-------------------------------------------------------------------
+Fri Mar 7 17:49:21 UTC 2025 - Stefan Brüns <stefan.bruens@rwth-aachen.de>
+
+- Fix build after wxWidgets package broke its ABI. Unfortunately,
+ the SOVERSION was not changed, so users may still end up with
+ incompatible wxWidgets libraries. See boo#1239101.
+
+-------------------------------------------------------------------
+Fri Feb 21 14:41:18 UTC 2025 - Stefan Brüns <stefan.bruens@rwth-aachen.de>
+
+- Update to 9.0.0:
+ See https://www.kicad.org/blog/2025/02/Version-9.0.0-Released/ for details
+
+-------------------------------------------------------------------
Tue Feb 18 20:19:47 UTC 2025 - Stefan Brüns <stefan.bruens@rwth-aachen.de>
- Update to 8.0.9:
See https://www.kicad.org/blog/2025/02/KiCad-8.0.9-Release/ for details
-------------------------------------------------------------------
+Thu Jan 30 15:24:44 UTC 2025 - Michal Suchanek <msuchanek@suse.de>
+
+- Fix ngspice0 dependency
+
+-------------------------------------------------------------------
Mon Jan 13 02:24:08 UTC 2025 - Stefan Brüns <stefan.bruens@rwth-aachen.de>
- Update to 8.0.8:
@@ -20,6 +43,11 @@ Wed Dec 4 09:03:53 UTC 2024 - Stefan Br
* fix_libgit2_API_breakage_again.patch
-------------------------------------------------------------------
+Thu Nov 21 17:15:39 UTC 2024 - Michal Suchanek <msuchanek@suse.de>
+
+- To get current wxPython build with python3.11 on Leap
+
+-------------------------------------------------------------------
Sun Nov 10 14:23:45 UTC 2024 - Stefan Brüns <stefan.bruens@rwth-aachen.de>
- Fix build with libgit2 >= 1.8.4, the previous API break was
--- kicad.spec.orig
+++ kicad.spec
@@ -16,9 +16,21 @@
#
+%if 0%{?suse_version} >= 1550
+%define pyver 3
+%define pyver_dot 3
+%define pysite %{python3_sitearch}
+%else
+%define pyver 311
+%define pyver_dot 3.11
+%define pysite %{python311_sitearch}
+%endif
+
# According to upstream, kicad 8.x.y can be used with the footprint and
# symbol libraries from version 8.0.0
%define compatversion 8.0.0
+%bcond_without use_egl
+
Name: kicad
Version: 8.0.9
%define file_version 8.0.9
@@ -29,14 +41,21 @@ Group: Productivity/Scientific/
URL: https://www.kicad.org
Source: https://gitlab.com/kicad/code/kicad/-/archive/%{file_version}/kicad-%{file_version}.tar.bz2
+Patch0: Fix-writing-pad-layer-information-to-the-board-file.patch
+Patch1: fix-for-issue-17429-backported-from-master.patch
+Patch2: CN_EDGE-Add-comparison-function.patch
+Patch3: Use-individual-silk-mask-collision-checking-if-solde.patch
+Patch4: Do-not-rely-on-the-existence-of-a-BOARD-object-in-pa.patch
+# Patch5: Trim-library-layers-to-instance-board-before-compari.patch
+
BuildRequires: cmake >= 3.16
BuildRequires: fdupes
# Requires charconv from C++17
%if 0%{?suse_version} >= 1550
BuildRequires: gcc-c++ >= 8
%else
-BuildRequires: gcc11-PIE
-BuildRequires: gcc11-c++ >= 8
+BuildRequires: gcc13-PIE
+BuildRequires: gcc13-c++ >= 8
%endif
BuildRequires: gettext
BuildRequires: glm-devel >= 0.9.8
@@ -48,11 +67,14 @@ BuildRequires: libngspice-devel
BuildRequires: memory-constraints
BuildRequires: occt-devel
BuildRequires: pkg-config
-BuildRequires: python3-pybind11-devel
-BuildRequires: python3-wxPython
+BuildRequires: python%{pyver}-devel
+BuildRequires: python%{pyver}-pybind11-devel
+BuildRequires: python%{pyver}-wxPython
BuildRequires: swig >= 3
BuildRequires: update-desktop-files
BuildRequires: wxGTK3-devel >= 3.2.4
+BuildRequires: cmake(nng)
+BuildRequires: cmake(protobuf)
BuildRequires: pkgconfig(bzip2)
BuildRequires: pkgconfig(cairo)
BuildRequires: pkgconfig(glew)
@@ -61,16 +83,15 @@ BuildRequires: pkgconfig(libgit2)
BuildRequires: pkgconfig(libsecret-1)
BuildRequires: pkgconfig(odbc)
BuildRequires: pkgconfig(openssl)
-BuildRequires: pkgconfig(python3) >= 3.6
BuildRequires: pkgconfig(zlib)
# Fix directory owner
BuildRequires: hicolor-icon-theme
# Test requirements
-BuildRequires: python3-pytest
-BuildRequires: python3-CairoSVG
+BuildRequires: python%{pyver}-pytest
+BuildRequires: python%{pyver}-CairoSVG
# Dlopen'ed simulator library
-Requires: libngspice0
+Requires: libngspice0 >= %(rpm -q --qf "%%{VERSION}" libngspice-devel)
# The help function gives an error without the doc package
Recommends: kicad-doc = %{version}
# You cannot build a schematic without symbols
@@ -80,7 +101,8 @@ Requires: kicad-footprints = %{com
# KiCad functions without these packages
Recommends: kicad-packages3D = %{compatversion}
Recommends: kicad-templates = %{compatversion}
-Recommends: python3-wxPython
+Recommends: python%{pyver}-wxPython
+Recommends: python%{pyver}-wxWidgets_API >= 3.2.4
Obsoletes: kicad = 20140120
Provides: kicad = %{compatversion}
# Test suite fails, 32 bit archs no longer supported
@@ -140,7 +162,7 @@ sed -i -e '/SWIG_OPTS/ { s/ -O/ -py3/ ;
%build
%if 0%{?suse_version} < 1550
-export CXX=g++-11 CC=gcc-11
+export CXX=g++-13 CC=gcc-13
%endif
%limit_build -m 1500
%cmake \
@@ -148,11 +170,13 @@ export CXX=g++-11 CC=gcc-11
-DCMAKE_SKIP_INSTALL_RPATH:BOOL=ON \
-DCMAKE_EXE_LINKER_FLAGS="-Wl,--as-needed -Wl,--no-undefined -Wl,-z,now -pie" \
-DKICAD_DOCS:PATH=%{_docdir}/kicad \
- -DPYTHON_SITE_PACKAGE_PATH=%{python3_sitearch} \
+ -DPYTHON_SITE_PACKAGE_PATH=%{pysite} \
+ -DPYTHON_EXECUTABLE=/usr/bin/python%{pyver_dot} \
-DKICAD_BUILD_I18N=ON \
-DKICAD_I18N_UNIX_STRICT_PATH:BOOL=ON \
-DKICAD_SCRIPTING_WXPYTHON=ON \
-DKICAD_USE_OCC:BOOL=ON \
+ -DKICAD_USE_EGL:BOOL=%{?with_use_egl:ON}%{!?with_use_egl:OFF} \
-DKICAD_PCM=ON \
-DKICAD_SPICE=ON
@@ -212,7 +236,7 @@ chmod -x %{buildroot}%{_datadir}/kicad/s
%{_libdir}/kicad/
%{_libdir}/libki*.so.*
%{_datadir}/kicad/
-%{python3_sitearch}/*
+%{pysite}/*
%{_datadir}/metainfo/org.kicad.kicad.metainfo.xml
%{_datadir}/applications/*.desktop
%{_datadir}/mime/packages/kicad-*.xml