14
0
forked from pool/micropython

Accepting request 891290 from home:musfay:branches:devel:languages:python

- Update to version 1.15:
  * Full release notes: https://github.com/micropython/micropython/releases/tag/v1.15
  * Unix port updates:
    - mpbtstackport_common: implement mp_bluetooth_hci_active
    - moduselect: don't allow both posix and non-posix configurations
    - improve command line argument processing
    - main: make static variable that's potentially clobbered by longjm 
- Remove patch fix-aarch64-builds.patch
- Exclude ppc64 and ppc64le as build fails for those architectures

OBS-URL: https://build.opensuse.org/request/show/891290
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/micropython?expand=0&rev=3
This commit is contained in:
2021-05-07 12:31:20 +00:00
committed by Git OBS Bridge
parent 714d193d7c
commit c0a6c17603
5 changed files with 20 additions and 42 deletions

View File

@@ -17,28 +17,26 @@
Name: micropython
Version: 1.14
Version: 1.15
Release: 0
Summary: Implementation of Python 3 with very low memory footprint
License: MIT
Group: Development/Languages/Python
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)
Recommends: micropython-lib
ExcludeArch: %{ix86} %{arm}
ExcludeArch: %{ix86} %{arm} ppc64 ppc64le
%description
A lean and efficient Python implementation for microcontrollers and constrained systems
%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
@@ -51,7 +49,8 @@ sed -i -e "s:/usr/lib/micropython:%{_prefix}/lib/micropython:g" "ports/unix/main
install -d %{buildroot}%{_bindir}
install -t %{buildroot}%{_bindir} ports/unix/micropython
%ifnarch aarch64
%ifnarch aarch64 s390x
# s390x: 3 tests failes: float_parse float_parse_doubleprec ffi_callback
# aarch64: 2 tests failed: float_parse float_parse_doubleprec
# https://github.com/micropython/micropython/issues/4176
%check
@@ -60,7 +59,6 @@ make -C ports/unix PYTHON=%{__python3} V=1 test
%endif
%files
%defattr(-,root,root)
%license LICENSE
%doc docs/unix/*
%{_bindir}/micropython