diff --git a/macros b/macros index ff3dd6e..868fb78 100644 --- a/macros +++ b/macros @@ -92,6 +92,22 @@ %{__os_install_post}\ %{nil} +# Template for debug information sub-package. +# NOTE: This is a copy from rpm to get the ifnarch noarch fix, it can be removed later +%debug_package \ +%ifnarch noarch\ +%global __debug_package 1\ +%package debug\ +Summary: Debug information for package %{name}\ +Group: Development/Debug\ +%description debug\ +This package provides debug information for package %{name}.\ +Debug information is useful when developing applications that use this\ +package or when debugging this package.\ +%files debug -f debugfiles.list\ +%defattr(-,root,root)\ +%endif\ +%{nil} # Bad hack to set $LANG to C during all RPM builds %prep \