diff --git a/py313.patch b/py313.patch new file mode 100644 index 0000000..3be0b5d --- /dev/null +++ b/py313.patch @@ -0,0 +1,13 @@ +--- a/src/gattlib.cpp~ 2022-07-12 01:13:30.000000000 -0500 ++++ b/src/gattlib.cpp 2023-11-21 15:46:52.627114146 -0600 +@@ -96,10 +96,6 @@ + + void + IOService::start() { +- if (!PyEval_ThreadsInitialized()) { +- PyEval_InitThreads(); +- } +- + boost::thread iothread(std::bind(&IOService::operator(), this)); + start_event.wait(10); + } diff --git a/python-gattlib.spec b/python-gattlib.spec index e11a01a..6d9f0f9 100644 --- a/python-gattlib.spec +++ b/python-gattlib.spec @@ -2,7 +2,7 @@ Name: python-gattlib Version: 0.20210616 -Release: 7%{?dist} +Release: 8%{?dist} Summary: Library to access Bluetooth LE devices License: Apache-2.0 AND GPL-2.0-or-later AND LGPL-2.0-or-later @@ -11,6 +11,7 @@ License: Apache-2.0 AND GPL-2.0-or-later AND LGPL-2.0-or-later URL: https://github.com/oscaracena/pygattlib Source0: https://files.pythonhosted.org/packages/source/g/%{modname}/%{modname}-%{version}.tar.gz Source1: COPYING +Patch0: py313.patch BuildRequires: gcc-c++ @@ -22,7 +23,7 @@ Summary: %{summary} %{?python_provide:%python_provide python%{python3_pkgversion}-%{modname}} BuildRequires: python%{python3_pkgversion}-devel BuildRequires: python%{python3_pkgversion}-setuptools -BuildRequires: boost-python3-devel +BuildRequires: boost-python%{python3_pkgversion}-devel BuildRequires: glib2-devel BuildRequires: bluez-libs-devel @@ -52,6 +53,9 @@ find . -type f | xargs chmod -x %{python3_sitearch}/%{modname}*.egg-info/ %changelog +* Tue Nov 21 2023 Gwyn Ciesla - 0.20210616-8 +- Patch for Python 3.13 + * Fri Jul 21 2023 Fedora Release Engineering - 0.20210616-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild