forked from pool/python-esptool
Accepting request 681073 from home:jayvdb:noflake8
- Remove unnecessary build dependencies on flake8 and plugins - Activate test suite - Add flasher_stub/ to %doc, as it is the source for binary blob in esptool.py - Update to v2.6 OBS-URL: https://build.opensuse.org/request/show/681073 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-esptool?expand=0&rev=6
This commit is contained in:
committed by
Git OBS Bridge
parent
6ce59448be
commit
c9b39a9c56
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-esptool
|
||||
#
|
||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -18,20 +18,20 @@
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-esptool
|
||||
Version: 2.3.1
|
||||
Version: 2.6
|
||||
Release: 0
|
||||
Summary: A serial utility to communicate & flash code to Espressif ESP8266 & ESP32 chips
|
||||
License: GPL-2.0-or-later
|
||||
Group: Development/Languages/Python
|
||||
URL: https://github.com/espressif/esptool
|
||||
Source: https://files.pythonhosted.org/packages/source/e/esptool/esptool-%{version}.tar.gz
|
||||
Source: https://github.com/espressif/esptool/archive/v%{version}.tar.gz#/esptool-%{version}.tar.gz
|
||||
BuildRequires: %{python_module ecdsa}
|
||||
BuildRequires: %{python_module flake8 >= 3.2.0}
|
||||
BuildRequires: %{python_module flake8-future-import}
|
||||
BuildRequires: %{python_module flake8-import-order}
|
||||
BuildRequires: %{python_module pyaes}
|
||||
BuildRequires: %{python_module pyelftools}
|
||||
BuildRequires: %{python_module pyserial >= 2.5}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: openssl
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-ecdsa
|
||||
Requires: python-pyaes
|
||||
@@ -47,6 +47,10 @@ Allows flashing firmware, reading back firmware, querying chip parameters, etc.
|
||||
|
||||
%prep
|
||||
%setup -q -n esptool-%{version}
|
||||
rm -r ecdsa pyaes
|
||||
sed -i '/flake8/d' setup.py
|
||||
sed -i '/^#!/d' flasher_stub/*.py
|
||||
chmod a-x flasher_stub/*.py
|
||||
|
||||
%build
|
||||
%python_build
|
||||
@@ -56,10 +60,15 @@ Allows flashing firmware, reading back firmware, querying chip parameters, etc.
|
||||
%python_clone %{buildroot}%{_bindir}/esptool.py
|
||||
%python_clone %{buildroot}%{_bindir}/espsecure.py
|
||||
%python_clone %{buildroot}%{_bindir}/espefuse.py
|
||||
%python_expand sed -i '/^#!/d' %{buildroot}%{$python_sitelib}/*.py
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
%python_exec setup.py test
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE
|
||||
%doc README.md
|
||||
%doc README.md flasher_stub/
|
||||
%{_bindir}/esptool.py-%{python_bin_suffix}
|
||||
%{_bindir}/espsecure.py-%{python_bin_suffix}
|
||||
%{_bindir}/espefuse.py-%{python_bin_suffix}
|
||||
|
||||
Reference in New Issue
Block a user