3e6accf
Name:           uflash
a768844
Version:        2.0.0
20b1cd7
Release:        2%{?dist}
3e6accf
Summary:        A module and utility to flash Python onto the BBC micro:bit
3e6accf
License:        MIT
3e6accf
URL:            https://github.com/ntoll/uflash
0ab1c57
Source0:        %pypi_source
3763eb6
3763eb6
# For tests, they don't have tags
a768844
%define hash    147ea945fbe841b0ae17888ab60a60c6080b1225
3763eb6
Source1:        https://github.com/ntoll/uflash/archive/%{hash}.tar.gz
3763eb6
BuildRequires:  python3-pytest
3763eb6
91908d8
BuildRequires:  python3-devel
91908d8
BuildRequires:  python3-setuptools
91908d8
BuildRequires:  python3-nudatus
638bfbe
91908d8
Requires:       python3-setuptools
91908d8
Recommends:     python3-nudatus
638bfbe
3e6accf
BuildArch:      noarch
3e6accf
638bfbe
# Other tools are using this as a module, so provide also the python3- name
638bfbe
Provides:       python3-%{name} == %{version}-%{release}
638bfbe
%{?python_provide:%python_provide python3-%{name}}
3e6accf
3e6accf
%description
3e6accf
A utility for flashing the BBC micro:bit with Python scripts and the
3e6accf
MicroPython runtime. You pronounce the name of this utility "micro-flash". ;-)
3e6accf
It provides two services. A library of functions to programatically create a
3e6accf
hex file and flash it onto a BBC micro:bit.  A command line utility called
3e6accf
uflash that will flash Python scripts onto a BBC micro:bit.
3e6accf
3e6accf
3e6accf
%prep
3e6accf
%setup -q
3e6accf
3e6accf
3e6accf
%build
3763eb6
%py3_build
3e6accf
3e6accf
%install
3763eb6
%py3_install
3e6accf
3763eb6
%check
3763eb6
tar -xf %{SOURCE1}
3763eb6
mv %{name}-%{hash}/tests .
3763eb6
rm -rf %{name}-%{hash}
396bfc8
91908d8
py.test-3 -vv
3e6accf
3e6accf
%files
3763eb6
%doc README.rst CHANGES.rst
3763eb6
%license LICENSE
3e6accf
%{_bindir}/uflash
a768844
%{_bindir}/py2hex
3e6accf
%{python3_sitelib}/uflash*
3e6accf
%{python3_sitelib}/__pycache__/uflash*
3e6accf
3e6accf
3e6accf
3e6accf
%changelog
20b1cd7
* Wed Apr 27 2022 Miro Hrončok <mhroncok@redhat.com> - 2.0.0-2
20b1cd7
- Rebuilt
20b1cd7
a768844
* Mon Apr 11 2022 Lumír Balhar <lbalhar@redhat.com> - 2.0.0-1
a768844
- Update to 2.0.0
a768844
Resolves: rhbz#1742639
a768844
f5c9567
* Sat Jan 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-12
f5c9567
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
f5c9567
0f078b2
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-11
0f078b2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
0f078b2
35ad83d
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 1.2.1-10
35ad83d
- Rebuilt for Python 3.10
35ad83d
e11fdfc
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-9
e11fdfc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
e11fdfc
3308151
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-8
3308151
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
3308151
eeae951
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.2.1-7
eeae951
- Rebuilt for Python 3.9
eeae951
5484af5
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-6
5484af5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
5484af5
a2db826
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.2.1-5
a2db826
- Rebuilt for Python 3.8.0rc1 (#1748018)
a2db826
be742d1
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.2.1-4
be742d1
- Rebuilt for Python 3.8
be742d1
60b9231
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-3
60b9231
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
60b9231
c82bc5f
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-2
c82bc5f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
c82bc5f
ca48718
* Wed Aug 29 2018 Miro Hrončok <mhroncok@redhat.com> - 1.2.1-1
ca48718
- Update to 1.2.1 (#1605196)
ca48718
ab59840
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-2
ab59840
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
ab59840
0ab1c57
* Mon Jul 09 2018 Miro Hrončok <mhroncok@redhat.com> - 1.2.0-1
0ab1c57
- Update to 1.2.0 (#1594545)
0ab1c57
6e14c06
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.1.2-4
6e14c06
- Rebuilt for Python 3.7
6e14c06
28d7259
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.1.2-3
28d7259
- Rebuilt for Python 3.7
28d7259
91908d8
* Tue Apr 10 2018 Miro Hrončok <mhroncok@redhat.com> - 1.1.2-2
91908d8
- BR and recommend nudatus
91908d8
638bfbe
* Tue Apr 10 2018 Miro Hrončok <mhroncok@redhat.com> - 1.1.2-1
638bfbe
- Update to 1.1.2
638bfbe
- Provide python3-uflash
638bfbe
eb1fd3c
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.3-5
eb1fd3c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
eb1fd3c
e6b5fb6
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.3-4
e6b5fb6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
e6b5fb6
192574d
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.3-3
192574d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
192574d
8659b5b
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 1.0.3-2
8659b5b
- Rebuild for Python 3.6
8659b5b
3763eb6
* Tue Aug 16 2016 Miro Hrončok <mhroncok@redhat.com> - 1.0.3-1
3763eb6
- Update to 1.0.3
3763eb6
- Use new %%py3_ macros for build and install
3763eb6
- Update source URL
3763eb6
- Include LICENSE and CHANGES.rst
3763eb6
- Require setuptools for entrypoints
3763eb6
- Add tests
3763eb6
546aaf7
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.18b0-2
546aaf7
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
546aaf7
3e6accf
* Mon Jan 18 2016 Kushal Das <kushal@fedoraprojects.org> - 0.9.18b0-1
3e6accf
- Initial package creation