forked from pool/micropython
Accepting request 886258 from home:musfay:branches:devel:languages:python
- Add patch fix-aarch64-builds.patch - Update to v1.14: * Full release notes: https://github.com/micropython/micropython/releases/tag/v1.14 * Unix port updates: - Makefile: always enable -f*-sections regardless of DEBUG setting - implement BLE H4 HCI UART for btstack/nimble - implement mp_hal_time_ns using gettimeofday - variants: enable MICROPY_DEBUG_PARSE_RULE_NAME on coverage build - mpconfigport.h: enable MICROPY_PY_DELATTR_SETATTR - enable more warnings - support building C++ code - Makefile: move coverage.c and coveragecpp.cpp to coverage variant - handle pending events/scheduler in MICROPY_EVENT_POLL_HOOK - make mp_hal_delay_ms run MICROPY_EVENT_POLL_HOOK - modtime: fix time() precision on unix ports with non-double floats OBS-URL: https://build.opensuse.org/request/show/886258 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/micropython?expand=0&rev=2
This commit is contained in:
@@ -15,19 +15,21 @@
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
Name: micropython
|
||||
Version: 1.13
|
||||
Version: 1.14
|
||||
Release: 0
|
||||
Summary: Implementation of Python 3 with very low memory footprint
|
||||
License: MIT
|
||||
Group: Development/Languages/Python
|
||||
Url: https://micropython.org/
|
||||
URL: https://micropython.org/
|
||||
Source: https://micropython.org/resources/source/%{name}-%{version}.tar.xz
|
||||
Patch: fix-aarch64-builds.patch
|
||||
BuildRequires: openssl
|
||||
BuildRequires: python
|
||||
BuildRequires: python3
|
||||
BuildRequires: readline-devel
|
||||
BuildRequires: pkgconfig(libffi)
|
||||
BuildRequires: python3
|
||||
BuildRequires: python
|
||||
BuildRequires: openssl
|
||||
Recommends: micropython-lib
|
||||
ExcludeArch: %{ix86} %{arm}
|
||||
|
||||
@@ -36,36 +38,31 @@ A lean and efficient Python implementation for microcontrollers and constrained
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch -p1
|
||||
sed -i -e "s:/usr/lib/micropython:%{_prefix}/lib/micropython:g" "ports/unix/main.c"
|
||||
|
||||
%define make_flags V=1 MICROPY_PY_BTREE=0 MICROPY_PY_USSL=0
|
||||
|
||||
%build
|
||||
pushd mpy-cross
|
||||
%make_build
|
||||
popd
|
||||
pushd ports/unix
|
||||
%make_build micropython
|
||||
popd
|
||||
%make_build -C mpy-cross
|
||||
%make_build -C ports/unix micropython
|
||||
|
||||
%install
|
||||
install -d %{buildroot}%{_bindir}
|
||||
install -t %{buildroot}%{_bindir} ports/unix/micropython
|
||||
install -t %{buildroot}%{_bindir} ports/unix/micropython
|
||||
|
||||
%ifnarch aarch64
|
||||
# aarch64: 2 tests failed: float_parse float_parse_doubleprec
|
||||
# https://github.com/micropython/micropython/issues/4176
|
||||
%check
|
||||
pushd ports/unix
|
||||
export MICROPY_CPYTHON3=python3
|
||||
make PYTHON=%{__python3} V=1 test
|
||||
popd
|
||||
make -C ports/unix PYTHON=%{__python3} V=1 test
|
||||
%endif
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc LICENSE
|
||||
%license LICENSE
|
||||
%doc docs/unix/*
|
||||
%{_bindir}/micropython
|
||||
|
||||
%changelog
|
||||
|
||||
|
||||
Reference in New Issue
Block a user