## START: Set by rpmautospec ## (rpmautospec version 0.6.0) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec Name: esptool Version: 4.8.1 Release: %autorelease Summary: A utility to communicate with the ROM bootloader in Espressif ESP8266 & ESP32 License: GPL-2.0-or-later URL: https://github.com/espressif/%{name} Source: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz # https://github.com/espressif/esptool/issues/1013 Patch: Don-t-test-ecdsa192-it-s-unsupported-on-Fedora.patch BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3-pytest BuildRequires: python3-pyelftools BuildRequires: python3-requests Provides: %{name}.py = %{version}-%{release} %description %{name}.py A command line utility to communicate with the ROM bootloader in Espressif ESP8266 & ESP32 WiFi microcontroller. Allows flashing firmware, reading back firmware, querying chip parameters, etc. Developed by the community, not by Espressif Systems. %prep %autosetup -p1 %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files esptool espefuse espsecure esp_rfc2217_server for NAME in %{name} espefuse espsecure esp_rfc2217_server ; do ln -s ./$NAME.py %{buildroot}%{_bindir}/$NAME done %check # There is esptool[hsm] which pulls additional requirement on python-pkcs11 # It is not yet packaged in Fedora though %pyproject_check_import -e 'espsecure.esp_hsm_sign*' %pytest -m host_test --ignore test/test_espsecure_hsm.py %files -f %{pyproject_files} %doc README.md %{_bindir}/%{name} %{_bindir}/%{name}.py %{_bindir}/espefuse %{_bindir}/espefuse.py %{_bindir}/espsecure %{_bindir}/espsecure.py %{_bindir}/esp_rfc2217_server %{_bindir}/esp_rfc2217_server.py %changelog ## START: Generated by rpmautospec * Fri Sep 27 2024 Karolina Surma - 4.8.1-1 - Update to 4.8.1 * Wed Jul 17 2024 Fedora Release Engineering - 4.7.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Fri Jun 07 2024 Python Maint - 4.7.0-5 - Rebuilt for Python 3.13 * Wed Jan 24 2024 Fedora Release Engineering - 4.7.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jan 19 2024 Fedora Release Engineering - 4.7.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Thu Dec 14 2023 Karolina Surma - 4.7.0-1 - Update to 4.7.0 Resolves: rhbz#2228646 * Wed Jul 19 2023 Fedora Release Engineering - 4.6.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Wed Jun 21 2023 Karolina Surma - 4.6.2-1 - Update to 4.6.2 Resolves: rhbz#2182967 * Thu Jun 15 2023 Python Maint - 4.5.1-3 - Rebuilt for Python 3.12 * Tue Apr 11 2023 Karolina Surma - 4.5.1-2 - Relax the requirement on python3-reedsolo to fix FTI Resolves: rhbz#2185836 * Wed Mar 08 2023 Karolina Surma - 4.5.1-1 - Update to 4.5.1 Resolves: rhbz#2159572 * Thu Jan 19 2023 Fedora Release Engineering - 4.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Tue Nov 29 2022 Karolina Surma - 4.4-1 - Update to 4.4 Resolves: rhbz#2144654 * Wed Sep 21 2022 Karolina Surma - 4.3-1 - Update to 4.3 Resolves: rhbz#2126964 * Wed Aug 10 2022 Karolina Surma - 4.2.1-1 - Update to 4.2.1 Resolves: rhbz#2114692 * Thu Jul 21 2022 Fedora Release Engineering - 4.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Tue Jun 21 2022 Karolina Surma - 4.1-3 - Gracefully finish esptool when port can't be open Resolves: rhbz#2092910 * Tue Jun 14 2022 Python Maint - 4.1-2 - Rebuilt for Python 3.11 * Fri May 27 2022 Karolina Surma - 4.1-1 - Update to 4.1 Resolves: rhbz#2084581 * Mon Apr 11 2022 Karolina Surma - 3.3-1 - Update to 3.3 Resolves: rhbz#2066963 * Thu Jan 20 2022 Fedora Release Engineering - 3.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Wed Nov 03 2021 Karolina Surma - 3.2-1 - Update to 3.2 Resolves: rhbz#2017113 * Wed Jul 21 2021 Fedora Release Engineering - 3.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 25 2021 Karolina Surma - 3.1-1 - Update to 3.1 Resolves: rhbz#1965558 * Fri Jun 04 2021 Python Maint - 3.0-2 - Rebuilt for Python 3.10 * Tue Apr 06 2021 Karolina Surma - 3.0-1 - Update to 3.0 Resolves: rhbz#1894863 * Tue Jan 26 2021 Fedora Release Engineering - 2.8-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Mon Jul 27 2020 Fedora Release Engineering - 2.8-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Thu May 28 2020 Tomas Hrnciar - 2.8-1 - Update to 2.8 * Tue May 26 2020 Miro Hrončok - 2.7-4 - Rebuilt for Python 3.9 * Tue Jan 28 2020 Fedora Release Engineering - 2.7-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Oct 03 2019 Miro Hrončok - 2.7-2 - Rebuilt for Python 3.8.0rc1 (#1748018) * Tue Aug 27 2019 Miro Hrončok - 2.7-1 - Updated to 2.7 (#1742098) * Mon Aug 19 2019 Miro Hrončok - 2.6-4 - Rebuilt for Python 3.8 * Wed Jul 24 2019 Fedora Release Engineering - 2.6-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Thu Jan 31 2019 Fedora Release Engineering - 2.6-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Wed Jan 09 2019 Miro Hrončok - 2.6-1 - Updated to 2.6 (#1642062) * Tue Jul 31 2018 Miro Hrončok - 2.5.0-1 - Updated to 2.5.0 (#1609436) * Mon Jul 16 2018 Miro Hrončok - 2.4.1-1 - Updated to 2.4.1 (#1592835) * Fri Jul 13 2018 Fedora Release Engineering - 2.3.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Jun 19 2018 Miro Hrončok - 2.3.1-2 - Rebuilt for Python 3.7 * Sat Mar 03 2018 Miro Hrončok - 2.3.1-1 - Updated to 2.3.1 (#1551162) * Wed Feb 07 2018 Fedora Release Engineering - 2.2.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Tue Jan 30 2018 Miro Hrončok - 2.2.1-1 - Updated to 2.2.1 (#1539948) - Update shebang handling - Use automatic dependency generator * Wed Aug 23 2017 Miro Hrončok - 2.1-1 - New version 2.1 (#1484381) * Wed Jul 26 2017 Fedora Release Engineering - 2.0.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Mon Jun 26 2017 Miro Hrončok - 2.0.1-1 - New version 2.0.1 (#1465005) * Thu Jun 22 2017 Miro Hrončok - 2.0-1 - New version 2.0 (#1425422) * Fri Feb 10 2017 Fedora Release Engineering - 1.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Tue Jan 10 2017 Miro Hrončok - 1.3-1 - New version (#1392643) - Use Python 3 * Tue Sep 06 2016 Miro Hrončok - 1.1-1 - Initial package. ## END: Generated by rpmautospec