diff --git a/micropython-1.25.0.tar.xz b/micropython-1.25.0.tar.xz index 63179f7..853a67e 100644 --- a/micropython-1.25.0.tar.xz +++ b/micropython-1.25.0.tar.xz @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:9fe99ad5808e66bb40d374f5cad187c32c7d1c49cf47f72b38fd453c28c2aebe -size 109072312 +oid sha256:c9028d4ac8389890329a717e6bc5d2a8fb3145d3526fa24387e418f531972d4a +size 58476060 diff --git a/micropython.changes b/micropython.changes index 6314f1c..b8857fe 100644 --- a/micropython.changes +++ b/micropython.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Mon May 26 11:53:07 UTC 2025 - Dominik Heidler + +- Add script to delete some 3rd party libraries from the src tar + that are not needed to build the unix port in order to + make the legal review easier + ------------------------------------------------------------------- Wed Apr 16 11:59:42 UTC 2025 - Dominik Heidler diff --git a/micropython.spec b/micropython.spec index 731d2c4..835d04c 100644 --- a/micropython.spec +++ b/micropython.spec @@ -25,7 +25,7 @@ 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 +Source: %{name}-%{version}.tar.xz BuildRequires: openssl BuildRequires: pkgconfig BuildRequires: python3 diff --git a/prepare.sh b/prepare.sh new file mode 100644 index 0000000..85bf8b3 --- /dev/null +++ b/prepare.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +# this removes some 3rd party libraries from the src tar that are not needed to build the unix port +# in order to make the legal review easier + +set -e + +version=$(rpmspec --query micropython.spec | head -1 | cut -d- -f2) + +rm -fv micropython-*.tar.xz +wget "https://micropython.org/resources/source/micropython-${version}.tar.xz" -O "micropython-${version}.tar.xz" +tar xf "micropython-${version}.tar.xz" +pushd "micropython-${version}" +rm -rv "lib/fsp" +rm -rv "lib/alif-security-toolkit" +pushd "lib/btstack/port" +find . -maxdepth 1 -type d | grep -v libusb | grep -v posix | grep -v qt- | xargs rm -rv || : +popd +popd +tar caf "micropython-${version}.tar.xz" "micropython-${version}" +rm -r "micropython-${version}"