From: Ray Strode Date: Wed, 11 Jun 2008 15:01:44 +0000 (-0400) Subject: Update spec file to set the latest installed plugin to default X-Git-Tag: 0.3.0~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=28d7756eb30e736dd6b9b72a56d4b2d0b5332acf;p=thirdparty%2Fplymouth.git Update spec file to set the latest installed plugin to default --- diff --git a/scripts/plymouth.spec b/scripts/plymouth.spec index e8a1b6f9..16ffc312 100644 --- a/scripts/plymouth.spec +++ b/scripts/plymouth.spec @@ -38,6 +38,7 @@ Summary: Plymouth "Fade-In" plugin Group: System Environment/Base Requires: %name = %{version}-%{release} BuildRequires: libpng-devel +Provides: plymouth-plugin %description plugin-fade-in This package contains the "Fade-In" boot splash plugin for @@ -49,6 +50,7 @@ Summary: Plymouth "Spinfinity" plugin Group: System Environment/Base Requires: %name = %{version}-%{release} BuildRequires: libpng-devel +Provides: plymouth-plugin %description plugin-spinfinity This package contains the "Spinfinity" boot splash plugin for @@ -77,6 +79,26 @@ rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig +%post plugin-spinfinity +if [ $1 -eq 1 ]; then + %{_sbindir}/plymouth-set-default-plugin spinfinity +fi + +%postun plugin-spinfinity +if [ $1 -eq 0 ]; then + %{_sbindir}/plymouth-set-default-plugin --reset +fi + +%post plugin-fade-in +if [ $1 -eq 1 ]; then + %{_sbindir}/plymouth-set-default-plugin fade-in +fi + +%postun plugin-fade-in +if [ $1 -eq 0 ]; then + %{_sbindir}/plymouth-set-default-plugin --reset +fi + %files %defattr(-, root, root) %doc AUTHORS NEWS README