[packages/rpm-pld-macros/rpm.org] - do not create build-id links if debug packages are disabled - rel 2

baggins baggins at pld-linux.org
Tue Feb 23 02:05:19 CET 2021


commit bcb602ccfbf4daf487782c4791d80c8f10f56ba8
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Tue Feb 23 02:04:46 2021 +0100

    - do not create build-id links if debug packages are disabled
    - rel 2

 macros.pld          | 2 ++
 rpm-pld-macros.spec | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/rpm-pld-macros.spec b/rpm-pld-macros.spec
index d0258b7..e34172d 100644
--- a/rpm-pld-macros.spec
+++ b/rpm-pld-macros.spec
@@ -6,7 +6,7 @@ Summary:	PLD Linux RPM macros
 Summary(pl.UTF-8):	Makra RPM dla Linuksa PLD
 Name:		rpm-pld-macros
 Version:	%{rpm_macros_rev}
-Release:	1
+Release:	2
 License:	GPL v2+
 Group:		Development/Building
 Source0:	macros.pld
diff --git a/macros.pld b/macros.pld
index e669a0f..8d35ad5 100644
--- a/macros.pld
+++ b/macros.pld
@@ -642,6 +642,8 @@ LC_ALL=C.UTF-8 %{__meson} \
 %%prep\
 %{nil}
 
+%_build_id_links	%{expand:%%define __dic_%{?_enable_debug_packages} 1}%{?__dic_1:compat}%{?__dic_0:none}%{expand:%%undefine __dic_%{?_enable_debug_packages}}
+
 # If non-empty "debug" macro defined, add "dbg" suffix to release number
 %_rpmfilename		%%{NAME}-%%{VERSION}-%%{RELEASE}%{?debug:dbg}.%%{ARCH}.rpm
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/rpm-pld-macros.git/commitdiff/bcb602ccfbf4daf487782c4791d80c8f10f56ba8



More information about the pld-cvs-commit mailing list