File project.diff of Package gr-osmosdr

--- gr-osmosdr.changes.orig
+++ gr-osmosdr.changes
@@ -1,4 +1,9 @@
 -------------------------------------------------------------------
+Mon Dec 23 19:19:38 UTC 2024 - Hans-Peter Jansen <hpj@urpla.net>
+
+- Build with python 3.12
+
+-------------------------------------------------------------------
 Wed Jun 12 19:47:52 UTC 2024 - Wojciech Kazubski <wk@ire.pw.edu.pl>
 
 - Update to release (tag) 0.2.6
--- gr-osmosdr.spec.orig
+++ gr-osmosdr.spec
@@ -16,6 +16,9 @@
 #
 
 
+%define pythons python312
+%global python_flavor	"python312"
+
 %define with_sdrplay 0
 %define libname libgnuradio-osmosdr
 %define sover 0_2_0
@@ -54,15 +57,17 @@ BuildRequires:  libsndfile-devel
 BuildRequires:  libunwind-devel
 BuildRequires:  libusb-1_0-devel >= 1.0.19
 BuildRequires:  orc
-BuildRequires:  python3-devel
-BuildRequires:  python3-numpy-devel
-BuildRequires:  python3-pybind11-devel
-BuildRequires:  python3-six
+BuildRequires:  python-rpm-macros
+BuildRequires:  python312
+BuildRequires:  python312-devel
+BuildRequires:  python312-numpy-devel
+BuildRequires:  python312-pybind11-devel
+BuildRequires:  python312-six
 BuildRequires:  rtl-sdr-devel
 BuildRequires:  soapy-sdr-devel
 BuildRequires:  udev
 BuildRequires:  uhd-devel
-Requires:       python3-gr-osmosdr = %{version}
+Requires:       python312-gr-osmosdr = %{version}
 %if 0%{with_sdrplay}
 # SDRplay support via libsdrplay2 from
 # https://github.com/willcode/gr-osmosdr/tree/sdrplay2
@@ -89,11 +94,11 @@ Group:          System/Libraries
 OsmoSDR Gnuradio Source supports the OsmoSDR hardware, but it also offers a
 wrapper functionality for FunCube Dongle, Ettus UHD and rtl-sdr radios.
 
-%package -n python3-gr-osmosdr
+%package -n python312-gr-osmosdr
 Summary:        Python bindings for gr-osmosdr
 Group:          Development/Libraries/Other
 
-%description -n python3-gr-osmosdr
+%description -n python312-gr-osmosdr
 Python Bindings for gr-osmosdr.
 OsmoSDR Gnuradio Source supports the OsmoSDR hardware, but it also offers a
 wrapper functionality for FunCube Dongle, Ettus UHD and rtl-sdr radios.
@@ -135,6 +140,7 @@ tar -xzf %{SOURCE1}
     -DENABLE_FREESRP=0 \
     -DENABLE_XTRX=0 \
     -DENABLE_DOXYGEN=1 \
+    -DPYTHON_EXECUTABLE:FILEPATH=/usr/bin/python3.12 \
     -DCMAKE_SHARED_LINKER_FLAGS=""
 
 %cmake_build
@@ -156,8 +162,8 @@ mv %{buildroot}/%{_datadir}/doc/%{name}
 %exclude %{_docdir}/%{name}/html
 %exclude %{_docdir}/%{name}/xml
 
-%files -n python3-gr-osmosdr
-%{python3_sitearch}/osmosdr
+%files -n python312-gr-osmosdr
+%{python312_sitearch}/osmosdr
 
 %files -n %{libname}%{sover}
 %{_libdir}/%{libname}*.so.*
openSUSE Build Service is sponsored by