From 848e12f3cbd6caba570283be5ccbbcdb2f4c784b241e5a95ca336939c84db55b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Wed, 4 Jun 2025 09:03:35 +0000 Subject: [PATCH 1/4] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pybluez?expand=0&rev=20 --- .gitattributes | 23 ++++ .gitignore | 1 + ...47f90a1f6a74ceb250aef6243e144170f92.tar.gz | 3 + python-pybluez.changes | 112 ++++++++++++++++++ python-pybluez.spec | 65 ++++++++++ 5 files changed, 204 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 pybluez-5096047f90a1f6a74ceb250aef6243e144170f92.tar.gz create mode 100644 python-pybluez.changes create mode 100644 python-pybluez.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/pybluez-5096047f90a1f6a74ceb250aef6243e144170f92.tar.gz b/pybluez-5096047f90a1f6a74ceb250aef6243e144170f92.tar.gz new file mode 100644 index 0000000..4c7f438 --- /dev/null +++ b/pybluez-5096047f90a1f6a74ceb250aef6243e144170f92.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:21e7208eeb2f098df614edeb4c40ff0d1b365d443b2e90be147eaf72b02bd795 +size 217977 diff --git a/python-pybluez.changes b/python-pybluez.changes new file mode 100644 index 0000000..51cdd5f --- /dev/null +++ b/python-pybluez.changes @@ -0,0 +1,112 @@ +------------------------------------------------------------------- +Wed Jun 4 09:01:21 UTC 2025 - Markéta Machová + +- Convert to pip-based build + +------------------------------------------------------------------- +Thu Jul 27 08:26:16 UTC 2023 - ecsos + +- Add %{?sle15_python_module_pythons} + +------------------------------------------------------------------- +Fri Feb 25 20:36:44 UTC 2022 - Matej Cepl + +- Deduplicate files in python_sitearch. + +------------------------------------------------------------------- +Thu Feb 24 14:50:47 UTC 2022 - pgajdos@suse.com + +- update to version 0.23+git5096047f90a1f6a74ceb250aef6243e144170f92: + * no upstream changelog + +------------------------------------------------------------------- +Thu Mar 19 10:59:22 UTC 2020 - Marketa Calabkova + +- Update to version 0.23 + * Add missing family, type and proto properties to msbt socket backend + * Use feature detection instead of version detection + * Much more changes + * Last version which supports Python2 +- Modernize spec file a bit + +------------------------------------------------------------------- +Tue Mar 27 14:42:04 UTC 2018 - mgorse@suse.com + +- Update to version 0.22: + * experimental support for Bluetooth Low Energy, based on + pygattlib implementation + * l2cap options issue #88 + * When cancelling device discovery, DeviceDiscoverer does not + call inquiry_complete() #85 + * No way to select device id for device discovery #77 + * _get_available_port() should try to bind() with + a supplied address instead of "" #45 + * changes from 0.20 to 0.21(Apr 05, 2015) + * No way to select device id for device discovery #77 + * RSSI info not passed on by DeviceDiscoverer #74 + * Warnings during compilation on linux #73 + * python3 UnicodeDecodeError in DeviceDiscoverer find_devices + * changes from 0.19 to 0.20(Jan 13, 2014) + * Python 3 is now supported. + * Python 3.3 uses Visual C++ 2010 Express Edition for build on windows. + * changes from 0.18 to 0.19 + * Added option to return the class of device in + discover_devices() (Lukas Hetzenecker) + * Added setl2capsecurity() method to BluetoothSocket + * Fixed get_l2cap_options(), set_l2cap_options(), set_l2cap_mtu() + * Added abovementioned functions as socket methods + * Added BT_SECURITY_*, L2CAP_MODE_* constants + * Added support for the "Extended Inquiry Response" event in + the asynchronous DeviceDiscoverer (Lukas Hetzenecker) + * Fixed problems with kernel 3.x +- Drop python-pybluez-linux3-fix.patch: fixed upstream. +- Update URL. +- Add a python3 package. +- Modernize spec using spec-cleaner. + +------------------------------------------------------------------- +Wed Aug 24 20:28:10 UTC 2011 - gankov@opensuse.org + +- fix detection on linux3 + +------------------------------------------------------------------- +Tue Apr 20 14:41:32 CEST 2010 - cstender@suse.de + +- updated to version 0.18 + * bugfix for linux 2.6.30+ zero out struct sockaddr + * DeviceDiscoverer may specify bluetooth device_id (roelhuybrechts) + * DeviceDiscoverer do not override duration parameter (roelhuybrechts) + +------------------------------------------------------------------- +Tue Aug 4 10:30:28 UTC 2009 - cstender@novell.com + +- updated to version 0.16 + * fix variable naming in example/simple/inquiry.py (M. Harris Bhatti) + * fix examples to import bluetooth._bluetooth + +------------------------------------------------------------------- +Mon Sep 15 21:43:52 CEST 2008 - dmueller@suse.de + +- adjust buildrequires + +------------------------------------------------------------------- +Tue Sep 9 11:43:49 CEST 2008 - cstender@suse.de + +- renamed package to python-pybluez +- updated to version 0.15 + o fix segfault on trying to SDP advertise when sdpd not running + (reported by Eric Butler) + o fixed _checkaddr bug (reported by Giovanni) + o fix device class parsing bug in inquiry-with-rssi (Pepe Aracil) + o don't hardcode duration in discover_devices() to 8 (Gustavo Chain) + +------------------------------------------------------------------- +Tue Jun 3 04:46:10 CEST 2008 - crrodriguez@suse.de + +- needs to be built with -fno-strict-aliasing + +------------------------------------------------------------------- +Mon Jan 15 00:09:29 CET 2007 - dgollub@suse.de + +- initial version of PyBluez 0.9.2 + diff --git a/python-pybluez.spec b/python-pybluez.spec new file mode 100644 index 0000000..5836226 --- /dev/null +++ b/python-pybluez.spec @@ -0,0 +1,65 @@ +# +# spec file for package python-pybluez +# +# Copyright (c) 2025 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%define rev 5096047f90a1f6a74ceb250aef6243e144170f92 +%{?sle15_python_module_pythons} +Name: python-pybluez +Version: 0.23+git%{rev} +Release: 0 +Summary: A Python Bluetooth wrapper +License: GPL-2.0-or-later +Group: Development/Libraries/Python +URL: https://pybluez.github.io/ +Source: https://github.com/pybluez/pybluez/archive/%{rev}.tar.gz#/pybluez-%{rev}.tar.gz +BuildRequires: %{python_module devel} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: bluez-devel +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Obsoletes: pybluez < 0.22 +Provides: pybluez = %{version} +%python_subpackages + +%description +PyBluez is an effort to create python wrappers around system Bluetooth +resources to allow Python developers to easily and quickly create +Bluetooth applications. + +%prep +%setup -q -n pybluez-%{rev} + +%build +export CFLAGS="%{optflags} -fno-strict-aliasing" +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitearch} + +#%%check +# no tests on upstream + +%files %{python_files} +%license COPYING +%doc CHANGELOG README.md +%{python_sitearch}/bluetooth/ +%{python_sitearch}/[Pp]y[Bb]luez-%{version}*-info + +%changelog From 37113613b721722e0d54be4b109b6ee20bcfa4ef5468cb2554d4fa30ddad53a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Wed, 4 Jun 2025 09:06:20 +0000 Subject: [PATCH 2/4] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pybluez?expand=0&rev=21 --- python-pybluez.spec | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/python-pybluez.spec b/python-pybluez.spec index 5836226..4c23d2f 100644 --- a/python-pybluez.spec +++ b/python-pybluez.spec @@ -17,9 +17,10 @@ %define rev 5096047f90a1f6a74ceb250aef6243e144170f92 +%define pkg_version 0.23 %{?sle15_python_module_pythons} Name: python-pybluez -Version: 0.23+git%{rev} +Version: %{pkg_version}+git%{rev} Release: 0 Summary: A Python Bluetooth wrapper License: GPL-2.0-or-later @@ -60,6 +61,6 @@ export CFLAGS="%{optflags} -fno-strict-aliasing" %license COPYING %doc CHANGELOG README.md %{python_sitearch}/bluetooth/ -%{python_sitearch}/[Pp]y[Bb]luez-%{version}*-info +%{python_sitearch}/[Pp]y[Bb]luez-%{pkg_version}*-info %changelog From 1a7c22fbbd4ae828cb7cd2248095d8026a2cea79681d65a4152cc29c16cb2be7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Wed, 4 Jun 2025 09:07:49 +0000 Subject: [PATCH 3/4] what is the problem, please? OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pybluez?expand=0&rev=22 --- python-pybluez.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python-pybluez.spec b/python-pybluez.spec index 4c23d2f..b9596b6 100644 --- a/python-pybluez.spec +++ b/python-pybluez.spec @@ -61,6 +61,6 @@ export CFLAGS="%{optflags} -fno-strict-aliasing" %license COPYING %doc CHANGELOG README.md %{python_sitearch}/bluetooth/ -%{python_sitearch}/[Pp]y[Bb]luez-%{pkg_version}*-info +#%%{python_sitearch}/[Pp]y[Bb]luez-%{pkg_version}*-info %changelog From 82e040cd61bd4709877bc7eeddbdc443e5f865dd778b95a64894f4da1a1d3b9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Wed, 4 Jun 2025 09:11:48 +0000 Subject: [PATCH 4/4] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pybluez?expand=0&rev=23 --- python-pybluez.spec | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/python-pybluez.spec b/python-pybluez.spec index b9596b6..a30ea68 100644 --- a/python-pybluez.spec +++ b/python-pybluez.spec @@ -17,10 +17,10 @@ %define rev 5096047f90a1f6a74ceb250aef6243e144170f92 -%define pkg_version 0.23 +%define pkg_version 0.30 %{?sle15_python_module_pythons} Name: python-pybluez -Version: %{pkg_version}+git%{rev} +Version: 0.23+git%{rev} Release: 0 Summary: A Python Bluetooth wrapper License: GPL-2.0-or-later @@ -61,6 +61,6 @@ export CFLAGS="%{optflags} -fno-strict-aliasing" %license COPYING %doc CHANGELOG README.md %{python_sitearch}/bluetooth/ -#%%{python_sitearch}/[Pp]y[Bb]luez-%{pkg_version}*-info +%{python_sitearch}/[Pp]y[Bb]luez-%{pkg_version}*-info %changelog