- Move plymouth-set-default-plugin to -libs (might help with bug 467356)

- Fix up requires, provides and postun scripts
This commit is contained in:
Ray Strode 2008-10-17 19:22:21 +00:00
parent 53eb873487
commit b453429c8b

View File

@ -5,7 +5,7 @@
Summary: Plymouth Graphical Boot Animation and Logger Summary: Plymouth Graphical Boot Animation and Logger
Name: plymouth Name: plymouth
Version: 0.6.0 Version: 0.6.0
Release: 0.2008.10.15.1%{?dist} Release: 0.2008.10.15.2%{?dist}
License: GPLv2+ License: GPLv2+
Group: System Environment/Base Group: System Environment/Base
Source0: http://freedesktop.org/software/plymouth/releases/%{name}-%{version}.tar.bz2 Source0: http://freedesktop.org/software/plymouth/releases/%{name}-%{version}.tar.bz2
@ -70,7 +70,6 @@ event start-up services fail.
Summary: Plymouth label plugin Summary: Plymouth label plugin
Group: System Environment/Base Group: System Environment/Base
Requires: %{name} = %{version}-%{release} Requires: %{name} = %{version}-%{release}
Requires(post): %{name}
BuildRequires: pango-devel BuildRequires: pango-devel
BuildRequires: cairo-devel BuildRequires: cairo-devel
@ -83,7 +82,7 @@ graphical boot splashes using pango and cairo.
Summary: Plymouth "Fade-In" plugin Summary: Plymouth "Fade-In" plugin
Group: System Environment/Base Group: System Environment/Base
Requires: %{name} = %{version}-%{release} Requires: %{name} = %{version}-%{release}
Requires(post): %{name} Requires(post): %{_sbindir}/plymouth-set-default-plugin
BuildRequires: libpng-devel BuildRequires: libpng-devel
%description plugin-fade-in %description plugin-fade-in
@ -95,7 +94,7 @@ while stars twinkle around the logo during system boot up.
Summary: Plymouth "Pulser" plugin Summary: Plymouth "Pulser" plugin
Group: System Environment/Base Group: System Environment/Base
Requires: %{name} = %{version}-%{release} Requires: %{name} = %{version}-%{release}
Requires(post): %{name} Requires(post): %{_sbindir}/plymouth-set-default-plugin
BuildRequires: libpng-devel BuildRequires: libpng-devel
%description plugin-pulser %description plugin-pulser
@ -108,8 +107,8 @@ Summary: Plymouth "Spinfinity" plugin
Group: System Environment/Base Group: System Environment/Base
Requires: %{name} = %{version}-%{release} Requires: %{name} = %{version}-%{release}
Requires: plymouth-plugin-label Requires: plymouth-plugin-label
Requires(post): %{name}
BuildRequires: libpng-devel BuildRequires: libpng-devel
Requires(post): %{_sbindir}/plymouth-set-default-plugin
Provides: system-plymouth-plugin = %{version}-%{release} Provides: system-plymouth-plugin = %{version}-%{release}
%description plugin-spinfinity %description plugin-spinfinity
@ -122,9 +121,8 @@ Summary: Plymouth "Solar" plugin
Group: System Environment/Base Group: System Environment/Base
Requires: %{name} = %{version}-%{release} Requires: %{name} = %{version}-%{release}
Requires: plymouth-plugin-label Requires: plymouth-plugin-label
Requires(post): %{name} Requires(post): %{_sbindir}/plymouth-set-default-plugin
BuildRequires: libpng-devel BuildRequires: libpng-devel
Provides: system-plymouth-plugin = %{version}-%{release}
%description plugin-solar %description plugin-solar
This package contains the "Solar" boot splash plugin for This package contains the "Solar" boot splash plugin for
@ -185,11 +183,6 @@ if [ $1 -eq 0 ]; then
fi fi
fi fi
%post plugin-fade-in
#if [ $1 -eq 1 ]; then
# %{_sbindir}/plymouth-set-default-plugin fade-in
#fi
%postun plugin-fade-in %postun plugin-fade-in
if [ $1 -eq 0 ]; then if [ $1 -eq 0 ]; then
if [ "$(%{_sbindir}/plymouth-set-default-plugin)" == "fade-in" ]; then if [ "$(%{_sbindir}/plymouth-set-default-plugin)" == "fade-in" ]; then
@ -197,6 +190,20 @@ if [ $1 -eq 0 ]; then
fi fi
fi fi
%postun plugin-solar
if [ $1 -eq 0 ]; then
if [ "$(%{_sbindir}/plymouth-set-default-plugin)" == "solar" ]; then
%{_sbindir}/plymouth-set-default-plugin --reset
fi
fi
%postun plugin-pulser
if [ $1 -eq 0 ]; then
if [ "$(%{_sbindir}/plymouth-set-default-plugin)" == "pulser" ]; then
%{_sbindir}/plymouth-set-default-plugin --reset
fi
fi
%files %files
%defattr(-, root, root) %defattr(-, root, root)
%doc AUTHORS NEWS README %doc AUTHORS NEWS README
@ -207,7 +214,6 @@ fi
%{plymouthclient_execdir}/plymouth %{plymouthclient_execdir}/plymouth
%{_libexecdir}/plymouth/plymouth-update-initrd %{_libexecdir}/plymouth/plymouth-update-initrd
%{_libexecdir}/plymouth/plymouth-populate-initrd %{_libexecdir}/plymouth/plymouth-populate-initrd
%{_sbindir}/plymouth-set-default-plugin
%{_bindir}/plymouth %{_bindir}/plymouth
%{_bindir}/rhgb-client %{_bindir}/rhgb-client
%{_libdir}/plymouth/details.so %{_libdir}/plymouth/details.so
@ -227,6 +233,7 @@ fi
%defattr(-, root, root) %defattr(-, root, root)
%{plymouth_libdir}/libply.so.* %{plymouth_libdir}/libply.so.*
%{_libdir}/libplybootsplash.so.* %{_libdir}/libplybootsplash.so.*
%{_sbindir}/plymouth-set-default-plugin
%files utils %files utils
%defattr(-, root, root) %defattr(-, root, root)
@ -270,6 +277,10 @@ fi
%{_libdir}/plymouth/solar.so %{_libdir}/plymouth/solar.so
%changelog %changelog
* Fri Oct 17 2008 Ray Strode <rstrode@redhat.com> 0.5.0-0.2008.10.15.2
- Move plymouth-set-default-plugin to -libs (might help with bug 467356)
- Fix up requires, provides and postun scripts
* Wed Oct 15 2008 Ray Strode <rstrode@redhat.com> 0.5.0-0.2008.10.15.1 * Wed Oct 15 2008 Ray Strode <rstrode@redhat.com> 0.5.0-0.2008.10.15.1
- Don't free windows on --hide-splash (fix from Jeremy) - Don't free windows on --hide-splash (fix from Jeremy)