[packages/ast-grep] lower memory requirements on 32-bit archs by using thin lto; rel 2
atler
atler at pld-linux.org
Sun Nov 1 13:53:14 CET 2026
commit 20c08093018923e134a6fa4b5b0ed66234fd4380
Author: Jan Palus <atler at pld-linux.org>
Date: Sun Nov 1 13:52:18 2026 +0100
lower memory requirements on 32-bit archs by using thin lto; rel 2
ast-grep.spec | 16 ++++++++++++++--
1 file changed, 14 insertions(+), 2 deletions(-)
---
diff --git a/ast-grep.spec b/ast-grep.spec
index 322ca8e..0c122de 100644
--- a/ast-grep.spec
+++ b/ast-grep.spec
@@ -1,9 +1,21 @@
+#
+# Conditional build:
+%bcond_with lowmem # lower memory requirements
+
%define crates_ver %{version}
+%ifarch %{arch32}
+%define with_lowmem 1
+%endif
+
+%if %{with lowmem}
+%define cargo_lto thin
+%endif
+
Summary: Tool for code structural search, lint and rewriting
Name: ast-grep
Version: 0.51.0
-Release: 1
+Release: 2
License: MIT
Group: Applications
Source0: https://github.com/ast-grep/ast-grep/archive/%{version}/%{name}-%{version}.tar.gz
@@ -12,7 +24,7 @@ Source1: %{name}-crates-%{crates_ver}.tar.xz
# Source1-md5: 3d8889c9afccea91d1c4b04a593c527a
URL: https://ast-grep.github.io/
BuildRequires: cargo
-BuildRequires: rpmbuild(macros) >= 2.050
+BuildRequires: rpmbuild(macros) >= 2.073
BuildRequires: rust >= 1.90.0
BuildRequires: tar >= 1:1.22
BuildRequires: xz
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/ast-grep.git/commitdiff/20c08093018923e134a6fa4b5b0ed66234fd4380
More information about the pld-cvs-commit
mailing list