forked from pool/python-esptool
- update to 3.3.2
* New Features
- write_flash: Added the ability to recover from serial errors when flashing,
effectively making data transfers more robust (#182)
- Added more memory density definitions to cover known flash chips (#769)
- Added parsing of stub flasher error definitions in esptool messages
- espefuse.py
- Added XTS_AES_256 key_purpose on ESP32-S3-beta2
- burn_efuse: Improved error messages when a new data value is incorrect (#760)
* Bug Fixes
- load_extended_header: Load the minimum chip revision min_rev field
- Fixed faulty hard_reset() with RTS pin for ESP32-S2/S3 in slower environments
- get_default_connected_device: Fixed closing unused ports
- espefuse.py
- Corrected eFuse tables
- Removed XTS_AES_256 key purposes on ESP32-C3
- Fixed location of FAIL_BIT and NUM_BITS on ESP32-C3
- Added a warning to specify the --port/-p argument if connection fails (#744)
- espsecure.py
- _microecc_format: Pad zeroes to curve length
- Fixed argparse Secure Boot key generation command to work with both V1 and V2
OBS-URL: https://build.opensuse.org/request/show/1033847
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-esptool?expand=0&rev=16
102 lines
3.4 KiB
RPMSpec
102 lines
3.4 KiB
RPMSpec
#
|
|
# spec file for package python-esptool
|
|
#
|
|
# 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
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
%define skip_python2 1
|
|
Name: python-esptool
|
|
Version: 3.3.2
|
|
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://github.com/espressif/esptool/archive/v%{version}.tar.gz#/esptool-%{version}.tar.gz
|
|
BuildRequires: %{python_module bitstring >= 3.1.6}
|
|
BuildRequires: %{python_module ecdsa}
|
|
BuildRequires: %{python_module pyaes}
|
|
BuildRequires: %{python_module pyelftools}
|
|
BuildRequires: %{python_module pyserial >= 3.0}
|
|
BuildRequires: %{python_module pytest}
|
|
BuildRequires: %{python_module reedsolo >= 1.5.3}
|
|
BuildRequires: %{python_module setuptools}
|
|
%if 0%{?python_version_nodots} < 37
|
|
BuildRequires: %{python_module cryptography}
|
|
%endif
|
|
BuildRequires: fdupes
|
|
BuildRequires: openssl
|
|
BuildRequires: python-rpm-macros
|
|
Requires: python-ecdsa
|
|
Requires: python-pyaes
|
|
Requires: python-pyserial >= 3.0
|
|
Requires(post): update-alternatives
|
|
Requires(postun):update-alternatives
|
|
BuildArch: noarch
|
|
%python_subpackages
|
|
|
|
%description
|
|
A command line utility to communicate with the ROM bootloader in Espressif ESP8266 & ESP32 microcontrollers.
|
|
|
|
Allows flashing firmware, reading back firmware, querying chip parameters, etc.
|
|
|
|
%prep
|
|
%setup -q -n esptool-%{version}
|
|
sed -i '/^#!/d' flasher_stub/*.py
|
|
sed -i '/^#!/d' espressif/*.py
|
|
sed -i '/^#!/d' espressif/*/*.py
|
|
sed -i '/^#!/d' espressif/*/*/*.py
|
|
|
|
%build
|
|
%python_build
|
|
|
|
%install
|
|
%python_install
|
|
%python_clone -a %{buildroot}%{_bindir}/espefuse.py
|
|
%python_clone -a %{buildroot}%{_bindir}/espsecure.py
|
|
%python_clone -a %{buildroot}%{_bindir}/esptool.py
|
|
%python_expand sed -i '/^#!/d' %{buildroot}%{$python_sitelib}/*.py
|
|
%python_expand rm -rf %{buildroot}%{$python_sitelib}/__pycache__/*.pyc
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%check
|
|
# there are more tests but upstream runs only those in .travis.yml
|
|
%pytest test/test_imagegen.py
|
|
# pytest test/test_espsecure.py
|
|
|
|
%post
|
|
%python_install_alternative espefuse.py
|
|
%python_install_alternative espsecure.py
|
|
%python_install_alternative esptool.py
|
|
|
|
%postun
|
|
%python_uninstall_alternative espefuse.py
|
|
%python_uninstall_alternative espsecure.py
|
|
%python_uninstall_alternative esptool.py
|
|
|
|
%files %{python_files}
|
|
%license LICENSE
|
|
%doc README.md
|
|
%{_bindir}/esptool.py-%{python_bin_suffix}
|
|
%{_bindir}/espsecure.py-%{python_bin_suffix}
|
|
%{_bindir}/espefuse.py-%{python_bin_suffix}
|
|
%python_alternative %{_bindir}/esptool.py
|
|
%python_alternative %{_bindir}/espsecure.py
|
|
%python_alternative %{_bindir}/espefuse.py
|
|
%{python_sitelib}/*
|
|
|
|
%changelog
|