diff --git a/python-uv.changes b/python-uv.changes index 7fa4ed8..7640109 100644 --- a/python-uv.changes +++ b/python-uv.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Jul 2 10:33:55 UTC 2025 - Daniel Garcia + +- Reduce memory usage during build, removing lto=fat from Cargo.toml. + bsc#1245526 + ------------------------------------------------------------------- Wed Jul 2 08:35:47 UTC 2025 - Ondřej Súkup diff --git a/python-uv.spec b/python-uv.spec index a986d89..79a52b7 100644 --- a/python-uv.spec +++ b/python-uv.spec @@ -103,8 +103,13 @@ drop-in replacement for common pip and pip-tools workflows. %prep %autosetup -p1 -a1 -n uv-%{version} +%ifnarch x86_64 +# Reduce memory consumption for non x86 arches +sed -i '/lto = "fat"/d' Cargo.toml +%endif %build +export LDFLAGS="--no-keep-memory" export CARGO_AUDITABLE="auditable" export CARGO_INCREMENTAL=0 export CARGO_FEATURE_VENDORED=1