mirror of
https://src.fedoraproject.org/rpms/grub2.git
synced 2024-11-24 14:32:58 +00:00
Include localization files - using the grub name space is forward compatible
This commit is contained in:
parent
b7a4ca3eb4
commit
60f39abf64
1 changed files with 5 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue