14
0
Files
python-pybluez/python-pybluez.spec

67 lines
2.0 KiB
RPMSpec
Raw Normal View History

#
# 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
%define pkg_version 0.30
%{?sle15_python_module_pythons}
Name: python-pybluez
Version: 0.23+git%{rev}
Accepting request 591656 from home:mgorse:branches:devel:languages:python - 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. OBS-URL: https://build.opensuse.org/request/show/591656 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pybluez?expand=0&rev=12
2018-03-27 15:04:45 +00:00
Release: 0
Summary: A Python Bluetooth wrapper
Accepting request 591656 from home:mgorse:branches:devel:languages:python - 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. OBS-URL: https://build.opensuse.org/request/show/591656 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pybluez?expand=0&rev=12
2018-03-27 15:04:45 +00:00
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
Accepting request 591656 from home:mgorse:branches:devel:languages:python - 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. OBS-URL: https://build.opensuse.org/request/show/591656 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pybluez?expand=0&rev=12
2018-03-27 15:04:45 +00:00
BuildRequires: %{python_module devel}
BuildRequires: %{python_module pip}
Accepting request 591656 from home:mgorse:branches:devel:languages:python - 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. OBS-URL: https://build.opensuse.org/request/show/591656 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pybluez?expand=0&rev=12
2018-03-27 15:04:45 +00:00
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
Accepting request 591656 from home:mgorse:branches:devel:languages:python - 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. OBS-URL: https://build.opensuse.org/request/show/591656 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pybluez?expand=0&rev=12
2018-03-27 15:04:45 +00:00
BuildRequires: bluez-devel
BuildRequires: fdupes
Accepting request 591656 from home:mgorse:branches:devel:languages:python - 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. OBS-URL: https://build.opensuse.org/request/show/591656 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pybluez?expand=0&rev=12
2018-03-27 15:04:45 +00:00
BuildRequires: python-rpm-macros
Obsoletes: pybluez < 0.22
Provides: pybluez = %{version}
Accepting request 591656 from home:mgorse:branches:devel:languages:python - 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. OBS-URL: https://build.opensuse.org/request/show/591656 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pybluez?expand=0&rev=12
2018-03-27 15:04:45 +00:00
%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
Accepting request 591656 from home:mgorse:branches:devel:languages:python - 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. OBS-URL: https://build.opensuse.org/request/show/591656 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pybluez?expand=0&rev=12
2018-03-27 15:04:45 +00:00
export CFLAGS="%{optflags} -fno-strict-aliasing"
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitearch}
#%%check
# no tests on upstream
Accepting request 591656 from home:mgorse:branches:devel:languages:python - 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. OBS-URL: https://build.opensuse.org/request/show/591656 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pybluez?expand=0&rev=12
2018-03-27 15:04:45 +00:00
%files %{python_files}
%license COPYING
%doc CHANGELOG README.md
Accepting request 591656 from home:mgorse:branches:devel:languages:python - 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. OBS-URL: https://build.opensuse.org/request/show/591656 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pybluez?expand=0&rev=12
2018-03-27 15:04:45 +00:00
%{python_sitearch}/bluetooth/
%{python_sitearch}/[Pp]y[Bb]luez-%{pkg_version}*-info
%changelog