From b6f64689adf6d4e610f30944dd63efe39c0b9dc5ad4b917b15b5f4a3da061cac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Thu, 17 Feb 2022 07:34:26 +0000 Subject: [PATCH 1/3] [info=1d7098fe10526c5fad2834e70cdea1772989259f] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-orangebox?expand=0&rev=5 --- orangebox.obscpio | 2 +- python-orangebox.spec | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/orangebox.obscpio b/orangebox.obscpio index 3006df2..816ed62 100644 --- a/orangebox.obscpio +++ b/orangebox.obscpio @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:903139e9aaaff79ed1fa0082efb9cccd9b31b94ef7b72807ff61a32f4b052738 +oid sha256:6f7ce2f4a40ad14cd75edc9e812027c0b3ec14f859da8ec2be1b6d4829cbec53 size 203740 diff --git a/python-orangebox.spec b/python-orangebox.spec index 7d3dc40..21606bb 100644 --- a/python-orangebox.spec +++ b/python-orangebox.spec @@ -1,5 +1,5 @@ # -# spec file for package python-wakeonlan +# spec file for package python-orangebox # # Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # @@ -37,6 +37,8 @@ BuildArch: noarch %python_subpackages %description +Betaflight blackbox recording tooling. It provides a CLI tool and +also python modules. %prep %setup -q -n orangebox -c -T @@ -62,5 +64,5 @@ export CFLAGS="%{optflags}" %files %{python_files} %python_alternative %_bindir/bb2csv %python_alternative %_bindir/bbsplit -%{python_sitelib}/* +%{python_sitelib}/orangebox* From 6880eb00c7a19f6736b34a0e98fef2908270497b1085a36378ec56dd241c8ea8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Tue, 7 Jun 2022 06:57:32 +0000 Subject: [PATCH 2/3] [info=339dcbf79333df7675a09de7c1d0564416130b03] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-orangebox?expand=0&rev=6 --- orangebox.obscpio | 4 ++-- python-orangebox.changes | 6 ++++++ python-orangebox.spec | 29 +++++++++++++++++------------ 3 files changed, 25 insertions(+), 14 deletions(-) diff --git a/orangebox.obscpio b/orangebox.obscpio index 816ed62..ede6ef5 100644 --- a/orangebox.obscpio +++ b/orangebox.obscpio @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:6f7ce2f4a40ad14cd75edc9e812027c0b3ec14f859da8ec2be1b6d4829cbec53 -size 203740 +oid sha256:e1da4a4293bbab40d88c9cb12c5c14d0b6b7191a904a6864aace1df09d9d0496 +size 203724 diff --git a/python-orangebox.changes b/python-orangebox.changes index 4fb0746..c1e084e 100644 --- a/python-orangebox.changes +++ b/python-orangebox.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Jun 3 14:39:47 UTC 2022 - Matej Cepl + +- 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 diff --git a/python-orangebox.spec b/python-orangebox.spec index 21606bb..f444fd0 100644 --- a/python-orangebox.spec +++ b/python-orangebox.spec @@ -1,7 +1,7 @@ # # 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 # 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) # 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-%{**}} @@ -21,18 +22,18 @@ Name: python-orangebox Version: 0.2.0 Release: 0 -License: GPL-3.0-or-later Summary: Betaflight blackbox flight recorder parser +License: GPL-3.0-or-later 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 BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires(post): update-alternatives Requires(postun): update-alternatives - BuildArch: noarch %python_subpackages @@ -41,17 +42,19 @@ Betaflight blackbox recording tooling. It provides a CLI tool and also python modules. %prep -%setup -q -n orangebox -c -T -cp -a %_sourcedir/orangebox/* . +%autosetup -p1 -n orangebox -c -T + +cp -a %{_sourcedir}/orangebox/* . %build export CFLAGS="%{optflags}" -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_clone -a %{buildroot}%{_bindir}/bb2csv %python_clone -a %{buildroot}%{_bindir}/bbsplit +%python_expand %fdupes %{buildroot}%{$python_sitelib} %post %python_install_alternative bb2csv @@ -62,7 +65,9 @@ export CFLAGS="%{optflags}" %python_uninstall_alternative bbsplit %files %{python_files} -%python_alternative %_bindir/bb2csv -%python_alternative %_bindir/bbsplit -%{python_sitelib}/orangebox* +%python_alternative %{_bindir}/bb2csv +%python_alternative %{_bindir}/bbsplit +%{python_sitelib}/orangebox +%{python_sitelib}/orangebox-%{version}*-info +%changelog From ac71b2019b3fb873c8f8f1b10db8e2111681945c3837c9e37ec4f330127e8ed9 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 7 Jun 2022 16:05:04 +0000 Subject: [PATCH 3/3] [info=339dcbf79333df7675a09de7c1d0564416130b03] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-orangebox?expand=0&rev=7 --- orangebox.obscpio | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/orangebox.obscpio b/orangebox.obscpio index ede6ef5..3472696 100644 --- a/orangebox.obscpio +++ b/orangebox.obscpio @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:e1da4a4293bbab40d88c9cb12c5c14d0b6b7191a904a6864aace1df09d9d0496 +oid sha256:375c493e9dac93a8f166c72937ad3fe347114425b8736bce1ce7219b884ce9b2 size 203724