[grub2] Include localization files - using the grub name space is forward compatible

Peter Jones pjones at fedoraproject.org
Thu May 10 13:25:07 UTC 2012


commit 60f39abf64fe7b9c74fb717bb9a9a6b728551a0a
Author: Mads Kiilerich <mads at kiilerich.com>
Date:   Sun Apr 29 16:36:14 2012 +0200

    Include localization files - using the grub name space is forward compatible

 grub2.spec |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/grub2.spec b/grub2.spec
index 8697345..40b5730 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


More information about the scm-commits mailing list