| |
@@ -1,25 +1,21 @@
|
| |
Name: esptool
|
| |
- Version: 3.1
|
| |
- Release: 2%{?dist}
|
| |
+ Version: 3.3.1
|
| |
+ Release: 1%{?dist}
|
| |
Summary: A utility to communicate with the ROM bootloader in Espressif ESP8266 & ESP32
|
| |
|
| |
License: GPLv2+
|
| |
- URL: https://github.com/themadinventor/%{name}
|
| |
+ URL: https://github.com/espressif/%{name}
|
| |
Source0: %pypi_source
|
| |
BuildArch: noarch
|
| |
|
| |
- # esptool 3.1 added dependency on wheel to solve problem occuring when installing via pip
|
| |
- # As this is not needed in our environment, we backport a patch that doesn't make it mandatory
|
| |
- # It shall land in esptool 3.2
|
| |
- Patch1: https://github.com/espressif/esptool/pull/632.patch
|
| |
-
|
| |
BuildRequires: python3-devel
|
| |
- BuildRequires: python3-setuptools
|
| |
-
|
| |
- %?python_enable_dependency_generator
|
| |
|
| |
Provides: %{name}.py = %{version}-%{release}
|
| |
|
| |
+ # Gracefully finish esptool when the port cannot be open
|
| |
+ # Merged upstream: https://github.com/espressif/esptool/pull/751
|
| |
+ Patch: Gracefully-finish-esptool-when-port-cannot-be-open.patch
|
| |
+
|
| |
%description
|
| |
%{name}.py A command line utility to communicate with the ROM bootloader in
|
| |
Espressif ESP8266 & ESP32 WiFi microcontroller. Allows flashing firmware,
|
| |
@@ -29,25 +25,34 @@
|
| |
|
| |
%prep
|
| |
%autosetup -p1
|
| |
- pathfix.py -i %{__python3} -pn esp*.py
|
| |
|
| |
- %build
|
| |
- %py3_build
|
| |
|
| |
- # Shebangs in site-packages
|
| |
- grep -r '^#!' build/lib/
|
| |
- sed -i 1d $(grep -rl '^#' build/lib/)
|
| |
+ %generate_buildrequires
|
| |
+ %pyproject_buildrequires
|
| |
+
|
| |
+
|
| |
+ %build
|
| |
+ %pyproject_wheel
|
| |
|
| |
|
| |
%install
|
| |
- %py3_install
|
| |
+ %pyproject_install
|
| |
+ %pyproject_save_files esptool espefuse espsecure espressif
|
| |
+
|
| |
+ # Remove shebangs from site-packages
|
| |
+ grep -r '^#!' %{buildroot}%{python3_sitelib}
|
| |
+ sed -i 1d $(grep -rl '^#!' %{buildroot}%{python3_sitelib})
|
| |
+
|
| |
for NAME in %{name} espefuse espsecure ; do
|
| |
ln -s ./$NAME.py %{buildroot}%{_bindir}/$NAME
|
| |
done
|
| |
|
| |
|
| |
- %files
|
| |
- %license LICENSE
|
| |
+ %check
|
| |
+ %pyproject_check_import
|
| |
+
|
| |
+
|
| |
+ %files -f %{pyproject_files}
|
| |
%doc README.md
|
| |
%{_bindir}/%{name}
|
| |
%{_bindir}/%{name}.py
|
| |
@@ -55,12 +60,27 @@
|
| |
%{_bindir}/espefuse.py
|
| |
%{_bindir}/espsecure
|
| |
%{_bindir}/espsecure.py
|
| |
- %{python3_sitelib}/espressif/
|
| |
- %{python3_sitelib}/esp*.py*
|
| |
- %{python3_sitelib}/%{name}-%{version}-py%{python3_version}.egg-info
|
| |
- %{python3_sitelib}/__pycache__/esp*.*.pyc
|
| |
+
|
| |
|
| |
%changelog
|
| |
+ * Wed Jun 22 2022 Karolina Surma <ksurma@redhat.com> - 3.3.1-1
|
| |
+ - Update to 3.3.1
|
| |
+
|
| |
+ * Mon Jun 13 2022 Karolina Surma <ksurma@redhat.com> - 3.3-2
|
| |
+ - Gracefully finish esptool when port can't be open
|
| |
+ Resolves: rhbz#2092910
|
| |
+
|
| |
+ * Mon Apr 11 2022 Karolina Surma <ksurma@redhat.com> - 3.3-1
|
| |
+ - Update to 3.3
|
| |
+ Resolves: rhbz#2066963
|
| |
+
|
| |
+ * Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.2-2
|
| |
+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
| |
+
|
| |
+ * Wed Nov 03 2021 Karolina Surma <ksurma@redhat.com> - 3.2-1
|
| |
+ - Update to 3.2
|
| |
+ Resolves: rhbz#2017113
|
| |
+
|
| |
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.1-2
|
| |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
| |
|
| |