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