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:
BIN
micropython-1.25.0.tar.xz
LFS
BIN
micropython-1.25.0.tar.xz
LFS
Binary file not shown.
@@ -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>
|
||||||
|
|
||||||
|
|||||||
@@ -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
21
prepare.sh
Normal 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}"
|
||||||
Reference in New Issue
Block a user