3 %bcond_without tests # build without tests
5 Summary: Implementation of Python 3 with very low memory footprint
10 Group: Development/Languages/Python
11 Source0: http://micropython.org/resources/source/%{name}-%{version}.tar.xz
12 # Source0-md5: 134dcca4c286b8be9d2cc738809b7246
13 URL: http://micropython.org/
14 BuildRequires: libffi-devel
15 BuildRequires: mbedtls-devel
16 BuildRequires: pkgconfig
18 BuildRequires: python-modules
20 BuildRequires: python3
21 BuildRequires: python3-modules
23 BuildRequires: readline-devel
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 Implementation of Python 3 with very low memory footprint.
34 # add -I/where/jni.h (do we have a method to get this dir?) is and MICROPY_PY_JNI=1 to make below
36 %{__make} -C ports/unix \
38 CFLAGS_EXTRA="%{rpmcppflags} %{rpmcflags} -Wno-error=maybe-uninitialized" \
39 LDFLAGS_EXTRA="%{rpmldflags}" \
40 MICROPY_SSL_MBEDTLS=1 \
44 %{?with_tests:%{__make} -C ports/unix test}
47 rm -rf $RPM_BUILD_ROOT
49 install -d $RPM_BUILD_ROOT%{_bindir}
50 cp -a ports/unix/micropython $RPM_BUILD_ROOT%{_bindir}
53 rm -rf $RPM_BUILD_ROOT
56 %defattr(644,root,root,755)
58 %attr(755,root,root) %{_bindir}/micropython