From b3240a10799311c001b75a916948f103282e631f28d24d6eb841509a6bf5d4e8 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Fri, 7 Feb 2025 19:04:09 +0000 Subject: [PATCH] Accepting request 1244139 from home:dheidler:branches:devel:languages:python - Fix build for 15.6 Depends on https://build.opensuse.org/requests/1244131 OBS-URL: https://build.opensuse.org/request/show/1244139 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/micropython?expand=0&rev=33 --- micropython.changes | 5 +++++ micropython.spec | 16 +++++++++------- 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/micropython.changes b/micropython.changes index 92757fa..50e387d 100644 --- a/micropython.changes +++ b/micropython.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Feb 7 10:33:24 UTC 2025 - Dominik Heidler + +- Fix build for 15.6 + ------------------------------------------------------------------- Wed Feb 5 23:17:33 UTC 2025 - Dominik Heidler diff --git a/micropython.spec b/micropython.spec index 2dd080f..db97f12 100644 --- a/micropython.spec +++ b/micropython.spec @@ -17,6 +17,7 @@ %define pythons python3 +%{?sle15_python_module_pythons} Name: micropython Version: 1.24.1 @@ -37,14 +38,15 @@ ExcludeArch: %{ix86} %{arm} ppc64 ppc64le %package -n mpremote Summary: MicroPython remote control BuildArch: noarch -BuildRequires: python3-hatch-requirements-txt -BuildRequires: python3-hatchling +BuildRequires: %{python_module hatch-requirements-txt} +BuildRequires: %{python_module hatchling} Requires: python3-pyserial >= 3.3 BuildRequires: %{python_module base >= 3.6} BuildRequires: %{python_module pip} BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros +%python_subpackages %description A lean and efficient Python implementation for microcontrollers and constrained systems @@ -89,19 +91,19 @@ popd 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 +export MICROPY_CPYTHON3=python%python_version +make -C ports/unix PYTHON=%{_bindir}/python%python_version V=1 test %files %license LICENSE %doc docs/unix/* %{_bindir}/micropython -%files -n mpremote +%files -n mpremote %{python_files} %license tools/mpremote/LICENSE %doc tools/mpremote/README.md -%{python3_sitelib}/mpremote -%{python3_sitelib}/mpremote-%{version}.dist-info +%{python_sitelib}/mpremote +%{python_sitelib}/mpremote-%{version}.dist-info %{_bindir}/mpremote %changelog