File bootsplash.spec of Package bootsplash

# spec file for package bootsplash
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via

Name:           bootsplash
BuildRequires:  freetype2-devel libjpeg-devel libmng-devel
Version:        3.3
Release:        171
Summary:        Graphical System Boot Utilities
License:        GPL-2.0+
Group:          System/Boot
PreReq:         %insserv_prereq %fillup_prereq coreutils mkinitrd
Obsoletes:      splashanim
Provides:       splashanim
Recommends:     bootsplash-branding
Source0:        bootsplash-%{version}.tar.bz2
Patch0:         bootsplash-3.3-decodejpeg.patch
Patch1:         bootsplash-3.3-fix-init.diff
Patch2:         bootsplash-3.3-no-build-date.patch
Patch3:         bootsplash-3.3-sysconfig.diff
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

The bootsplash package contains utilities and scripts for displaying
graphics, animations, or text when the system boots. To use bootsplash,
you also need a bootsplash theme that contains pictures and
configuration files. Find information about bootsplash at

%patch1 -p1

cd Utilities
PREFIX=%{_exec_prefix} LIB=%{_lib} make STRIP=: CC="gcc $RPM_OPT_FLAGS" \

# create directory structure
mkdir -p ${RPM_BUILD_ROOT}/sbin
mkdir -p ${RPM_BUILD_ROOT}/usr/sbin
mkdir -p ${RPM_BUILD_ROOT}/etc/bootsplash/themes
mkdir -p ${RPM_BUILD_ROOT}/etc/init.d
mkdir -p ${RPM_BUILD_ROOT}/lib/mkinitrd/scripts
mkdir -p ${RPM_BUILD_ROOT}/var/adm/fillup-templates
# copy program files
cd Utilities
install -m 755 fbmngplay    ${RPM_BUILD_ROOT}/usr/sbin
install -m 755 fbtruetype   ${RPM_BUILD_ROOT}/usr/sbin
install -m 755 splash       ${RPM_BUILD_ROOT}/sbin
install -m 755 splashpbm    ${RPM_BUILD_ROOT}/sbin
install -m 755 fbresolution ${RPM_BUILD_ROOT}/sbin
# copy scripts
cd ../Scripts
ln -s splash ${RPM_BUILD_ROOT}/sbin/splash.bin
install -m 755 bootanim     ${RPM_BUILD_ROOT}/sbin
install -m 755 splash_early ${RPM_BUILD_ROOT}/etc/init.d
install -m 755 rcsplash     ${RPM_BUILD_ROOT}/etc/init.d/splash
ln -sf ../../etc/init.d/splash ${RPM_BUILD_ROOT}/usr/sbin/rcsplash
install -m 644    sysconfig.bootsplash $RPM_BUILD_ROOT/var/adm/fillup-templates/sysconfig.bootsplash
install -m 755 %{S:1} ${RPM_BUILD_ROOT}/lib/mkinitrd/scripts/

# add start/stop links
%{insserv_force_if_yast etc/init.d/splash_early }
%{insserv_force_if_yast etc/init.d/splash }
%{fillup_only bootsplash }
#test -e /dev/bootsplash || (umask 077 ; mknod /dev/bootsplash p) || :

cd etc/bootsplash/themes
test -L current || exit 0
rm -f current

if test -s /etc/sysconfig/bootloader ; then

%doc Documentation/*
#%ghost /dev/bootsplash
%dir /etc/bootsplash
%dir /etc/bootsplash/themes
%config /etc/init.d/splash_early
%config /etc/init.d/splash
%dir /lib/mkinitrd
%dir /lib/mkinitrd/scripts
%config /var/adm/fillup-templates/sysconfig.bootsplash

openSUSE Build Service is sponsored by