File bootsplash.spec of Package bootsplash
#
# spec file for package bootsplash (Version 3.3)
#
# Copyright (c) 2010 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 http://bugs.opensuse.org/
#
# norootforbuild
Name: bootsplash
BuildRequires: freetype2-devel libjpeg-devel libmng-devel
Url: http://www.bootsplash.org/
Version: 3.3
Release: 165
Summary: Graphical System Boot Utilities
License: GPLv2+
Group: System/Boot
AutoReqProv: on
PreReq: %insserv_prereq %fillup_prereq coreutils mkinitrd
Obsoletes: splashanim
Provides: splashanim
Recommends: bootsplash-branding
Source0: bootsplash-%{version}.tar.bz2
Source1: mkinitrd-setup.sh
Patch0: bootsplash-3.3-decodejpeg.patch
Patch1: bootsplash-3.3-fix-init.diff
Patch2: bootsplash-3.3-no-build-date.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
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
http://www.bootsplash.org/.
Authors:
--------
Stefan Reinauer <stepan@suse.de>
Kenneth W. Wimer <wimer@suse.de>
%prep
%setup
%patch0
%patch1 -p1
%patch2
%build
cd Utilities
PREFIX=%{_exec_prefix} LIB=%{_lib} make STRIP=: CC="gcc $RPM_OPT_FLAGS"
%install
# 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/setup-splash.sh
%post
# 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) || :
/sbin/mkinitrd_setup
%preun
cd etc/bootsplash/themes
test -L current || exit 0
rm -f current
%postun
%{insserv_cleanup}
/sbin/mkinitrd_setup
%files
%defattr(-,root,root)
%doc Documentation/*
/sbin/bootanim
/usr/sbin/fbmngplay
/usr/sbin/fbtruetype
/sbin/fbresolution
/sbin/splash
/sbin/splashpbm
/sbin/splash.bin
#%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
/lib/mkinitrd/scripts/setup-splash.sh
%config /var/adm/fillup-templates/sysconfig.bootsplash
/usr/sbin/rcsplash
%changelog