a281aa
Summary: Plymouth Graphical Boot Animation and Logger
a281aa
Name: plymouth
3121b9
Version: 0.5.0
bad12c
Release: 5%{?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
44db2d
Requires: system-plymouth-plugin >= %{version}-%{release}
ec4aee
273626
Patch0: plymouth-0.5.0-fix-ppc.patch
823b54
Patch1: restore-color-palette.patch
bad12c
Patch2: find-right-libdir.patch
273626
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
44db2d
Provides: system-plymouth-plugin = %{version}-%{release}
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
273626
%patch0 -p1 -b .fix-ppc
823b54
%patch1 -p1 -b .restore-color-palette
bad12c
%patch2 -p1 -b .find-right-libdir
273626
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           \
21ba79
           --with-background-end-color-stop=0x00457E             \
e192e4
           --with-background-color=0x3391cd
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
e8953b
%postun
e8953b
if [ $1 -eq 0 ]; then
44db2d
    rm -f %{_libdir}/plymouth/default.so
44db2d
fi
44db2d
44db2d
%post
44db2d
if [ $1 -eq 1 ]; then
44db2d
    %{_sbindir}/plymouth-set-default-plugin text
3aeeeb
fi
3aeeeb
e8953b
%post libs -p /sbin/ldconfig
e8953b
%postun libs -p /sbin/ldconfig
e8953b
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
e8953b
    if [ "$(%{_sbindir}/plymouth-set-default-plugin)" == "spinfinity" ]; then
44db2d
        %{_sbindir}/plymouth-set-default-plugin text
e8953b
    fi
3aeeeb
fi
3aeeeb
3aeeeb
%post plugin-fade-in
506917
#if [ $1 -eq 1 ]; then
506917
#    %{_sbindir}/plymouth-set-default-plugin fade-in
506917
#fi
3aeeeb
3aeeeb
%postun plugin-fade-in
3aeeeb
if [ $1 -eq 0 ]; then
e8953b
    if [ "$(%{_sbindir}/plymouth-set-default-plugin)" == "fade-in" ]; then
e8953b
        %{_sbindir}/plymouth-set-default-plugin --reset
e8953b
    fi
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
bad12c
* Wed Jul  9 2008 Ray Strode <rstrode@redhat.com> - 0.5.0-5
bad12c
- Use a new heuristic for finding libdir, since the old
bad12c
  one falls over on ia64
bad12c
823b54
* Wed Jul  9 2008 Ray Strode <rstrode@redhat.com> - 0.5.0-4
823b54
- add ctrl-r to rotate text color palette back to stock values
823b54
273626
* Tue Jul  8 2008 Ray Strode <rstrode@redhat.com> - 0.5.0-3
273626
- Fix populate script on ppc (bug 454353)
273626
44db2d
* Tue Jul  1 2008 Ray Strode <rstrode@redhat.com> - 0.5.0-2
44db2d
- Pull in spinfinity by default.  This whole "figure out
44db2d
  which plugin to use" set of scripts and scriptlets
44db2d
  needs work.  We need to separate distro default from
44db2d
  user choice.
44db2d
44db2d
* Thu Jul  1 2008 Ray Strode <rstrode@redhat.com> - 0.5.0-1
3121b9
- Add new client "ask-for-password" command which feeds
3121b9
  the user input to a program instead of standard output,
3121b9
  and loops when the program returns non-zero exit status.
3121b9
e192e4
* Thu Jun 26 2008 Ray Strode <rstrode@redhat.com> - 0.4.5-1
e192e4
- Update to version 0.4.5
e192e4
- Make text plugin blue and less 80s
e192e4
1c7bf4
* Wed Jun 25 2008 Ray Strode <rstrode@redhat.com> - 0.4.0-4
1c7bf4
- Make "Password: " show up correctly in text plugin
1c7bf4
ec4aee
* Wed Jun 25 2008 Ray Strode <rstrode@redhat.com> - 0.4.0-3
ec4aee
- Require elfutils (bug 452797)
ec4aee
ed473f
* Sun Jun 22 2008 Ray Strode <rstrode@redhat.com> - 0.4.0-2
ed473f
- Make plymouth-set-default-plugin --reset choose the latest
ed473f
  installed plugin, not the earliest
ed473f
506917
* Sun Jun 22 2008 Ray Strode <rstrode@redhat.com> - 0.4.0-1
506917
- Update to version 0.4.0
506917
- Only run if rhgb is on kernel command line
506917
- Make text plugin more animated
506917
21ba79
* Mon Jun 16 2008 Ray Strode <rstrode@redhat.com> - 0.3.2-2
21ba79
- dont go back to text mode on exit
21ba79
2d1421
* Mon Jun 16 2008 Ray Strode <rstrode@redhat.com> - 0.3.2-1
2d1421
- Update to version 0.3.2
2d1421
- show gradient in spinfinity plugin
2d1421
- Drop fade out in spinfinity plugin
2d1421
- fix throbber placement
2d1421
- rename graphical.so to default.so
2d1421
2313b4
* Thu Jun 12 2008 Ray Strode <rstrode@redhat.com> - 0.3.1-3
2313b4
- scriplet should be preun, not postun
2313b4
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