[packages/rpm-pld-macros] add support for %{specrustflags}; 2.052
atler
atler at pld-linux.org
Mon Feb 2 12:07:06 CET 2026
commit b90dc4a0be05fcf307e0cddae5099304a2f81315
Author: Jan Palus <atler at pld-linux.org>
Date: Mon Feb 2 11:45:59 2026 +0100
add support for %{specrustflags}; 2.052
equivalent of %{specflags} for rust. gets rid of a headache of defining
same custom flags during both build and install. consecutively avoids
duplication too.
macros.rust | 2 +-
rpm-pld-macros.spec | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/rpm-pld-macros.spec b/rpm-pld-macros.spec
index 9aeb834..3db2f20 100644
--- a/rpm-pld-macros.spec
+++ b/rpm-pld-macros.spec
@@ -1,4 +1,4 @@
-%define rpm_macros_rev 2.051
+%define rpm_macros_rev 2.052
%define find_lang_rev 1.42
# split into individual X_prov_ver if there is a reason to desync
%define prov_ver 4.15
diff --git a/macros.rust b/macros.rust
index a8a9657..5f25737 100644
--- a/macros.rust
+++ b/macros.rust
@@ -1,5 +1,5 @@
%debuginforustflags -C debuginfo=%{expand:%%define __dic_%{?_enable_debug_packages} 1}%{?__dic_1:2}%{!?__dic_1:0}%{expand:%%undefine __dic_%{?_enable_debug_packages}} -C strip=none
-%rpmrustflags %debuginforustflags
+%rpmrustflags %debuginforustflags %{!?nospecflags:%{?specrustflags}}
%rust_arches %{x8664} %{ix86} x32 aarch64 armv6hl armv7hl armv7hnl
%rust_target \\\
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/rpm-pld-macros.git/commitdiff/b90dc4a0be05fcf307e0cddae5099304a2f81315
More information about the pld-cvs-commit
mailing list