diff --git a/plymouth-update-initrd b/plymouth-update-initrd new file mode 100755 index 0000000..c07b561 --- /dev/null +++ b/plymouth-update-initrd @@ -0,0 +1,2 @@ +#!/bin/bash +/sbin/new-kernel-pkg --package kernel --mkinitrd --dracut --depmod --install $(uname -r) diff --git a/plymouth.spec b/plymouth.spec index 5b41233..5da3454 100644 --- a/plymouth.spec +++ b/plymouth.spec @@ -5,13 +5,14 @@ Summary: Graphical Boot Animation and Logger Name: plymouth Version: 0.8.0 -Release: 0.20100305.1%{?dist} +Release: 1%{?dist} License: GPLv2+ Group: System Environment/Base Source0: http://freedesktop.org/software/plymouth/releases/%{name}-%{version}.tar.bz2 Source1: boot-duration -Source2: charge.plymouth -Source3: plymouth-set-default-plugin +Source2: plymouth-update-initrd +Source3: charge.plymouth +Source4: plymouth-set-default-plugin URL: http://freedesktop.org/software/plymouth/releases BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) @@ -242,6 +243,9 @@ plugin. %prep %setup -q +# Change the default theme +sed -i -e 's/fade-in/charge/g' src/plymouthd.defaults + %build %configure --enable-tracing --disable-tests \ --without-default-plugin \ @@ -276,9 +280,12 @@ cp $RPM_SOURCE_DIR/boot-duration $RPM_BUILD_ROOT%{_localstatedir}/lib/plymouth # Add charge, our new default mkdir -p $RPM_BUILD_ROOT%{_datadir}/plymouth/themes/charge -cp %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/plymouth/themes/charge +cp $RPM_SOURCE_DIR/charge.plymouth $RPM_BUILD_ROOT%{_datadir}/plymouth/themes/charge cp $RPM_BUILD_ROOT%{_datadir}/plymouth/themes/glow/{box,bullet,entry,lock}.png $RPM_BUILD_ROOT%{_datadir}/plymouth/themes/charge +# Override plymouth-update-initrd to work dracut or mkinitrd +cp -f $RPM_SOURCE_DIR/plymouth-update-initrd $RPM_BUILD_ROOT%{_libexecdir}/plymouth/plymouth-update-initrd + # Drop glow, it's not very Fedora-y rm -rf $RPM_BUILD_ROOT%{_datadir}/plymouth/themes/glow @@ -304,48 +311,6 @@ fi %post graphics-libs -p /sbin/ldconfig %postun graphics-libs -p /sbin/ldconfig -%postun theme-spinfinity -export LIB=%{_lib} -if [ $1 -eq 0 ]; then - if [ "$(%{_sbindir}/plymouth-set-default-theme)" == "spinfinity" ]; then - %{_sbindir}/plymouth-set-default-theme text - fi -fi - -%postun theme-fade-in -export LIB=%{_lib} -if [ $1 -eq 0 ]; then - if [ "$(%{_sbindir}/plymouth-set-default-theme)" == "fade-in" ]; then - %{_sbindir}/plymouth-set-default-theme --reset - fi -fi - -%postun theme-solar -export LIB=%{_lib} -if [ $1 -eq 0 ]; then - if [ "$(%{_sbindir}/plymouth-set-default-theme)" == "solar" ]; then - %{_sbindir}/plymouth-set-default-theme --reset - fi -fi - -%post theme-charge -export LIB=%{_lib} -if [ $1 -eq 1 ]; then - %{_sbindir}/plymouth-set-default-theme charge -else - if [ "$(%{_sbindir}/plymouth-set-default-theme)" == "solar" ]; then - %{_sbindir}/plymouth-set-default-theme charge - fi -fi - -%postun theme-charge -export LIB=%{_lib} -if [ $1 -eq 0 ]; then - if [ "$(%{_sbindir}/plymouth-set-default-theme)" == "charge" ]; then - %{_sbindir}/plymouth-set-default-theme --reset - fi -fi - %files %defattr(-, root, root) %doc AUTHORS NEWS README @@ -353,6 +318,7 @@ fi %dir %{_datadir}/plymouth/themes %dir %{_libexecdir}/plymouth %dir %{_localstatedir}/lib/plymouth +%config(noreplace) %{_sysconfdir}/plymouth/plymouthd.conf %{plymouthdaemon_execdir}/plymouthd %{plymouthclient_execdir}/plymouth %{_bindir}/plymouth @@ -364,6 +330,7 @@ fi %{_datadir}/plymouth/default-boot-duration %{_datadir}/plymouth/themes/details/details.plymouth %{_datadir}/plymouth/themes/text/text.plymouth +%{_datadir}/plymouth/plymouthd.defaults %{_localstatedir}/run/plymouth %{_localstatedir}/spool/plymouth %{_mandir}/man?/* @@ -473,6 +440,12 @@ fi %defattr(-, root, root) %changelog +* Wed Mar 24 2010 Ray Strode 0.8.0-1 +- Update to 0.8.0 + +* Fri Mar 05 2010 Ray Strode 0.8.0-0.20100305.2 +- Fix plymouth-update-initrd to work with dracut + * Fri Mar 05 2010 Ray Strode 0.8.0-0.20100305.1 - More crash fixes when booting into runlevel 3 diff --git a/sources b/sources index ccb28a1..21e17d0 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -6f4469bcf65ce2e7977e6f1fdafcf4f5 plymouth-0.8.0.tar.bz2 +f0cd114d8612395f1c7d0a191d8e9983 plymouth-0.8.0.tar.bz2