## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 10; 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: uflash Version: 2.0.0 Release: %autorelease Summary: A module and utility to flash Python onto the BBC micro:bit License: MIT URL: https://github.com/ntoll/uflash Source0: %pypi_source # For tests, they don't have tags %define hash 147ea945fbe841b0ae17888ab60a60c6080b1225 Source1: https://github.com/ntoll/uflash/archive/%{hash}.tar.gz BuildRequires: python3-pytest BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-nudatus Requires: python3-setuptools Recommends: python3-nudatus BuildArch: noarch # Other tools are using this as a module, so provide also the python3- name Provides: python3-%{name} == %{version}-%{release} %{?python_provide:%python_provide python3-%{name}} %description A utility for flashing the BBC micro:bit with Python scripts and the MicroPython runtime. You pronounce the name of this utility "micro-flash". ;-) It provides two services. A library of functions to programatically create a hex file and flash it onto a BBC micro:bit. A command line utility called uflash that will flash Python scripts onto a BBC micro:bit. %prep %setup -q %build %py3_build %install %py3_install %check tar -xf %{SOURCE1} mv %{name}-%{hash}/tests . rm -rf %{name}-%{hash} py.test-3 -vv %files %doc README.rst CHANGES.rst %license LICENSE %{_bindir}/uflash %{_bindir}/py2hex %{python3_sitelib}/uflash* %{python3_sitelib}/__pycache__/uflash* %changelog ## START: Generated by rpmautospec * Sat Jul 20 2024 Fedora Release Engineering - 2.0.0-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Fri Jun 07 2024 Python Maint - 2.0.0-9 - Rebuilt for Python 3.13 * Sat Jan 27 2024 Fedora Release Engineering - 2.0.0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sat Jul 22 2023 Fedora Release Engineering - 2.0.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Sat Jan 21 2023 Fedora Release Engineering - 2.0.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Sat Jul 23 2022 Fedora Release Engineering - 2.0.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 13 2022 Python Maint - 2.0.0-3 - Rebuilt for Python 3.11 * Wed Apr 27 2022 Miro Hrončok - 2.0.0-2 - Rebuilt * Mon Apr 11 2022 Lumír Balhar - 2.0.0-1 - Update to 2.0.0 Resolves: rhbz#1742639 * Sat Jan 22 2022 Fedora Release Engineering - 1.2.1-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 1.2.1-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 1.2.1-10 - Rebuilt for Python 3.10 * Wed Jan 27 2021 Fedora Release Engineering - 1.2.1-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Jul 29 2020 Fedora Release Engineering - 1.2.1-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue May 26 2020 Miro Hrončok - 1.2.1-7 - Rebuilt for Python 3.9 * Fri Jan 31 2020 Fedora Release Engineering - 1.2.1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Oct 03 2019 Miro Hrončok - 1.2.1-5 - Rebuilt for Python 3.8.0rc1 (#1748018) * Mon Aug 19 2019 Miro Hrončok - 1.2.1-4 - Rebuilt for Python 3.8 * Sat Jul 27 2019 Fedora Release Engineering - 1.2.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sun Feb 03 2019 Fedora Release Engineering - 1.2.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Wed Aug 29 2018 Miro Hrončok - 1.2.1-1 - Update to 1.2.1 (#1605196) * Sat Jul 14 2018 Fedora Release Engineering - 1.2.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Mon Jul 09 2018 Miro Hrončok - 1.2.0-1 - Update to 1.2.0 (#1594545) * Tue Jun 19 2018 Miro Hrončok - 1.1.2-4 - Rebuilt for Python 3.7 * Tue Jun 19 2018 Miro Hrončok - 1.1.2-3 - Rebuilt for Python 3.7 * Tue Apr 10 2018 Miro Hrončok - 1.1.2-2 - BR and recommend nudatus * Tue Apr 10 2018 Miro Hrončok - 1.1.2-1 - Update to 1.1.2 - Provide python3-uflash * Fri Feb 09 2018 Fedora Release Engineering - 1.0.3-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 1.0.3-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sat Feb 11 2017 Fedora Release Engineering - 1.0.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Mon Dec 19 2016 Miro Hrončok - 1.0.3-2 - Rebuild for Python 3.6 * Tue Aug 16 2016 Miro Hrončok - 1.0.3-1 - Update to 1.0.3 - Use new %%py3_ macros for build and install - Update source URL - Include LICENSE and CHANGES.rst - Require setuptools for entrypoints - Add tests * Tue Jul 19 2016 Fedora Release Engineering - 0.9.18b0-2 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages * Mon Jan 18 2016 Kushal Das - 0.9.18b0-1 - Initial package creation ## END: Generated by rpmautospec