14
0
Files
python-pybluez/python-pybluez.spec
Tomáš Chvátal b5225f14a1 Accepting request 786420 from home:mcalabkova:branches:devel:languages:python
- 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

OBS-URL: https://build.opensuse.org/request/show/786420
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pybluez?expand=0&rev=14
2020-03-19 11:11:02 +00:00

61 lines
1.8 KiB
RPMSpec

#
# spec file for package python-pybluez
#
# Copyright (c) 2020 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/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-pybluez
Version: 0.23
Release: 0
Summary: A Python Bluetooth wrapper
License: GPL-2.0-or-later
Group: Development/Libraries/Python
URL: https://pybluez.github.io/
Source: https://files.pythonhosted.org/packages/source/P/PyBluez/PyBluez-%{version}.tar.gz
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: bluez-devel
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-%{version}
%build
export CFLAGS="%{optflags} -fno-strict-aliasing"
%python_build
%install
%python_install
#%%check
# no tests on upstream
%files %{python_files}
%license COPYING
%doc CHANGELOG README.md
%{python_sitearch}/bluetooth/
%{python_sitearch}/PyBluez-%{version}-py*.egg-info
%changelog