mirror of
https://src.fedoraproject.org/rpms/grub2.git
synced 2024-11-28 07:44:52 +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
|
# Defaults
|
||||||
install -m 644 -D %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/default/grub
|
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
|
mkdir ${RPM_BUILD_ROOT}%{_sysconfdir}/sysconfig
|
||||||
ln -sf %{_sysconfdir}/default/grub \
|
ln -sf %{_sysconfdir}/default/grub \
|
||||||
${RPM_BUILD_ROOT}%{_sysconfdir}/sysconfig/grub
|
${RPM_BUILD_ROOT}%{_sysconfdir}/sysconfig/grub
|
||||||
|
|
||||||
|
cd ..
|
||||||
|
%find_lang grub
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf $RPM_BUILD_ROOT
|
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 || :
|
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/grub2-dev.info.gz || :
|
||||||
fi
|
fi
|
||||||
|
|
||||||
%files
|
%files -f grub.lang
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
/etc/bash_completion.d/grub
|
/etc/bash_completion.d/grub
|
||||||
%{_libdir}/grub/*-%{platform}/
|
%{_libdir}/grub/*-%{platform}/
|
||||||
|
@ -326,7 +327,7 @@ fi
|
||||||
%{_infodir}/grub2*
|
%{_infodir}/grub2*
|
||||||
|
|
||||||
%ifarch %{efi}
|
%ifarch %{efi}
|
||||||
%files efi
|
%files efi -f grub.lang
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%attr(0755,root,root)/boot/efi/EFI/redhat
|
%attr(0755,root,root)/boot/efi/EFI/redhat
|
||||||
/etc/bash_completion.d/grub-efi
|
/etc/bash_completion.d/grub-efi
|
||||||
|
|
Loading…
Reference in a new issue