File PyGPSClient.spec of Package PyGPSClient

#
# spec file for package PyGPSClient
#
# 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:           PyGPSClient
Version:        1.3.5
Release:        0
Summary:        PyGPSClient GNSS/GPS Graphical Client
License:        BSD-3-Clause
Group:          Hardware/Other
URL:            https://github.com/semuconsulting/PyGPSClient
Source:         https://files.pythonhosted.org/packages/source/P/PyGPSClient/PyGPSClient-%{version}.tar.gz
BuildRequires:  python-rpm-macros
BuildRequires:  %{python_module setuptools}
BuildRequires:  %{python_module Pillow >= 7.2.0}
BuildRequires:  %{python_module Pillow-tk >= 5.0.0}
BuildRequires:  %{python_module pynmeagps >= 1.0.13}
BuildRequires:  %{python_module pyserial >= 3.4}
BuildRequires:  %{python_module pyubx2 >= 1.2.11}
BuildRequires:  %{python_module requests >= 2.24.0}
BuildRequires:  fdupes
BuildArch:      noarch
%python_subpackages

%description
PyGPSClient is a graphical GNSS/GPS testing, diagnostic and UBX © (u-blox ™) device configuration application written entirely in Python and tkinter.

Features:

        * Supports both NMEA and UBX protocols. It uses the pynmeagps library for NMEA parsing and the pyubx2 library for UBX parsing.
        * Capable of reading from serial/USB port or previously-saved binary datalog file.
        * Configurable GUI with selectable and resizeable widgets.
        * Expandable banner widget showing key navigation information.
        * Serial console widget showing data stream in either parsed, binary or hexadecimal format.
        * Skyview widget showing current satellite visibility and position (elevation / azimuth). Satellite icon borders are colour-coded to distinguish between different GNSS constellations.
        * Graphview widget showing current satellite reception (signal-to-noise ratio).
        * Mapview widget with location marker, showing either a static Mercator world map, or an optional dynamic web-based map downloaded via a MapQuest API (requires an Internet connection and free MapQuest API Key).
        * Data logging in parsed, binary and hexadecimal formats.
        * Track recording in GPX format.
        * UBX Configuration Dialog, with the ability to send a variety of UBX configuration commands to u-blox GNSS devices. This includes the facility to add user-defined commands or command sequences - see instructions under installation below.

%prep
%setup -q -n PyGPSClient-%{version}

%build
%python_build

%install
%python_install
%python_clone -a %{buildroot}%{_bindir}/pygpsclient
%python_expand %fdupes %{buildroot}%{$python_sitelib}

%post
%python_install_alternative pygpsclient

%postun
%python_uninstall_alternative pygpsclient

%files %{python_files}
%doc README.md
%license LICENSE
%python_alternative %{_bindir}/pygpsclient
%{python_sitelib}/*

%changelog
openSUSE Build Service is sponsored by