14
0
forked from pool/micropython

- 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

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/micropython?expand=0&rev=42
This commit is contained in:
2025-05-26 11:55:32 +00:00
committed by Git OBS Bridge
parent 64d6dbbb6a
commit af622f8333
4 changed files with 31 additions and 3 deletions

Binary file not shown.

View File

@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Mon May 26 11:53:07 UTC 2025 - Dominik Heidler <dheidler@suse.de>
- 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 <dheidler@suse.de> Wed Apr 16 11:59:42 UTC 2025 - Dominik Heidler <dheidler@suse.de>

View File

@@ -25,7 +25,7 @@ Release: 0
Summary: Implementation of Python 3 with very low memory footprint Summary: Implementation of Python 3 with very low memory footprint
License: MIT License: MIT
URL: https://micropython.org/ URL: https://micropython.org/
Source: https://micropython.org/resources/source/%{name}-%{version}.tar.xz Source: %{name}-%{version}.tar.xz
BuildRequires: openssl BuildRequires: openssl
BuildRequires: pkgconfig BuildRequires: pkgconfig
BuildRequires: python3 BuildRequires: python3

21
prepare.sh Normal file
View File

@@ -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}"