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
This commit is contained in:
Kalev Lember 2011-05-24 10:54:33 +03:00
parent 15eccffbcb
commit 82ecebcd82
2 changed files with 2 additions and 1 deletions

View File

@ -67,7 +67,7 @@ Group: Development/Debug \
This package provides debug information for package %{name}.\ This package provides debug information for package %{name}.\
Debug information is useful when developing applications that use this\ Debug information is useful when developing applications that use this\
package or when debugging this package.\ package or when debugging this package.\
%files debuginfo -f debugfiles.list\ %files %{-n:-n %{-n*}-}debuginfo -f debugfiles.list\
%defattr(-,root,root,-)\ %defattr(-,root,root,-)\
%{nil} %{nil}

View File

@ -173,6 +173,7 @@ install -m 644 %{SOURCE8} $RPM_BUILD_ROOT%{_datadir}/mingw32
* Tue May 24 2011 Kalev Lember <kalev@smartlink.ee> - 69-1 * Tue May 24 2011 Kalev Lember <kalev@smartlink.ee> - 69-1
- Adjusted PKG_CONFIG_LIBDIR to also search in _mingw32_datadir/pkgconfig/ - Adjusted PKG_CONFIG_LIBDIR to also search in _mingw32_datadir/pkgconfig/
- Own the sbin/ directory - Own the sbin/ directory
- Fixed the -n option with _mingw32_debug_package macro
* Mon May 23 2011 Kalev Lember <kalev@smartlink.ee> - 68-3 * Mon May 23 2011 Kalev Lember <kalev@smartlink.ee> - 68-3
- Own etc/, share/pkgconfig/, share/xml/ directories - Own etc/, share/pkgconfig/, share/xml/ directories