From f8552286c822fd04fac57a0ca39bdeb7dd577e7c Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Mon, 10 Nov 2008 10:14:55 +0000 Subject: [PATCH] Suppress debug_install-post for noarch. --- contrib/crossrpms/gcc/rpm-install.add | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/contrib/crossrpms/gcc/rpm-install.add b/contrib/crossrpms/gcc/rpm-install.add index b6014fd66a..3f00749d5b 100644 --- a/contrib/crossrpms/gcc/rpm-install.add +++ b/contrib/crossrpms/gcc/rpm-install.add @@ -47,7 +47,7 @@ EOF chmod +x %{_builddir}/%{name}-%{gcc_rpmvers}/find-requires %define __find_requires %{_builddir}/%{name}-%{gcc_rpmvers}/find-requires - +%ifnarch noarch # Extract %%__debug_install_post into debug_install_post~ cat << \EOF > debug_install_post~ %__debug_install_post @@ -69,4 +69,5 @@ sed -e 's,^[ ]*/usr/lib/rpm/find-debuginfo.sh,./find-debuginfo.sh,' \ < debug_install_post~ > debug_install_post %define __debug_install_post . ./debug_install_post +%endif