File python-pynmeagps.spec of Package python-pynmeagps

#
# spec file for package python-pynmeagps
#
# 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-pynmeagps
Version:        1.0.13
Release:        0
Summary:        NMEA Protocol Parser
License:        BSD-3-Clause
Group:          Development/Libraries/Python
URL:            https://github.com/semuconsulting/pynmeagps
Source:         https://files.pythonhosted.org/packages/source/p/pynmeagps/pynmeagps-%{version}.tar.gz
BuildRequires:  python-rpm-macros
BuildRequires:  %{python_module setuptools}
BuildRequires:  fdupes
BuildArch:      noarch
%python_subpackages

%description
pynmeagps is an original Python library aimed primarily at the subset of the NMEA 0183 © v4 protocol relevant to GNSS/GPS receivers - that is, NMEA 0183 'talkers' 'Gx' (standard) or 'Px' (proprietary).

The intention is to make it as easy as possible to read, parse and utilise NMEA GNSS/GPS messages in Python applications.

The pynmeagps homepage is located at https://github.com/semuconsulting/pynmeagps.

FYI There is a companion library pyubx2, which handles u-blox ™ UBX © protocol GNSS/GPS messages.

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

%build
%python_build

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

%post
%python_install_alternative nmeadump

%postun
%python_uninstall_alternative nmeadump

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

%changelog
openSUSE Build Service is sponsored by