diff --git a/python-nkdfu.changes b/python-nkdfu.changes index 91a8e38..1fa4009 100644 --- a/python-nkdfu.changes +++ b/python-nkdfu.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sat May 13 19:40:32 UTC 2023 - Matej Cepl + +- Clean up SPEC file + ------------------------------------------------------------------- Thu May 11 19:42:03 UTC 2023 - Johannes Kastl diff --git a/python-nkdfu.spec b/python-nkdfu.spec index 9d7a154..c682bf5 100644 --- a/python-nkdfu.spec +++ b/python-nkdfu.spec @@ -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