mirror of
https://gitlab.freedesktop.org/plymouth/plymouth.git
synced 2026-05-31 13:18:25 +02:00
Splashes aren't just shown for "boot" so including "boot" in the name isn't right. Also, right now we link against libpng even if we don't have any splash that uses it. This is the first step toward making libpng only get linked to graphical splashes. We'll need to move the graphical bits to their own library to complete the process.
160 lines
4.3 KiB
RPMSpec
160 lines
4.3 KiB
RPMSpec
Summary: Plymouth Graphical Boot Animation and Logger
|
|
Name: plymouth
|
|
Version: 0.2.0
|
|
Release: 0%{?dist}
|
|
License: GPLv2+
|
|
Group: System Environment/Base
|
|
Source0: http://freedesktop.org/software/plymouth/releases/%{name}-%{version}.tar.bz2
|
|
URL: http://freedesktop.org/software/plymouth/releases
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
%description
|
|
Plymouth provides an attractive graphical boot animation in
|
|
place of the text messages that normally get shown. Text
|
|
messages are instead redirected to a log file for viewing
|
|
after boot.
|
|
|
|
%package libs
|
|
Summary: Plymouth libraries
|
|
Group: Development/Libraries
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
%description libs
|
|
This package contains the libply and libply-splash-core libraries
|
|
used by Plymouth.
|
|
|
|
%package devel
|
|
Summary: Libraries and headers for writing Plymouth splash plugins
|
|
Group: Development/Libraries
|
|
Requires: %{name} = %{version}-%{release}
|
|
Requires: pkgconfig
|
|
|
|
%description devel
|
|
This package contains the libply and libply-splash-core libraries
|
|
and headers needed to develop 3rd party splash plugins for Plymouth.
|
|
|
|
%package plugin-fade-in
|
|
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
|
|
Plymouth. It features a centered logo that fades in and out
|
|
while stars twinkle around the logo during system boot up.
|
|
|
|
%package plugin-spinfinity
|
|
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
|
|
Plymouth. It features a centered logo and animated spinner that
|
|
spins in the shape of an infinity sign.
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
%configure --enable-tracing --disable-tests --without-boot-entry --without-default-plugin
|
|
|
|
make
|
|
|
|
%install
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
find $RPM_BUILD_ROOT -name '*.a' -exec rm -f {} \;
|
|
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} \;
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
%postun
|
|
echo plymouth postun "$@"
|
|
if [ $1 -eq 0 ]; then
|
|
rm %{_libdir}/plymouth/default.so
|
|
fi
|
|
|
|
%post libs -p /sbin/ldconfig
|
|
%postun libs -p /sbin/ldconfig
|
|
|
|
%post plugin-spinfinity
|
|
echo plymouth-spinfinity post "$@"
|
|
if [ $1 -eq 1 ]; then
|
|
%{_sbindir}/plymouth-set-default-plugin spinfinity
|
|
fi
|
|
|
|
%postun plugin-spinfinity
|
|
echo plymouth-spinfinity postun "$@"
|
|
if [ $1 -eq 0 ]; then
|
|
if [ "$(%{_sbindir}/plymouth-set-default-plugin)" == "spinfinity" ]; then
|
|
%{_sbindir}/plymouth-set-default-plugin --reset
|
|
fi
|
|
fi
|
|
|
|
%post plugin-fade-in
|
|
echo plymouth-fade-in post "$@"
|
|
if [ $1 -eq 1 ]; then
|
|
%{_sbindir}/plymouth-set-default-plugin fade-in
|
|
fi
|
|
|
|
%postun plugin-fade-in
|
|
echo plymouth-fade-in postun "$@"
|
|
if [ $1 -eq 0 ]; then
|
|
if [ "$(%{_sbindir}/plymouth-set-default-plugin)" == "fade-in" ]; then
|
|
%{_sbindir}/plymouth-set-default-plugin --reset
|
|
fi
|
|
fi
|
|
|
|
%files
|
|
%defattr(-, root, root)
|
|
%doc AUTHORS NEWS README
|
|
%dir %{_datadir}/plymouth
|
|
%{_libexecdir}/plymouth/plymouthd
|
|
%{_libexecdir}/plymouth/plymouth-update-initrd
|
|
%{_libexecdir}/plymouth/plymouth-populate-initrd
|
|
%{_sbindir}/plymouth-set-default-plugin
|
|
%{_bindir}/plymouth
|
|
%{_bindir}/rhgb-client
|
|
%{_libdir}/plymouth/details.so
|
|
%{_libdir}/plymouth/text.so
|
|
%{_datadir}/plymouth/bizcom.png
|
|
%{_localstatedir}/run/plymouth
|
|
|
|
%files devel
|
|
%defattr(-, root, root)
|
|
%{_libdir}/libply.so
|
|
%{_libdir}/libply-splash-core.so
|
|
%{_libdir}/pkgconfig/plymouth-1.pc
|
|
%{_includedir}/plymouth-1
|
|
|
|
%files libs
|
|
%defattr(-, root, root)
|
|
%{_libdir}/libply.so.*
|
|
%{_libdir}/libply-splash-core.so.*
|
|
|
|
%files plugin-fade-in
|
|
%defattr(-, root, root)
|
|
%dir %{_datadir}/plymouth/fade-in
|
|
%{_datadir}/plymouth/fade-in/bullet.png
|
|
%{_datadir}/plymouth/fade-in/entry.png
|
|
%{_datadir}/plymouth/fade-in/lock.png
|
|
%{_datadir}/plymouth/fade-in/star.png
|
|
%{_libdir}/plymouth/fade-in.so
|
|
|
|
%files plugin-spinfinity
|
|
%defattr(-, root, root)
|
|
%dir %{_datadir}/plymouth/spinfinity
|
|
%{_datadir}/plymouth/spinfinity/box.png
|
|
%{_datadir}/plymouth/spinfinity/bullet.png
|
|
%{_datadir}/plymouth/spinfinity/entry.png
|
|
%{_datadir}/plymouth/spinfinity/lock.png
|
|
%{_datadir}/plymouth/spinfinity/throbber-[0-3][0-9].png
|
|
%{_libdir}/plymouth/spinfinity.so
|