File python-pyubx2.spec of Package python-pyubx2
#
# spec file for package python-pyubx2
#
# Copyright (c) 2022 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 pythons python3
Name: python-pyubx2
Version: 1.2.11
Release: 0
Summary: UBX Protocol Parser
License: BSD-3-Clause
Group: Development/Libraries/Python
URL: https://github.com/semuconsulting/pyubx2
Source: https://files.pythonhosted.org/packages/source/p/pyubx2/pyubx2-%{version}.tar.gz
BuildRequires: python-rpm-macros
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module pynmeagps >= 1.0.13}
BuildRequires: %{python_module pyrtcm >= 0.2.6beta}
BuildRequires: fdupes
BuildArch: noarch
%python_subpackages
%description
pyubx2 is an original Python 3 library for the UBX © protocol. UBX is a proprietary binary protocol implemented on u-blox ™ GNSS/GPS receiver modules.
The pyubx2 homepage is located at https://github.com/semuconsulting/pyubx2.
This is an independent project and we have no affiliation whatsoever with u-blox.
FYI There is a companion library pynmeagps, which handles standard NMEA 0183 © GNSS/GPS messages.
%prep
%setup -q -n pyubx2-%{version}
%build
%python_build
%install
%python_install
%python_clone -a %{buildroot}%{_bindir}/gnssdump
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%post
%python_install_alternative gnssdump
%postun
%python_uninstall_alternative gnssdump
%files %{python_files}
%doc README.md
%license LICENSE
%python_alternative %{_bindir}/gnssdump
%{python_sitelib}/*
%changelog