a281aa
Summary: Plymouth Graphical Boot Animation and Logger
a281aa
Name: plymouth
488a7e
Version: 0.3.1
ed70f9
Release: 2%{?dist}
a281aa
License: GPLv2+
a281aa
Group: System Environment/Base
a281aa
Source0: http://freedesktop.org/software/plymouth/releases/%{name}-%{version}.tar.bz2
a281aa
URL: http://freedesktop.org/software/plymouth/releases
a281aa
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
a281aa
a281aa
Obsoletes: rhgb < 1:10.0.0
a281aa
Provides: rhgb = 1:10.0.0
a281aa
a281aa
Requires: system-logos >= 9.0.1
a281aa
a281aa
%description
a281aa
Plymouth provides an attractive graphical boot animation in
a281aa
place of the text messages that normally get shown.  Text
a281aa
messages are instead redirected to a log file for viewing
a281aa
after boot.
a281aa
203588
%package libs
203588
Summary: Plymouth libraries
203588
Group: Development/Libraries
203588
Requires: %{name} = %{version}-%{release}
203588
203588
%description libs
203588
This package contains the libply and libplybootsplash libraries
203588
used by Plymouth.
203588
203588
%package devel
203588
Summary: Libraries and headers for writing Plymouth splash plugins
203588
Group: Development/Libraries
203588
Requires: %{name} = %{version}-%{release}
203588
Requires: pkgconfig
203588
203588
%description devel
203588
This package contains the libply and libplybootsplash libraries
203588
and headers needed to develop 3rd party splash plugins for Plymouth.
203588
a281aa
%package plugin-fade-in
a281aa
Summary: Plymouth "Fade-In" plugin
a281aa
Group: System Environment/Base
a281aa
Requires: %name = %{version}-%{release}
a281aa
BuildRequires: libpng-devel
a281aa
a281aa
%description plugin-fade-in
a281aa
This package contains the "Fade-In" boot splash plugin for
a281aa
Plymouth. It features a centered logo that fades in and out
a281aa
while stars twinkle around the logo during system boot up.
a281aa
a281aa
%package plugin-spinfinity
a281aa
Summary: Plymouth "Spinfinity" plugin
a281aa
Group: System Environment/Base
a281aa
Requires: %name = %{version}-%{release}
a281aa
BuildRequires: libpng-devel
a281aa
a281aa
%description plugin-spinfinity
a281aa
This package contains the "Spinfinity" boot splash plugin for
a281aa
Plymouth. It features a centered logo and animated spinner that
a281aa
spins in the shape of an infinity sign.
a281aa
a281aa
%prep
a281aa
%setup -q
a281aa
a281aa
%build
a281aa
%configure --enable-tracing --disable-tests --without-boot-entry \
3aeeeb
           --without-default-plugin                              \
a281aa
           --with-logo=%{_datadir}/pixmaps/system-logo-white.png \
3aeeeb
           --with-background-start-color-stop=0x0073B3           \
3aeeeb
           --with-background-end-color-stop=0x00457E
a281aa
a281aa
make
a281aa
a281aa
%install
a281aa
rm -rf $RPM_BUILD_ROOT
a281aa
a281aa
make install DESTDIR=$RPM_BUILD_ROOT
a281aa
a281aa
find $RPM_BUILD_ROOT -name '*.a' -exec rm -f {} \;
a281aa
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} \;
a281aa
a281aa
%clean
a281aa
rm -rf $RPM_BUILD_ROOT
a281aa
a281aa
%post -p /sbin/ldconfig
ed70f9
%postun
ed70f9
/sbin/ldconfig
3aeeeb
if [ $1 -eq 1 ]; then
3aeeeb
    %{_sbindir}/plymouth-set-default-plugin --reset
3aeeeb
fi
3aeeeb
3aeeeb
%post plugin-spinfinity
3aeeeb
if [ $1 -eq 1 ]; then
3aeeeb
    %{_sbindir}/plymouth-set-default-plugin spinfinity
3aeeeb
fi
3aeeeb
3aeeeb
%postun plugin-spinfinity
3aeeeb
if [ $1 -eq 0 ]; then
3aeeeb
    %{_sbindir}/plymouth-set-default-plugin --reset
