From 72b5f5972a27193143422b06a361422178ff8d80 Mon Sep 17 00:00:00 2001 From: Mads Kiilerich Date: Sun, 29 Apr 2012 16:36:14 +0200 Subject: [PATCH] Include localization files - using the grub name space is forward compatible --- grub2.spec | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/grub2.spec b/grub2.spec index 6e961671..f408420b 100644 --- a/grub2.spec +++ b/grub2.spec @@ -235,13 +235,14 @@ rm $RPM_BUILD_ROOT%{_infodir}/dir # Defaults install -m 644 -D %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/default/grub -# TODO: rename locale files to grub2 and make sure gettext works correctly -rm $RPM_BUILD_ROOT/usr/share/locale/*/LC_MESSAGES/grub.mo mkdir ${RPM_BUILD_ROOT}%{_sysconfdir}/sysconfig ln -sf %{_sysconfdir}/default/grub \ ${RPM_BUILD_ROOT}%{_sysconfdir}/sysconfig/grub +cd .. +%find_lang grub + %clean rm -rf $RPM_BUILD_ROOT @@ -282,7 +283,7 @@ if [ "$1" = 0 ]; then /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/grub2-dev.info.gz || : fi -%files +%files -f grub.lang %defattr(-,root,root,-) /etc/bash_completion.d/grub %{_libdir}/grub/*-%{platform}/ @@ -326,7 +327,7 @@ fi %{_infodir}/grub2* %ifarch %{efi} -%files efi +%files efi -f grub.lang %defattr(-,root,root,-) %attr(0755,root,root)/boot/efi/EFI/redhat /etc/bash_completion.d/grub-efi