forked from adrianSuSE/git-example-4
Switch from setup.py to pip-drive workflow.
Also, clean up the SPEC file to follow more style of other Python packages.
This commit is contained in:
parent
1d7098fe10
commit
f1ad3497e8
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Jun 3 14:39:47 UTC 2022 - Matej Cepl <mcepl@suse.com>
|
||||||
|
|
||||||
|
- Switch from setup.py to pip-driven workflow.
|
||||||
|
- Clean up the SPEC file to follow more style of other Python packages.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Feb 16 10:20:44 UTC 2022 - Adrian Schröter <adrian@suse.de>
|
Wed Feb 16 10:20:44 UTC 2022 - Adrian Schröter <adrian@suse.de>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-orangebox
|
# spec file for package python-orangebox
|
||||||
#
|
#
|
||||||
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2022 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -12,7 +12,8 @@
|
|||||||
# license that conforms to the Open Source Definition (Version 1.9)
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
# published by the Open Source Initiative.
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
@ -21,18 +22,18 @@
|
|||||||
Name: python-orangebox
|
Name: python-orangebox
|
||||||
Version: 0.2.0
|
Version: 0.2.0
|
||||||
Release: 0
|
Release: 0
|
||||||
License: GPL-3.0-or-later
|
|
||||||
Summary: Betaflight blackbox flight recorder parser
|
Summary: Betaflight blackbox flight recorder parser
|
||||||
|
License: GPL-3.0-or-later
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
Url: https://github.com/atomgomba/orangebox
|
URL: https://github.com/atomgomba/orangebox
|
||||||
#!RemoteAssetUrl: git+https://github.com/atomgomba/orangebox#v0.2.0
|
#!RemoteAssetUrl: git+https://github.com/atomgomba/orangebox#v0.2.0
|
||||||
BuildRequires: %{python_module pip}
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
|
BuildRequires: %{python_module wheel}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(postun): update-alternatives
|
Requires(postun): update-alternatives
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
@ -41,17 +42,19 @@ Betaflight blackbox recording tooling. It provides a CLI tool and
|
|||||||
also python modules.
|
also python modules.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n orangebox -c -T
|
%autosetup -p1 -n orangebox -c -T
|
||||||
cp -a %_sourcedir/orangebox/* .
|
|
||||||
|
cp -a %{_sourcedir}/orangebox/* .
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export CFLAGS="%{optflags}"
|
export CFLAGS="%{optflags}"
|
||||||
%python_build
|
%pyproject_wheel
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%pyproject_install
|
||||||
%python_clone -a %{buildroot}%{_bindir}/bb2csv
|
%python_clone -a %{buildroot}%{_bindir}/bb2csv
|
||||||
%python_clone -a %{buildroot}%{_bindir}/bbsplit
|
%python_clone -a %{buildroot}%{_bindir}/bbsplit
|
||||||
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%post
|
%post
|
||||||
%python_install_alternative bb2csv
|
%python_install_alternative bb2csv
|
||||||
@ -62,7 +65,9 @@ export CFLAGS="%{optflags}"
|
|||||||
%python_uninstall_alternative bbsplit
|
%python_uninstall_alternative bbsplit
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%python_alternative %_bindir/bb2csv
|
%python_alternative %{_bindir}/bb2csv
|
||||||
%python_alternative %_bindir/bbsplit
|
%python_alternative %{_bindir}/bbsplit
|
||||||
%{python_sitelib}/orangebox*
|
%{python_sitelib}/orangebox
|
||||||
|
%{python_sitelib}/orangebox-%{version}*-info
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user