14
0
Files
python-pymavlink/python-pymavlink.spec
Dirk Mueller b314cde050 - update to 2.4.41:
* mavfft_pid: allow PID target and error frequencies to be
    visualized
  * Fix Wireshark dissector and add snapshot tests
  * tools: added extract_batch_imu.py
  * examples: added dup_samples.py
  * Fix bitshifting issue on 8bit AVR boards when using msgid >
    255 with generated C libs
  * mavgen_c: added XXX_encode_status bindings
  * mavextra: added RotateMag
  * mavutil: Add circle mode for rover
  * DFReader: recognise VER.BU for build type
  * Generator: Lua: allow strings
  * rotmat: added more euler 321 and 312 functions
  * generators: js: fix sinon dependency to 15.2.0, add node
    tests
  * mavutil: fixed multicast on windows
  * tools: fix mavplayback.py
  * sertotcp: auto-reopen serial port
  * Mavgen WLua: Support 64-bit flag fields
  * mavschema - Typo 10E5 should be 1E5
  * tools: Add option to mavgen.py to return exit code if
    generation fails
  * github: test against Python 3.11
  * fixed mavplayback and split
- Update to version 2.4.35
- Update to version 2.4.34

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pymavlink?expand=0&rev=18
2024-01-05 17:09:40 +00:00

121 lines
4.4 KiB
RPMSpec

#
# spec file for package python-pymavlink
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2019-2021, 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 binaries mavtomfile mavtogpx mavsummarize mavsigloss mavsearch mavplayback mavparms mavparmdiff mavmission mavloss mavlogdump mavlink_bitmask_decoder mavkml mavgraph mavgpslock mavgen mavflighttime mavflightmodes mavfft_isb mavfft mavextract magfit_motors magfit_gps magfit_delta magfit_WMM magfit MPU6KSearch
Name: python-pymavlink
Version: 2.4.41
Release: 0
Summary: Python MAVLink code
License: LGPL-3.0-only
URL: https://github.com/ArduPilot/pymavlink/
Source: https://files.pythonhosted.org/packages/source/p/pymavlink/pymavlink-%{version}.tar.gz
Patch0: remove-future-requirement.patch
BuildRequires: %{python_module devel}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-lxml
Requires(post): update-alternatives
Requires(postun):update-alternatives
# SECTION test requirements
BuildRequires: %{python_module lxml}
# /SECTION
BuildArch: noarch
%python_subpackages
%description
A Python library for handling MAVLink protocol streams and log files.
This allows for the creation of simple scripts to analyse telemetry
logs from autopilots such as ArduPilot which use the MAVLink protocol.
%prep
%autosetup -p1 -n pymavlink-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
# drop shebang
%python_expand find %{buildroot}%{$python_sitelib} -name "*.py" -exec sed -i -e '/^#!\//, 1d' {} \;
# FIXME: remove devel files for now
%python_expand rm -rf %{buildroot}%{$python_sitelib}/pymavlink/generator/C
%python_expand rm -rf %{buildroot}%{$python_sitelib}/pymavlink/generator/CPP11
%python_expand rm -rf %{buildroot}%{$python_sitelib}/pymavlink/mavnative/mavlink_defaults.h
# fix spurious exec permissions
%python_expand find %{buildroot}%{$python_sitelib} -name "*.xml" -exec chmod -x '{}' \;
# strip .py file extension from scripts
%python_expand cd %{buildroot}%{_bindir} && find . -name "*.py" -exec sh -c 'mv $0 `basename "$0" .py`' '{}' \;
for b in %{binaries}; do
%python_clone -a %{buildroot}%{_bindir}/$b
done
#
%python_expand %fdupes %{buildroot}%{$python_sitelib}
# remove unneeded files
rm -f %{buildroot}%{_bindir}/_current_flavor
%check
# no tests in PyPI tarball, no tags in upstream repo
%post
for b in %{binaries}; do
%python_install_alternative $b
done
%postun
for b in %{binaries}; do
%python_uninstall_alternative $b
done
%files %{python_files}
%doc README.md
%python_alternative %{_bindir}/MPU6KSearch
%python_alternative %{_bindir}/magfit
%python_alternative %{_bindir}/magfit_WMM
%python_alternative %{_bindir}/magfit_delta
%python_alternative %{_bindir}/magfit_gps
%python_alternative %{_bindir}/magfit_motors
%python_alternative %{_bindir}/mavextract
%python_alternative %{_bindir}/mavfft
%python_alternative %{_bindir}/mavfft_isb
%python_alternative %{_bindir}/mavflightmodes
%python_alternative %{_bindir}/mavflighttime
%python_alternative %{_bindir}/mavgen
%python_alternative %{_bindir}/mavgpslock
%python_alternative %{_bindir}/mavgraph
%python_alternative %{_bindir}/mavkml
%python_alternative %{_bindir}/mavlink_bitmask_decoder
%python_alternative %{_bindir}/mavlogdump
%python_alternative %{_bindir}/mavloss
%python_alternative %{_bindir}/mavmission
%python_alternative %{_bindir}/mavparmdiff
%python_alternative %{_bindir}/mavparms
%python_alternative %{_bindir}/mavplayback
%python_alternative %{_bindir}/mavsearch
%python_alternative %{_bindir}/mavsigloss
%python_alternative %{_bindir}/mavsummarize
%python_alternative %{_bindir}/mavtogpx
%python_alternative %{_bindir}/mavtomfile
%{python_sitelib}/pymavlink
%{python_sitelib}/pymavlink-%{version}.dist-info
%changelog