SHA256
1
0
forked from pool/micropython
Files
micropython/micropython.spec
Matej Cepl 17d07bad9c - Update to 1.22.2:
This is a patch release containing the following commits:
  - py/compile: fix potential Py-stack overflow in try-finally
    with return
  - extmod/asyncio: support gather of tasks that finish early
  - extmod/modssl_mbedtls: fix cipher iteration in
    SSLContext.get_ciphers
  - extmod/btstack: reset pending_value_handle before calling
    write-done cb
  - extmod/btstack: reset pending_value_handle before calling
    read-done cb
  - esp32/mpnimbleport: release the GIL while doing NimBLE port
    deinit
  - esp32: increase NimBLE task stack size and overflow detection
    headroom
  - mimxrt/modmachine: fix deepsleep wakeup pin ifdef
  - renesas-ra/ra: fix SysTick clock source
  - renesas-ra/boards/ARDUINO_PORTENTA_C33: fix the RTC clock
    source
  - renesas-ra/ra/ra_i2c: fix 1 byte and 2 bytes read issue
  - rp2/rp2_dma: fix fetching 'write' buffers for writing not
    reading
  - rp2/machine_uart: fix event wait in uart.flush() and
    uart.read()
  - rp2: change machine.I2S and rp2.DMA to use shared DMA IRQ
    handlers
- Update to 1.22.1:
  - This is a patch release to fix a race condition and potential
    deadlock in the rp2 port's mp_thread_begin_atomic_section()
    function, when the second core is in use.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/micropython?expand=0&rev=25
2024-05-21 09:18:44 +00:00

69 lines
2.0 KiB
RPMSpec

#
# spec file for package micropython
#
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: micropython
Version: 1.22.2
Release: 0
Summary: Implementation of Python 3 with very low memory footprint
License: MIT
URL: https://micropython.org/
Source: https://micropython.org/resources/source/%{name}-%{version}.tar.xz
BuildRequires: openssl
BuildRequires: pkgconfig
BuildRequires: python3
BuildRequires: readline-devel
BuildRequires: pkgconfig(libffi)
Recommends: micropython-lib
ExcludeArch: %{ix86} %{arm} ppc64 ppc64le
%description
A lean and efficient Python implementation for microcontrollers and constrained systems
%prep
%autosetup -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
export CFLAGS="%optflags -Wno-dangling-pointer"
%make_build -C mpy-cross
%make_build -C ports/unix STRIP=true
%install
install -d %{buildroot}%{_bindir}
install -t %{buildroot}%{_bindir} ports/unix/build-standard/micropython
%check
%ifnarch x86_64
# 2 tests fail: float_parse float_parse_doubleprec
# https://github.com/micropython/micropython/pull/6024
rm -f tests/float/float_parse.py
rm -f tests/float/float_parse_doubleprec.py
%endif
export MICROPY_CPYTHON3=python3
make -C ports/unix PYTHON=%{_bindir}/python3 V=1 test
%files
%license LICENSE
%doc docs/unix/*
%{_bindir}/micropython
%changelog