15
0
Files
python-esptool/python-esptool.spec
Matej Cepl 825a1bfd39 Accepting request 1185436 from home:adrianSuSE:branches:devel:languages:python
- update to 4.7.0:
  New Features
    * spi_connection: Support --spi-connection on all chips, allowing connection of an external flash
    * esp32-s3: Support >16MB quad flash chips
    * bin_images: add support for intel hex format images
    * merge_bin: add support for uf2 format
    * esptool: added esp32p4 target
    * esp32p4: Stub flasher support
    * espefuse: Support XTS_AES_256_KEY key_purpose for ESP32P4
    * xip_psram: support xip psram feature on esp32p4
    * elf2image: add ram-only-header argument
    * rfc2217_server: Add hard reset sequence
    * espefuse: Adds efuse ADC calibration data for ESP32H2
    * espefuse: Update the way to complete the operation
    * add support for get_security_info on esp32c3 ECO7
    * loader: Added hints for some serial port issues when rising port error
    * Add support for Python 3.12
    * esp32c3: Support ECO6 and ECO7 magic numbers
    * efuse: Update key purpose table and tests
    * efuse: ESP32P4 adds ecdsa_key support
    * espefuse: Add support for esp32p4 chip
    * espsecure: Allow prompting for HSM PIN in read_hsm_config
    * esptool: Add new packages for ESP32C3 and flash efuses
    * esptool: Add tests for get_chip_features
    * esptool: Add PICO package for ESP32S3 and flash/psram efuses
    * get_security_info: Improved the output format and added more details
   Bug Fixes
    * flasher_stub: fix usb-serial-jtag enabled non-related intr source, improved stability
    * esp32c2: Added get_flash_cap and get_flash_vendor
    * testloadram: Windows assertion error

OBS-URL: https://build.opensuse.org/request/show/1185436
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-esptool?expand=0&rev=24
2024-07-04 23:13:40 +00:00

104 lines
3.5 KiB
RPMSpec

#
# spec file for package python-esptool
#
# Copyright (c) 2024 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/
#
Name: python-esptool
Version: 4.7.0
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 base >= 3.7}
BuildRequires: %{python_module bitstring >= 3.1.6}
BuildRequires: %{python_module ecdsa >= 0.16.0}
BuildRequires: %{python_module intelhex}
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-PyYAML >= 5.1
Requires: python-bitstring >= 3.1.6
Requires: python-cryptography >= 2.1.4
Requires: python-ecdsa >= 0.16.0
Requires: python-intelhex
Requires: python-pyserial >= 3.0
Requires: python-reedsolo >= 1.5.3
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
%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_clone -a %{buildroot}%{_bindir}/esp_rfc2217_server.py
%python_expand rm -rf %{buildroot}%{$python_sitelib}/__pycache__/*.pyc
%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
%python_install_alternative esp_rfc2217_server.py
%postun
%python_uninstall_alternative espefuse.py
%python_uninstall_alternative espsecure.py
%python_uninstall_alternative esptool.py
%python_uninstall_alternative esp_rfc2217_server.py
%files %{python_files}
%license LICENSE
%doc README.md
%python_alternative %{_bindir}/esptool.py
%python_alternative %{_bindir}/espsecure.py
%python_alternative %{_bindir}/espefuse.py
%python_alternative %{_bindir}/esp_rfc2217_server.py
%{python_sitelib}/esptool-%{version}-*egg-info
%{python_sitelib}/esptool
%{python_sitelib}/espsecure
%{python_sitelib}/espefuse
%changelog