From 2a83ce178f15f19ed83b846be40f92ac51436315 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Tue, 28 Aug 2007 15:17:09 +0000 Subject: ensure %debug_package doesn't modify %{summary} in %install section (ie restore it via a fake __restore__ subpackage) (I suggested it on cooker and got no answer...) --- macros.in | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'macros.in') diff --git a/macros.in b/macros.in index 486c8a7..ee53095 100644 --- a/macros.in +++ b/macros.in @@ -68,7 +68,13 @@ %debugcflags %{?_enable_debug_packages:-g} -%install %{?_enable_debug_packages:%{?buildsubdir:%{debug_package}}}\ +%debug_package_and_restore %{debug_package} \ +%package __restore__\ +Summary: %{summary}\ +Group: %{group}\ +%description __restore__ + +%install %{?_enable_debug_packages:%{?buildsubdir:%{debug_package_and_restore}}}\ %%install\ %{nil} @@ -656,7 +662,7 @@ Requires: python >= %minver, python < %maxver [ %{_with build} -eq 1 ] || exit 0 \ %{nil} -%install %{?_enable_debug_packages:%{?buildsubdir:%{debug_package}}}\ +%install %{?_enable_debug_packages:%{?buildsubdir:%{debug_package_and_restore}}}\ %%install\ [ %{_with install} -eq 1 ] || exit 0 \ %{nil} -- cgit v1.2.1