2021-12-01 14:13:48 +01:00
|
|
|
#
|
2022-02-17 08:33:46 +01:00
|
|
|
# spec file for package python-orangebox
|
2021-12-01 14:13:48 +01:00
|
|
|
#
|
2022-06-03 16:40:33 +02:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2021-12-01 14:13:48 +01:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2022-06-03 16:40:33 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
2021-12-01 14:13:48 +01:00
|
|
|
|
|
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
|
|
%define skip_python2 1
|
|
|
|
%define skip_python36 1
|
|
|
|
Name: python-orangebox
|
|
|
|
Version: 0.2.0
|
|
|
|
Release: 0
|
|
|
|
Summary: Betaflight blackbox flight recorder parser
|
2022-06-03 16:40:33 +02:00
|
|
|
License: GPL-3.0-or-later
|
2021-12-01 14:13:48 +01:00
|
|
|
Group: Development/Languages/Python
|
2022-06-03 16:40:33 +02:00
|
|
|
URL: https://github.com/atomgomba/orangebox
|
2024-02-21 12:35:54 +01:00
|
|
|
Source: orangebox.tar.xz
|
2021-12-01 14:13:48 +01:00
|
|
|
BuildRequires: %{python_module pip}
|
|
|
|
BuildRequires: %{python_module setuptools}
|
2022-06-03 16:40:33 +02:00
|
|
|
BuildRequires: %{python_module wheel}
|
2021-12-01 14:13:48 +01:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
Requires(post): update-alternatives
|
|
|
|
Requires(postun): update-alternatives
|
|
|
|
BuildArch: noarch
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
2022-02-17 08:33:46 +01:00
|
|
|
Betaflight blackbox recording tooling. It provides a CLI tool and
|
|
|
|
also python modules.
|
2021-12-01 14:13:48 +01:00
|
|
|
|
|
|
|
%prep
|
2022-06-03 16:40:33 +02:00
|
|
|
%autosetup -p1 -n orangebox -c -T
|
|
|
|
|
|
|
|
cp -a %{_sourcedir}/orangebox/* .
|
2021-12-01 14:13:48 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
export CFLAGS="%{optflags}"
|
2022-06-03 16:40:33 +02:00
|
|
|
%pyproject_wheel
|
2021-12-01 14:13:48 +01:00
|
|
|
|
|
|
|
%install
|
2022-06-03 16:40:33 +02:00
|
|
|
%pyproject_install
|
2021-12-01 14:13:48 +01:00
|
|
|
%python_clone -a %{buildroot}%{_bindir}/bb2csv
|
|
|
|
%python_clone -a %{buildroot}%{_bindir}/bbsplit
|
2022-06-03 16:40:33 +02:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2021-12-01 14:13:48 +01:00
|
|
|
|
|
|
|
%post
|
|
|
|
%python_install_alternative bb2csv
|
|
|
|
%python_install_alternative bbsplit
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%python_uninstall_alternative bb2csv
|
|
|
|
%python_uninstall_alternative bbsplit
|
|
|
|
|
|
|
|
%files %{python_files}
|
2022-06-03 16:40:33 +02:00
|
|
|
%python_alternative %{_bindir}/bb2csv
|
|
|
|
%python_alternative %{_bindir}/bbsplit
|
|
|
|
%{python_sitelib}/orangebox
|
|
|
|
%{python_sitelib}/orangebox-%{version}*-info
|
2021-12-01 14:13:48 +01:00
|
|
|
|
2022-06-03 16:40:33 +02:00
|
|
|
%changelog
|