[packages/micropython] - initial

arekm arekm at pld-linux.org
Wed Apr 13 22:47:33 CEST 2016


commit 3de44fe4e5e63eeff1c95be4bbc4599b5554315e
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Wed Apr 13 22:47:20 2016 +0200

    - initial

 micropython.spec | 41 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 41 insertions(+)
---
diff --git a/micropython.spec b/micropython.spec
new file mode 100644
index 0000000..7f81b75
--- /dev/null
+++ b/micropython.spec
@@ -0,0 +1,41 @@
+%bcond_without	tests
+
+Summary:	Implementation of Python 3 with very low memory footprint
+Name:		micropython
+Version:	1.6
+Release:	1
+License:	MIT
+Group:		Development/Languages/Python
+URL:		http://micropython.org/
+Source0:	https://github.com/micropython/micropython/archive/v%{version}.tar.gz
+# Source0-md5:	e5c53c2c19bb454d0854b2ed8896e43c
+BuildRequires:	libffi-devel
+BuildRequires:	python3-devel
+BuildRequires:	readline-devel
+
+%description
+Implementation of Python 3 with very low memory footprint
+
+%prep
+%setup -q
+
+%build
+%{__make} -C unix \
+	CC="%{__cc}" \
+	V=1
+
+%{?with_tests:%{__make} -C unix test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+install -d $RPM_BUILD_ROOT%{_bindir}
+install -pm 755 unix/micropython $RPM_BUILD_ROOT%{_bindir}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README.md
+%attr(755,root,root) %{_bindir}/micropython
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/micropython.git/commitdiff/3de44fe4e5e63eeff1c95be4bbc4599b5554315e



More information about the pld-cvs-commit mailing list