diff --git a/.gitignore b/.gitignore index e69de29..f1495eb 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/uflash-0.9.18b0.tar.gz diff --git a/sources b/sources index e69de29..75c8633 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +d2f92c7cc425ede59b8396190e0a571d uflash-0.9.18b0.tar.gz diff --git a/uflash.spec b/uflash.spec new file mode 100644 index 0000000..359ed90 --- /dev/null +++ b/uflash.spec @@ -0,0 +1,44 @@ +Name: uflash +Version: 0.9.18b0 +Release: 1%{?dist} +Summary: A module and utility to flash Python onto the BBC micro:bit +Group: Development/Tools +License: MIT +URL: https://github.com/ntoll/uflash +Source0: https://pypi.python.org/packages/source/u/%{name}/%{name}-%{version}.tar.gz +BuildRequires: python3-devel, python3-setuptools +BuildArch: noarch + + +%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 +%{__python3} setup.py build + +%install +%{__python3} setup.py install -O1 --root $RPM_BUILD_ROOT + + +%files +%doc README.rst +%{_bindir}/uflash +%{python3_sitelib}/uflash* +%{python3_sitelib}/__pycache__/uflash* + + + +%changelog +* Mon Jan 18 2016 Kushal Das - 0.9.18b0-1 +- Initial package creation