File openant.spec of Package openant
#
# spec file for package openant
#
# Copyright (c) 2024-2025, Martin Hauke <mardnh@gmx.de>
#
# 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 pythons python3
Name: openant
Version: 1.3.4
Release: 0
Summary: ANT, ANT-FS and ANT+ Python Library
License: MIT
Group: Development/Languages/Python
URL: https://github.com/Tigge/openant/
Source: https://github.com/Tigge/openant/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: python3-pip
BuildRequires: python3-setuptools
BuildRequires: python3-wheel
BuildRequires: python3-pyusb
Requires: python3-pyusb
BuildArch: noarch
%description
ANT, ANT-FS and ANT+ Python Library
%prep
%autosetup -p1 -n openant-%{version}
sed 's/\r$//' -i examples/{broadcast_send.py,continuous_scan.py}
%build
%pyproject_wheel
%install
%pyproject_install
%fdupes %{buildroot}%{python3_sitelib}
%files
%license LICENSE
%doc README.md
%doc examples/
%{_bindir}/openant
%{python3_sitelib}/openant*
%changelog