File project.diff of Package gnuradio

--- gnuradio.changes.orig
+++ gnuradio.changes
@@ -1,4 +1,9 @@
 -------------------------------------------------------------------
+Tue Dec 24 16:12:23 UTC 2024 - Hans-Peter Jansen <hpj@urpla.net>
+
+- Build with PYthon 3.12
+
+-------------------------------------------------------------------
 Thu Jul 25 12:22:27 UTC 2024 - Wojciech Kazubski <wk@ire.pw.edu.pl>
 
 - Update to version 3.10.11.0
--- gnuradio.spec.orig
+++ gnuradio.spec
@@ -16,6 +16,9 @@
 #
 
 
+%define pythons python312
+%global python_flavor	"python312"
+
 %define sover  3_10_11
 %bcond_without docs
 Name:           gnuradio
@@ -60,20 +63,21 @@ BuildRequires:  orc
 BuildRequires:  pkgconfig
 BuildRequires:  portaudio-devel
 BuildRequires:  python-rpm-macros
-BuildRequires:  python3-Sphinx
-BuildRequires:  python3-click
-BuildRequires:  python3-click-plugins
-BuildRequires:  python3-devel >= 3.6.5
-BuildRequires:  python3-gobject
-BuildRequires:  python3-gobject-cairo
-BuildRequires:  python3-jsonschema
-BuildRequires:  python3-mako >= 1.0.7
-BuildRequires:  python3-numpy-devel >= 1.17.4
-BuildRequires:  python3-pyaml >= 3.11
-BuildRequires:  python3-pybind11-devel >= 2.4.3
-BuildRequires:  python3-pycairo
-BuildRequires:  python3-qt5-devel
-BuildRequires:  python3-thrift
+BuildRequires:  python312
+BuildRequires:  python312-Sphinx
+BuildRequires:  python312-click
+BuildRequires:  python312-click-plugins
+BuildRequires:  python312-devel
+BuildRequires:  python312-gobject
+BuildRequires:  python312-gobject-cairo
+BuildRequires:  python312-jsonschema
+BuildRequires:  python312-mako >= 1.0.7
+BuildRequires:  python312-numpy-devel >= 1.17.4
+BuildRequires:  python312-pyaml >= 3.11
+BuildRequires:  python312-pybind11-devel >= 2.4.3
+BuildRequires:  python312-pycairo
+BuildRequires:  python312-qt5-devel
+BuildRequires:  python312-thrift
 BuildRequires:  qwt6-qt5-devel
 BuildRequires:  soapy-sdr-devel
 BuildRequires:  spdlog-devel
@@ -85,25 +89,25 @@ BuildRequires:  typelib(Gtk) = 3.0
 BuildRequires:  typelib(PangoCairo) = 1.0
 BuildRequires:  typelib(cairo) = 1.0
 # gr_soapy dependencies
-Requires:       python3-SoapySDR
+Requires:       python312-SoapySDR
 # gnuradio-companion dependencies
-Requires:       python3-cairo
-Requires:       python3-QDarkStyle
-Requires:       python3-QtPy
+Requires:       python312-cairo
+Requires:       python312-QDarkStyle
+Requires:       python312-QtPy
 # gr_modtool dependencies
-Requires:       python3-click
-Requires:       python3-click-plugins
-Requires:       python3-gobject-Gdk
-Requires:       python3-jsonschema
-Requires:       python3-mako >= 1.1.0
-Requires:       python3-numpy >= 1.17.4
-Requires:       python3-pyaml >= 3.11
-Requires:       python3-pyqtgraph
+Requires:       python312-click
+Requires:       python312-click-plugins
+Requires:       python312-gobject-Gdk
+Requires:       python312-jsonschema
+Requires:       python312-mako >= 1.1.0
+Requires:       python312-numpy >= 1.17.4
+Requires:       python312-pyaml >= 3.11
+Requires:       python312-pyqtgraph
 # gr_network dependencies
-Requires:       python3-pyzmq
-Requires:       python3-qt5
+Requires:       python312-pyzmq
+Requires:       python312-qt5
 # gr_filter dependencies
-Requires:       python3-scipy
+Requires:       python312-scipy
 Requires:       typelib(Gtk) = 3.0
 %if %{with docs}
 BuildRequires:  doxygen
@@ -193,7 +197,8 @@ find  gr-utils/modtool/templates/gr-newm
 %ifarch armv6l armv6hl
   -Dhave_mfpu_neon=0 \
 %endif
-  -DGR_PYTHON_DIR=%{python3_sitearch} \
+  -DPYTHON_EXECUTABLE:FILEPATH=/usr/bin/python3.12 \
+  -DGR_PYTHON_DIR=%{python312_sitearch} \
   -DENABLE_INTERNAL_VOLK:BOOL=OFF
 %cmake_build
 
@@ -239,7 +244,7 @@ rm -rf %{buildroot}%{_datadir}/icons/gno
 %{_datadir}/applications/gnuradio-grc.desktop
 %{_datadir}/mime/packages/gnuradio-grc.xml
 %{_datadir}/metainfo/org.gnuradio.grc.metainfo.xml
-%{python3_sitearch}/*
+%{python312_sitearch}/*
 %dir %{_sysconfdir}/gnuradio
 %dir %{_sysconfdir}/gnuradio/conf.d
 %config(noreplace) %{_sysconfdir}/gnuradio/conf.d/*.conf
openSUSE Build Service is sponsored by