From: Marcin Krol Date: Sat, 13 Dec 2025 12:53:37 +0000 (+0100) Subject: - merged 2.050 from PLD X-Git-Url: https://git.tld-linux.org/?a=commitdiff_plain;h=HEAD;p=packages%2Frpm-tld-macros.git - merged 2.050 from PLD --- diff --git a/macros.rust b/macros.rust index fad5bca..ca49aa4 100644 --- a/macros.rust +++ b/macros.rust @@ -68,3 +68,44 @@ thumbv7neon-unknown-linux-gnueabihf\\\ --target-dir %{cargo_targetdir} \\\ --no-track \\\ %{nil} + +%rust_version %{expand:%%global rust_version %((set -- $(rustc --version 2> /dev/null || echo 'rustc 0'); echo $2))%%{nil}}%rust_version + +# https://doc.rust-lang.org/stable/rustc/platform-support.html +%rust_req \ +%ifarch i586\ +Requires: glibc >= 1:2.17\ +Requires: uname(release) >= 3.2\ +%endif\ +%ifarch i686 pentium3 pentium4 athlon\ +%if %{_ver_ge %rust_version 1.86.0}\ +Requires: cpuinfo(sse2)\ +%endif\ +Requires: glibc >= 1:2.17\ +Requires: uname(release) >= 3.2\ +%endif\ +%ifarch %{x8664}\ +Requires: glibc >= 1:2.17\ +Requires: uname(release) >= 3.2\ +%endif\ +%ifarch x32\ +Requires: glibc >= 1:2.27\ +Requires: uname(release) >= 4.15\ +%endif\ +%ifarch aarch64\ +Requires: glibc >= 1:2.17\ +Requires: uname(release) >= 4.1\ +%endif\ +%ifarch armv6hl\ +Requires: glibc >= 1:2.17\ +Requires: uname(release) >= 3.2\ +%endif\ +%ifarch armv7hl \ +Requires: glibc >= 1:2.17\ +Requires: uname(release) >= 3.2\ +%endif\ +%ifarch armv7hnl\ +Requires: glibc >= 1:2.23\ +Requires: uname(release) >= 4.4\ +%endif\ +%{nil} diff --git a/rpm-tld-macros.spec b/rpm-tld-macros.spec index bba8309..821c44f 100644 --- a/rpm-tld-macros.spec +++ b/rpm-tld-macros.spec @@ -1,4 +1,4 @@ -%define rpm_macros_rev 2.049 +%define rpm_macros_rev 2.050 %define find_lang_rev 1.42 # split into individual X_prov_ver if there is a reason to desync %define prov_ver 4.15