commit 82ecebcd825286860b073a6a35e10bee1c092ea6 Author: Kalev Lember kalev@smartlink.ee Date: Tue May 24 10:54:33 2011 +0300
Fixed the -n option with _mingw32_debug_package macro
The -n option was passed down to -debuginfo subpackage's %package and %description sections, but not to %files. This change fixes %files to work the %same way as %package and %description.
Not sure yet if the -n option will get any use, but at least this fixes an obvious oversight.
https://bugzilla.redhat.com/show_bug.cgi?id=700815#c12
macros.mingw32 | 2 +- mingw32-filesystem.spec | 1 + 2 files changed, 2 insertions(+), 1 deletions(-) --- diff --git a/macros.mingw32 b/macros.mingw32 index c89cd7e..8bc6bbe 100644 --- a/macros.mingw32 +++ b/macros.mingw32 @@ -67,7 +67,7 @@ Group: Development/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 debuginfo -f debugfiles.list\ +%files %{-n:-n %{-n*}-}debuginfo -f debugfiles.list\ %defattr(-,root,root,-)\ %{nil}
diff --git a/mingw32-filesystem.spec b/mingw32-filesystem.spec index d6f205b..c33cf14 100644 --- a/mingw32-filesystem.spec +++ b/mingw32-filesystem.spec @@ -173,6 +173,7 @@ install -m 644 %{SOURCE8} $RPM_BUILD_ROOT%{_datadir}/mingw32 * Tue May 24 2011 Kalev Lember kalev@smartlink.ee - 69-1 - Adjusted PKG_CONFIG_LIBDIR to also search in _mingw32_datadir/pkgconfig/ - Own the sbin/ directory +- Fixed the -n option with _mingw32_debug_package macro
* Mon May 23 2011 Kalev Lember kalev@smartlink.ee - 68-3 - Own etc/, share/pkgconfig/, share/xml/ directories