From 28d7756eb30e736dd6b9b72a56d4b2d0b5332acf Mon Sep 17 00:00:00 2001 From: Ray Strode Date: Wed, 11 Jun 2008 11:01:44 -0400 Subject: Update spec file to set the latest installed plugin to default --- scripts/plymouth.spec | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'scripts') diff --git a/scripts/plymouth.spec b/scripts/plymouth.spec index e8a1b6f..16ffc31 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 -- cgit