bootsplash,bootloader: Package grub and plymouth themes on all arches
This commit is contained in:
parent
14bb4d585d
commit
bc1c8b8c1c
@ -75,11 +75,10 @@ Summary: Theme for splash animations during bootup
|
||||
Summary(ru_RU.UTF-8): Тема для экрана загрузки для дистрибутива %distro_name_ru
|
||||
License: Distributable
|
||||
Group: System/Configuration/Boot and Init
|
||||
%ifarch %ix86 x86_64
|
||||
BuildArch: noarch
|
||||
Provides: plymouth-theme-%theme
|
||||
Requires: plymouth-plugin-script
|
||||
Requires(pre): plymouth
|
||||
%endif
|
||||
|
||||
%branding_add_conflicts %flavour bootsplash
|
||||
|
||||
@ -236,12 +235,12 @@ lang=$(echo $LANG | cut -d. -f 1)
|
||||
cd boot/splash/%theme/
|
||||
echo $lang > lang
|
||||
[ "$lang" = "C" ] || echo lang | cpio -o --append -F message
|
||||
%endif
|
||||
. shell-config
|
||||
shell_config_set /etc/sysconfig/grub2 GRUB_THEME /boot/grub/themes/%theme/theme.txt
|
||||
#shell_config_set /etc/sysconfig/grub2 GRUB_THEME /boot/grub/themes/%theme
|
||||
shell_config_set /etc/sysconfig/grub2 GRUB_COLOR_NORMAL %grub_normal
|
||||
shell_config_set /etc/sysconfig/grub2 GRUB_COLOR_HIGHLIGHT %grub_high
|
||||
%endif
|
||||
|
||||
%ifarch %ix86 x86_64
|
||||
%preun bootloader
|
||||
@ -257,17 +256,15 @@ shell_config_set /etc/sysconfig/grub2 GRUB_COLOR_HIGHLIGHT %grub_high
|
||||
%ifarch %ix86 x86_64
|
||||
%_datadir/gfxboot/%theme
|
||||
/boot/splash/%theme
|
||||
/boot/grub/themes/%theme
|
||||
%endif
|
||||
/boot/grub/themes/%theme
|
||||
|
||||
#bootsplash
|
||||
%post bootsplash
|
||||
%ifarch %ix86 x86_64
|
||||
subst "s/Theme=.*/Theme=%theme/" /etc/plymouth/plymouthd.conf
|
||||
[ -f /etc/sysconfig/grub2 ] && \
|
||||
subst "s|GRUB_WALLPAPER=.*|GRUB_WALLPAPER=/usr/share/plymouth/themes/%theme/grub.jpg|" \
|
||||
/etc/sysconfig/grub2 ||:
|
||||
%endif
|
||||
|
||||
#release
|
||||
%post release
|
||||
@ -293,9 +290,7 @@ fi
|
||||
#_iconsdir/hicolor/*/apps/alt-%theme.png
|
||||
|
||||
%files bootsplash
|
||||
%ifarch %ix86 x86_64
|
||||
%_datadir/plymouth/themes/%theme/*
|
||||
%endif
|
||||
|
||||
%files release
|
||||
%dir %data_cur_dir
|
||||
|
Loading…
x
Reference in New Issue
Block a user