aboutsummaryrefslogtreecommitdiffstats
path: root/macros.in
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-08-28 15:17:09 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-08-28 15:17:09 +0000
commit2a83ce178f15f19ed83b846be40f92ac51436315 (patch)
tree8414bcf9b452985bbb0adc746d461feded630f6b /macros.in
parente78b5929ff1a3d9b70b9b8e0f841dd6c769f15ff (diff)
downloadrpm-setup-2a83ce178f15f19ed83b846be40f92ac51436315.tar
rpm-setup-2a83ce178f15f19ed83b846be40f92ac51436315.tar.gz
rpm-setup-2a83ce178f15f19ed83b846be40f92ac51436315.tar.bz2
rpm-setup-2a83ce178f15f19ed83b846be40f92ac51436315.tar.xz
rpm-setup-2a83ce178f15f19ed83b846be40f92ac51436315.zip
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...)
Diffstat (limited to 'macros.in')
-rw-r--r--macros.in10
1 files changed, 8 insertions, 2 deletions
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}