File python-pybluez.spec of Package python-pybluez

#
# 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/
#


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:  fdupes
BuildRequires:  python-devel
BuildRequires:  python-setuptools
BuildRequires:  bluez-devel
Obsoletes:      pybluez < 0.22
Provides:       pybluez = %{version}
Provides:       python-pybluez = %{version}
Provides:       python2-pybluez = %{version}

%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} setup.py build

%install
%{__python} setup.py install --root=%{buildroot}
%fdupes %{buildroot}%{python2_sitearch}

%files
%license COPYING
%doc CHANGELOG README.md
%{python2_sitearch}/bluetooth/
%{python2_sitearch}/PyBluez-%{version}-py*.egg-info

%changelog
openSUSE Build Service is sponsored by