3aeeeb
fi
3aeeeb
3aeeeb
%post plugin-fade-in
3aeeeb
if [ $1 -eq 1 ]; then
3aeeeb
    %{_sbindir}/plymouth-set-default-plugin fade-in
3aeeeb
fi
3aeeeb
3aeeeb
%postun plugin-fade-in
3aeeeb
if [ $1 -eq 0 ]; then
3aeeeb
    %{_sbindir}/plymouth-set-default-plugin --reset
3aeeeb
fi
a281aa
a281aa
%files
a281aa
%defattr(-, root, root)
a281aa
%doc AUTHORS NEWS README
a281aa
%dir %{_datadir}/plymouth
a281aa
%{_libexecdir}/plymouth/plymouthd
a281aa
%{_libexecdir}/plymouth/plymouth-update-initrd
203588
%{_libexecdir}/plymouth/plymouth-populate-initrd
3aeeeb
%{_sbindir}/plymouth-set-default-plugin
a281aa
%{_bindir}/plymouth
a281aa
%{_bindir}/rhgb-client
a281aa
%{_libdir}/plymouth/details.so
a281aa
%{_libdir}/plymouth/text.so
a281aa
%{_localstatedir}/run/plymouth
a281aa
203588
%files devel
203588
%defattr(-, root, root)
203588
%{_libdir}/libply.so
203588
%{_libdir}/libplybootsplash.so
203588
%{_libdir}/pkgconfig/plymouth-1.pc
203588
%{_includedir}/plymouth-1
203588
203588
%files libs
203588
%defattr(-, root, root)
203588
%{_libdir}/libply.so.*
203588
%{_libdir}/libplybootsplash.so.*
203588
a281aa
%files plugin-fade-in
a281aa
%defattr(-, root, root)
a281aa
%dir %{_datadir}/plymouth/fade-in
a281aa
%{_datadir}/plymouth/fade-in/bullet.png
a281aa
%{_datadir}/plymouth/fade-in/entry.png
a281aa
%{_datadir}/plymouth/fade-in/lock.png
a281aa
%{_datadir}/plymouth/fade-in/star.png
a281aa
%{_libdir}/plymouth/fade-in.so
a281aa
a281aa
%files plugin-spinfinity
a281aa
%defattr(-, root, root)
a281aa
%dir %{_datadir}/plymouth/spinfinity
a281aa
%{_datadir}/plymouth/spinfinity/box.png
a281aa
%{_datadir}/plymouth/spinfinity/bullet.png
a281aa
%{_datadir}/plymouth/spinfinity/entry.png
a281aa
%{_datadir}/plymouth/spinfinity/lock.png
a281aa
%{_datadir}/plymouth/spinfinity/throbber-[0-3][0-9].png
a281aa
%{_libdir}/plymouth/spinfinity.so
a281aa
a281aa
%changelog
ed70f9
* Thu Jun 12 2008 Ray Strode <rstrode@redhat.com> - 0.3.1-2
ed70f9
- Fix postun scriptlet
ed70f9
488a7e
* Thu Jun 12 2008 Ray Strode <rstrode@redhat.com> - 0.3.1-1
488a7e
- Update to version 0.3.1
488a7e
- Don't ship generated initrd scripts in tarball
488a7e
3aeeeb
* Thu Jun 12 2008 Ray Strode <rstrode@redhat.com> - 0.3.0-1
3aeeeb
- Update to version 0.3.0
3aeeeb
- Better plugin handling
3aeeeb
- Better integration with mkinitrd (pending mkinitrd changes)
3aeeeb
- random bug fixes
3aeeeb
203588
* Mon Jun  9 2008 Ray Strode <rstrode@redhat.com> - 0.2.0-1
203588
- Update to version 0.2.0
203588
- Integrate more tightly with nash (pending nash changes)
203588
- ship libs for out of tree splash plugins
203588
- gradient support
203588
- random bug fixes
203588
a281aa
* Fri May 30 2008 Ray Strode <rstrode@redhat.com> - 0.1.0-1
a281aa
- Initial import, version 0.1.0