14
0
forked from pool/python-nkdfu
2023-05-13 19:40:40 +00:00
committed by Git OBS Bridge
parent 44bd42f93c
commit e45af46539
2 changed files with 19 additions and 6 deletions

View File

@@ -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>

View File

@@ -21,18 +21,22 @@ Name: python-nkdfu
Version: 0.2
Release: 0
Summary: DFU tool for updating Nitrokeys' firmware
License: GPL-2.0
License: GPL-2.0-only
URL: https://github.com/Nitrokey/nkdfu
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 pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
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(postun): update-alternatives
Requires(postun):update-alternatives
BuildArch: noarch
%python_subpackages
%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.
%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
%pyproject_wheel
@@ -62,6 +69,7 @@ Based on python-dfu project, which brings implementation of USB DFU 1.1 spec.
%doc README.md
%license LICENSE
%python_alternative %{_bindir}/nkdfu
%{python_sitelib}/*
%{python_sitelib}/nkdfu
%{python_sitelib}/nkdfu-%{version}*-info
%changelog