forked from pool/python-nkdfu
- Clean up SPEC file
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-nkdfu?expand=0&rev=2
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat May 13 19:40:32 UTC 2023 - Matej Cepl <mcepl@suse.com>
|
||||||
|
|
||||||
|
- Clean up SPEC file
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu May 11 19:42:03 UTC 2023 - Johannes Kastl <kastl@b1-systems.de>
|
Thu May 11 19:42:03 UTC 2023 - Johannes Kastl <kastl@b1-systems.de>
|
||||||
|
|
||||||
|
|||||||
@@ -21,18 +21,22 @@ Name: python-nkdfu
|
|||||||
Version: 0.2
|
Version: 0.2
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: DFU tool for updating Nitrokeys' firmware
|
Summary: DFU tool for updating Nitrokeys' firmware
|
||||||
License: GPL-2.0
|
License: GPL-2.0-only
|
||||||
URL: https://github.com/Nitrokey/nkdfu
|
URL: https://github.com/Nitrokey/nkdfu
|
||||||
Source: https://files.pythonhosted.org/packages/source/n/nkdfu/nkdfu-0.2.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/n/nkdfu/nkdfu-0.2.tar.gz
|
||||||
BuildRequires: python-rpm-macros
|
|
||||||
BuildRequires: %{python_module flit}
|
BuildRequires: %{python_module flit}
|
||||||
BuildRequires: %{python_module pip}
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: %{python_module wheel}
|
BuildRequires: %{python_module wheel}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildArch: noarch
|
BuildRequires: python-rpm-macros
|
||||||
|
Requires: python-fire
|
||||||
|
Requires: python-intelhex
|
||||||
|
Requires: python-libusb1
|
||||||
|
Requires: python-tqdm
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(postun):update-alternatives
|
Requires(postun):update-alternatives
|
||||||
|
BuildArch: noarch
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@@ -40,7 +44,10 @@ nkdfu is a Python DFU tool for updating Nitrokeys' firmware. Currently supports
|
|||||||
Based on python-dfu project, which brings implementation of USB DFU 1.1 spec.
|
Based on python-dfu project, which brings implementation of USB DFU 1.1 spec.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n nkdfu-%{version}
|
%autosetup -p1 -n nkdfu-%{version}
|
||||||
|
|
||||||
|
sed -i -e '1{\@^#![[:blank:]]*%{_bindir}/env python@d}' nkdfu/dfu_flash.py
|
||||||
|
chmod -x nkdfu/dfu_flash.py
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%pyproject_wheel
|
%pyproject_wheel
|
||||||
@@ -62,6 +69,7 @@ Based on python-dfu project, which brings implementation of USB DFU 1.1 spec.
|
|||||||
%doc README.md
|
%doc README.md
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%python_alternative %{_bindir}/nkdfu
|
%python_alternative %{_bindir}/nkdfu
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/nkdfu
|
||||||
|
%{python_sitelib}/nkdfu-%{version}*-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
|||||||
Reference in New Issue
Block a user