d670f4c
Name:           esptool
13277f7
Version:        2.8
742efab
Release:        2%{?dist}
d670f4c
Summary:        A utility to communicate with the ROM bootloader in Espressif ESP8266
d670f4c
d670f4c
License:        GPLv2+
d670f4c
URL:            https://github.com/themadinventor/%{name}
c578bca
Source0:        %pypi_source
d670f4c
BuildArch:      noarch
d670f4c
370d873
BuildRequires:  python3-devel
370d873
BuildRequires:  python3-setuptools
28c37eb
5bda87c
%?python_enable_dependency_generator
28c37eb
d670f4c
Provides:       %{name}.py = %{version}-%{release}
d670f4c
d670f4c
%description
d670f4c
%{name}.py A command line utility to communicate with the ROM bootloader in
d670f4c
Espressif ESP8266 WiFi microcontroller. Allows flashing firmware, reading back
d670f4c
firmware, querying chip parameters, etc. Developed by the community, not by
d670f4c
Espressif Systems.
d670f4c
d670f4c
d670f4c
%prep
d670f4c
%autosetup
c578bca
pathfix.py -i %{__python3} -pn esp*.py
d670f4c
d670f4c
%build
370d873
%py3_build
370d873
28c37eb
# Shebangs in site-packages
5bda87c
grep -r '^#!' build/lib/
5bda87c
sed -i 1d $(grep -rl '^#' build/lib/)
5bda87c
d670f4c
d670f4c
%install
370d873
%py3_install
28c37eb
for NAME in %{name} espefuse espsecure ; do
28c37eb
  ln -s ./$NAME.py %{buildroot}%{_bindir}/$NAME
28c37eb
done
d670f4c
d670f4c
d670f4c
%files
d670f4c
%license LICENSE
d670f4c
%doc README.md
d670f4c
%{_bindir}/%{name}
d670f4c
%{_bindir}/%{name}.py
28c37eb
%{_bindir}/espefuse
28c37eb
%{_bindir}/espefuse.py
28c37eb
%{_bindir}/espsecure
28c37eb
%{_bindir}/espsecure.py
28c37eb
%{python3_sitelib}/esp*.py*
0782570
%{python3_sitelib}/%{name}-%{version}-py%{python3_version}.egg-info
28c37eb
%{python3_sitelib}/__pycache__/esp*.*.pyc
d670f4c
d670f4c
%changelog
742efab
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.8-2
742efab
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
742efab
13277f7
* Thu May 28 2020 Tomas Hrnciar <thrnciar@redhat.com> - 2.8-1
13277f7
- Update to 2.8
13277f7
36bdfba
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 2.7-4
36bdfba
- Rebuilt for Python 3.9
36bdfba
3a64d55
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.7-3
3a64d55
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
3a64d55
f80e3c3
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 2.7-2
f80e3c3
- Rebuilt for Python 3.8.0rc1 (#1748018)
f80e3c3
a1fb774
* Tue Aug 27 2019 Miro Hrončok <mhroncok@redhat.com> - 2.7-1
a1fb774
- Updated to 2.7 (#1742098)
a1fb774
38c5457
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 2.6-4
38c5457
- Rebuilt for Python 3.8
38c5457
36ef14c
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.6-3
36ef14c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
36ef14c
6e253e6
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.6-2
6e253e6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
6e253e6
906ebcf
* Wed Jan 09 2019 Miro Hrončok <mhroncok@redhat.com> - 2.6-1
906ebcf
- Updated to 2.6 (#1642062)
906ebcf
ab01190
* Tue Jul 31 2018 Miro Hrončok <mhroncok@redhat.com> - 2.5.0-1
ab01190
- Updated to 2.5.0 (#1609436)
ab01190
c578bca
* Mon Jul 16 2018 Miro Hrončok <mhroncok@redhat.com> - 2.4.1-1
c578bca
- Updated to 2.4.1 (#1592835)
c578bca
e8389fd
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.1-3
e8389fd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
e8389fd
ddc3534
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 2.3.1-2
ddc3534
- Rebuilt for Python 3.7
ddc3534
731dd13
* Sat Mar 03 2018 Miro Hrončok <mhroncok@redhat.com> - 2.3.1-1
731dd13
- Updated to 2.3.1 (#1551162)
731dd13
82cb173
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.1-2
82cb173
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
82cb173
5bda87c
* Tue Jan 30 2018 Miro Hrončok <mhroncok@redhat.com> - 2.2.1-1
5bda87c
- Updated to 2.2.1 (#1539948)
5bda87c
- Update shebang handling
5bda87c
- Use automatic dependency generator
5bda87c
6d7753a
* Wed Aug 23 2017 Miro Hrončok <mhroncok@redhat.com> - 2.1-1
6d7753a
- New version 2.1 (#1484381)
6d7753a
2402afb
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-2
2402afb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
2402afb
3975fd2
* Mon Jun 26 2017 Miro Hrončok <mhroncok@redhat.com> - 2.0.1-1
3975fd2
- New version 2.0.1 (#1465005)
3975fd2
28c37eb
* Thu Jun 22 2017 Miro Hrončok <mhroncok@redhat.com> - 2.0-1
28c37eb
- New version 2.0 (#1425422)
28c37eb
cd8f552
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.3-2
cd8f552
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
cd8f552
370d873
* Tue Jan 10 2017 Miro Hrončok <mhroncok@redhat.com> - 1.3-1
370d873
- New version (#1392643)
370d873
- Use Python 3
370d873
d670f4c
* Tue Sep 06 2016 Miro Hrončok <mhroncok@redhat.com> - 1.1-1
d670f4c
- Initial package.