Commit cacee781 authored by Andrey Cherepanov's avatar Andrey Cherepanov Committed by Alexey Shabalin

Build bootloader and bootsplash for all supported ARCHs

parent 4bbd9a67
...@@ -5,6 +5,7 @@ NAME=@NAME@ ...@@ -5,6 +5,7 @@ NAME=@NAME@
VERSION=@VERSION@ VERSION=@VERSION@
PRODUCT_NAME=@PRODUCT_NAME@ PRODUCT_NAME=@PRODUCT_NAME@
CODENAME=@CODENAME@ CODENAME=@CODENAME@
ARCH=$(shell arch)
.PHONY: graphics browser-qt ahttpd boot-images boot-splash boot indexhtml install browser-qt/design/bg.png hidden-menu-entries .PHONY: graphics browser-qt ahttpd boot-images boot-splash boot indexhtml install browser-qt/design/bg.png hidden-menu-entries
...@@ -68,6 +69,7 @@ ahttpd: ...@@ -68,6 +69,7 @@ ahttpd:
cp -a ahttpd/images $(datadir)/alterator/design cp -a ahttpd/images $(datadir)/alterator/design
cp -a ahttpd/styles/*.css $(datadir)/alterator/design/styles cp -a ahttpd/styles/*.css $(datadir)/alterator/design/styles
ifeq (,$(filter-out i586 i686 x86_64,$(ARCH)))
# bootloader and bootsplash # bootloader and bootsplash
boot-images: boot-images:
cp -a /usr/src/design-bootloader-source ./ cp -a /usr/src/design-bootloader-source ./
...@@ -108,6 +110,11 @@ boot: boot-images ...@@ -108,6 +110,11 @@ boot: boot-images
cp -a grub2/* $(sysconfdir)/../boot/grub/themes/$(THEME)/ cp -a grub2/* $(sysconfdir)/../boot/grub/themes/$(THEME)/
install -m 644 images/boot.png $(sysconfdir)/../boot/grub/themes/$(THEME)/boot.png install -m 644 images/boot.png $(sysconfdir)/../boot/grub/themes/$(THEME)/boot.png
install -m 644 images/boot.jpg $(sysconfdir)/../boot/grub/themes/$(THEME)/grub.jpg install -m 644 images/boot.jpg $(sysconfdir)/../boot/grub/themes/$(THEME)/grub.jpg
else
boot: ; @:
boot-splash: ; @:
boot-images: ; @:
endif
INDEXHTML_DIR=$(datadir)/doc/indexhtml INDEXHTML_DIR=$(datadir)/doc/indexhtml
indexhtml: indexhtml:
......
...@@ -21,10 +21,11 @@ ...@@ -21,10 +21,11 @@
Name: branding-%flavour Name: branding-%flavour
Version: 8.90 Version: 8.90
Release: alt1 Release: alt1
BuildArch: noarch
ExclusiveArch: %ix86 x86_64
BuildRequires: cpio gfxboot >= 4 fonts-ttf-dejavu fonts-ttf-google-droid-sans %ifarch %ix86 x86_64
BuildRequires: gfxboot >= 4
%endif
BuildRequires: cpio fonts-ttf-dejavu fonts-ttf-google-droid-sans
BuildRequires: design-bootloader-source >= 5.0-alt2 BuildRequires: design-bootloader-source >= 5.0-alt2
BuildRequires(pre): rpm-macros-branding BuildRequires(pre): rpm-macros-branding
...@@ -70,7 +71,6 @@ Suitable for both lilo and syslinux. ...@@ -70,7 +71,6 @@ Suitable for both lilo and syslinux.
для дистрибутива %distro_name_ru. для дистрибутива %distro_name_ru.
%package bootsplash %package bootsplash
BuildArch: noarch
Summary: Theme for splash animations during bootup Summary: Theme for splash animations during bootup
Summary(ru_RU.UTF-8): Тема для экрана загрузки для дистрибутива %distro_name_ru Summary(ru_RU.UTF-8): Тема для экрана загрузки для дистрибутива %distro_name_ru
License: Distributable License: Distributable
...@@ -94,6 +94,7 @@ Summary: Design for alterator for %distro_name ...@@ -94,6 +94,7 @@ Summary: Design for alterator for %distro_name
Summary(ru_RU.UTF-8): Тема для "Центра управления системой" и QT для дистрибутива %distro_name_ru Summary(ru_RU.UTF-8): Тема для "Центра управления системой" и QT для дистрибутива %distro_name_ru
License: GPL License: GPL
Group: System/Configuration/Other Group: System/Configuration/Other
BuildArch: noarch
Provides: design-alterator-browser-%theme branding-alt-%theme-browser-qt branding-altlinux-%theme-browser-qt Provides: design-alterator-browser-%theme branding-alt-%theme-browser-qt branding-altlinux-%theme-browser-qt
Provides: alterator-icons design-alterator design-alterator-%theme Provides: alterator-icons design-alterator design-alterator-%theme
Obsoletes: branding-alt-%theme-browser-qt branding-altlinux-%theme-browser-qt Obsoletes: branding-alt-%theme-browser-qt branding-altlinux-%theme-browser-qt
...@@ -114,7 +115,7 @@ Summary: Design for %distro_name ...@@ -114,7 +115,7 @@ Summary: Design for %distro_name
Summary(ru_RU.UTF-8): Тема для дистрибутива %distro_name_ru Summary(ru_RU.UTF-8): Тема для дистрибутива %distro_name_ru
License: Different licenses License: Different licenses
Group: Graphics Group: Graphics
BuildArch: noarch
Provides: design-graphics-%theme branding-alt-%theme-graphics Provides: design-graphics-%theme branding-alt-%theme-graphics
Obsoletes: branding-alt-%theme-graphics design-graphics-%theme Obsoletes: branding-alt-%theme-graphics design-graphics-%theme
Provides: design-graphics = %design_graphics_abi_major.%design_graphics_abi_minor.%design_graphics_abi_bugfix Provides: design-graphics = %design_graphics_abi_major.%design_graphics_abi_minor.%design_graphics_abi_bugfix
...@@ -133,6 +134,7 @@ This package contains some graphics for %distro_name design. ...@@ -133,6 +134,7 @@ This package contains some graphics for %distro_name design.
%define obsolete_list altlinux-release fedora-release redhat-release %define obsolete_list altlinux-release fedora-release redhat-release
%package release %package release
BuildArch: noarch
Summary: %distro_name release file Summary: %distro_name release file
Summary(ru_RU.UTF-8): Описание дистрибутива %distro_name_ru Summary(ru_RU.UTF-8): Описание дистрибутива %distro_name_ru
License: GPL License: GPL
...@@ -184,6 +186,7 @@ Obsoletes: branding-%flavour-kde4-settings < %version-%release ...@@ -184,6 +186,7 @@ Obsoletes: branding-%flavour-kde4-settings < %version-%release
KDE settings for %distro_name (for KDE4 and KF5) KDE settings for %distro_name (for KDE4 and KF5)
%package xfce-settings %package xfce-settings
BuildArch: noarch
Summary: Default settings for XFCE for %distro_name Summary: Default settings for XFCE for %distro_name
License: Distributable License: Distributable
Group: Graphical desktop/XFce Group: Graphical desktop/XFce
...@@ -245,9 +248,8 @@ Summary: Slideshow for %distro_name installer ...@@ -245,9 +248,8 @@ Summary: Slideshow for %distro_name installer
Summary(ru_RU.UTF-8): Изображения для организации "слайдшоу" в установщике дистрибутива %distro_name_ru Summary(ru_RU.UTF-8): Изображения для организации "слайдшоу" в установщике дистрибутива %distro_name_ru
License: Distributable License: Distributable
Group: System/Configuration/Other Group: System/Configuration/Other
%branding_add_conflicts %flavour slideshow
BuildArch: noarch BuildArch: noarch
%branding_add_conflicts %flavour slideshow
%description slideshow %description slideshow
Slideshow for %distro_name installer. Slideshow for %distro_name installer.
...@@ -279,6 +281,7 @@ Requires(post): indexhtml-common ...@@ -279,6 +281,7 @@ Requires(post): indexhtml-common
%distro_name_ru. %distro_name_ru.
%package menu %package menu
BuildArch: noarch
Summary: Menu for %distro_name Summary: Menu for %distro_name
License: Distributable License: Distributable
Group: Graphical desktop/Other Group: Graphical desktop/Other
...@@ -290,6 +293,7 @@ Requires: altlinux-freedesktop-menu-common ...@@ -290,6 +293,7 @@ Requires: altlinux-freedesktop-menu-common
Menu for %distro_name Menu for %distro_name
%package system-settings %package system-settings
BuildArch: noarch
Summary: Some system settings for Simply Linux Summary: Some system settings for Simply Linux
License: GPLv2+ License: GPLv2+
Group: System/Base Group: System/Base
...@@ -319,11 +323,14 @@ make ...@@ -319,11 +323,14 @@ make
find %buildroot -name \*.in -delete find %buildroot -name \*.in -delete
#bootloader #bootloader
%ifarch %ix86 x86_64
%pre bootloader %pre bootloader
[ -s /usr/share/gfxboot/%theme ] && rm -fr /usr/share/gfxboot/%theme ||: [ -s /usr/share/gfxboot/%theme ] && rm -fr /usr/share/gfxboot/%theme ||:
[ -s /boot/splash/%theme ] && rm -fr /boot/splash/%theme ||: [ -s /boot/splash/%theme ] && rm -fr /boot/splash/%theme ||:
%endif
%post bootloader %post bootloader
%ifarch %ix86 x86_64
%__ln_s -nf %theme/message /boot/splash/message %__ln_s -nf %theme/message /boot/splash/message
. /etc/sysconfig/i18n . /etc/sysconfig/i18n
lang=$(echo $LANG | cut -d. -f 1) lang=$(echo $LANG | cut -d. -f 1)
...@@ -335,11 +342,14 @@ shell_config_set /etc/sysconfig/grub2 GRUB_THEME /boot/grub/themes/%theme/theme. ...@@ -335,11 +342,14 @@ shell_config_set /etc/sysconfig/grub2 GRUB_THEME /boot/grub/themes/%theme/theme.
#shell_config_set /etc/sysconfig/grub2 GRUB_THEME /boot/grub/themes/%theme #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_NORMAL %grub_normal
shell_config_set /etc/sysconfig/grub2 GRUB_COLOR_HIGHLIGHT %grub_high shell_config_set /etc/sysconfig/grub2 GRUB_COLOR_HIGHLIGHT %grub_high
%endif
%ifarch %ix86 x86_64
%preun bootloader %preun bootloader
[ $1 = 0 ] || exit 0 [ $1 = 0 ] || exit 0
[ "`readlink /boot/splash/message`" != "%theme/message" ] || [ "`readlink /boot/splash/message`" != "%theme/message" ] ||
%__rm -f /boot/splash/message %__rm -f /boot/splash/message
%endif
%post indexhtml %post indexhtml
%_sbindir/indexhtml-update %_sbindir/indexhtml-update
...@@ -352,16 +362,20 @@ sed -i '/pam_env\.so/ { ...@@ -352,16 +362,20 @@ sed -i '/pam_env\.so/ {
' %_sysconfdir/pam.d/lightdm-greeter ' %_sysconfdir/pam.d/lightdm-greeter
%files bootloader %files bootloader
%ifarch %ix86 x86_64
%_datadir/gfxboot/%theme %_datadir/gfxboot/%theme
/boot/splash/%theme /boot/splash/%theme
/boot/grub/themes/%theme /boot/grub/themes/%theme
%endif
#bootsplash #bootsplash
%post bootsplash %post bootsplash
%ifarch %ix86 x86_64
subst "s/Theme=.*/Theme=%theme/" /etc/plymouth/plymouthd.conf subst "s/Theme=.*/Theme=%theme/" /etc/plymouth/plymouthd.conf
[ -f /etc/sysconfig/grub2 ] && \ [ -f /etc/sysconfig/grub2 ] && \
subst "s|GRUB_WALLPAPER=.*|GRUB_WALLPAPER=/usr/share/plymouth/themes/%theme/grub.jpg|" \ subst "s|GRUB_WALLPAPER=.*|GRUB_WALLPAPER=/usr/share/plymouth/themes/%theme/grub.jpg|" \
/etc/sysconfig/grub2 ||: /etc/sysconfig/grub2 ||:
%endif
%post mate-settings %post mate-settings
subst 's/^#\?theme-name=.*/theme-name=%gtk_theme/' /etc/lightdm/lightdm-gtk-greeter.conf ||: subst 's/^#\?theme-name=.*/theme-name=%gtk_theme/' /etc/lightdm/lightdm-gtk-greeter.conf ||:
...@@ -385,7 +399,9 @@ subst 's/^#\?icon-theme-name=.*/icon-theme-name=%icon_theme/' /etc/lightdm/light ...@@ -385,7 +399,9 @@ subst 's/^#\?icon-theme-name=.*/icon-theme-name=%icon_theme/' /etc/lightdm/light
%endif %endif
%files bootsplash %files bootsplash
%ifarch %ix86 x86_64
%_datadir/plymouth/themes/%theme/* %_datadir/plymouth/themes/%theme/*
%endif
%files release %files release
%_sysconfdir/*-release %_sysconfdir/*-release
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment