- Slight improvements in packaging, rpmlint still very unhappy.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bluepy?expand=0&rev=3
This commit is contained in:
2023-05-10 07:45:05 +00:00
committed by Git OBS Bridge
parent 7a1828801a
commit f75ecb1fe4
2 changed files with 14 additions and 12 deletions

View File

@@ -1,5 +1,5 @@
#
# spec file for package python-attrs
# spec file for package python-bluepy
#
# Copyright (c) 2023 SUSE LLC
#
@@ -16,30 +16,28 @@
#
%bcond_with test
%define skip_python2 1
%define skip_python36 1
%bcond_with test
Name: python-bluepy
Version: 1.3.0
Release: 0
Summary: Python interface to Bluetooth LE on Linux
# according to LICENSE.txt:
# - bluez-x.yz is under GPLv2 & LGPLv2
# - everything else is public domain
License: (GPL-2.0-or-later AND LGPL-2.1-or-later) AND SUSE-Public-Domain
Summary: Python interface to Bluetooth LE on Linux
Url: http://ianharvey.github.io/bluepy-doc/
License: GPL-2.0-or-later AND LGPL-2.1-or-later AND SUSE-Public-Domain
URL: https://ianharvey.github.io/bluepy-doc/
Source: bluepy-%{version}.tar.xz
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: glib2-devel
BuildRequires: python-rpm-macros
BuildRequires: unzip
%if %{with test}
BuildRequires: %{python_module pytest}
%endif
%python_subpackages
%description
@@ -51,7 +49,6 @@ Source code and further documentation is at:
https://github.com/IanHarvey/bluepy
http://ianharvey.github.io/bluepy-doc/
%prep
%setup -q -n bluepy-%{version}
@@ -65,7 +62,6 @@ Source code and further documentation is at:
%python_clone -a %{buildroot}%{_bindir}/sensortag
%python_clone -a %{buildroot}%{_bindir}/thingy52
%if %{with test}
%check
sed -i -e "s/'coveralls'/'python-coveralls'/" setup.py
@@ -78,10 +74,11 @@ testvenv-%$python_bin_suffix/bin/python -m pytest && rm -Rf testvenv-%$python_bi
%files %{python_files}
%license LICENSE.txt
%doc README README.md
%doc README README.md
%python_alternative %{_bindir}/blescan
%python_alternative %{_bindir}/sensortag
%python_alternative %{_bindir}/thingy52
%{python_sitelib}/*
%{python_sitelib}/bluepy
%{python_sitelib}/bluepy-%{version}*-info
%changelog