1 %define plymouthdaemon_execdir /sbin
2 %define plymouthclient_execdir /bin
3 %define plymouth_libdir /%{_lib}
5 Summary: Graphical Boot Animation and Logger
11 Source0: http://freedesktop.org/software/plymouth/releases/%{name}-%{version}.tar.bz2
12 # Source0-md5: e29e754e942e6fcaf5185772d18fd97e
13 Source1: %{name}-logo.png
14 # Source1-md5: 6b38a868585adfd3a96a4ad16973c1f8
15 URL: http://freedesktop.org/software/plymouth/releases
16 BuildRequires: autoconf
17 BuildRequires: automake
18 BuildRequires: cairo-devel
19 BuildRequires: gtk+2-devel
20 BuildRequires: libpng-devel
21 BuildRequires: libtool
22 BuildRequires: pango-devel >= 1.21.0
23 BuildRequires: pkgconfig
24 Requires(post): %{name}-scripts
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 Plymouth provides an attractive graphical boot animation in place of
29 the text messages that normally get shown. Text messages are instead
30 redirected to a log file for viewing after boot.
32 %package system-plugin
33 Summary: Plymouth default plugin
35 Requires: plymouth(system-plugin) = %{version}-%{release}
36 Provides: rhgb = 1:10.0.0
37 Obsoletes: rhgb < 1:10.0.0
39 %description system-plugin
40 This metapackage tracks the current distribution default plugin.
43 Summary: Plymouth libraries
44 Group: Development/Libraries
47 This package contains the libply and libplybootsplash libraries used
51 Summary: Libraries and headers for writing Plymouth splash plugins
52 Group: Development/Libraries
53 Requires: %{name} = %{version}-%{release}
57 This package contains the libply and libplybootsplash libraries and
58 headers needed to develop 3rd party splash plugins for Plymouth.
61 Summary: Plymouth related utilities
62 Group: Applications/System
63 Requires: %{name} = %{version}-%{release}
66 This package contains utilities that integrate with Plymouth including
67 a boot log viewing application.
70 Summary: Plymouth related scripts
71 Group: Applications/System
74 This package contains scripts that help integrate Plymouth with the
78 Summary: Plymouth GDM integration
79 Group: Applications/System
80 Requires: %{name} = %{version}-%{release}
81 Requires: gdm >= 1:2.22.0
82 Requires: plymouth-utils
84 %description gdm-hooks
85 This package contains support files for integrating Plymouth with GDM
86 Namely, it adds hooks to show boot messages at the login screen in the
87 event start-up services fail.
90 Summary: Plymouth label plugin
92 Requires: %{name}-libs = %{version}-%{release}
94 %description plugin-label
95 This package contains the label control plugin for Plymouth. It
96 provides the ability to render text on graphical boot splashes using
99 %package plugin-fade-in
100 Summary: Plymouth "Fade-In" plugin
102 Requires(post): %{_sbindir}/plymouth-set-default-plugin
103 Requires: %{name}-libs = %{version}-%{release}
105 %description plugin-fade-in
106 This package contains the "Fade-In" boot splash plugin for Plymouth.
107 It features a centered logo that fades in and out while stars twinkle
108 around the logo during system boot up.
110 %package plugin-pulser
111 Summary: Plymouth "Pulser" plugin
113 Requires(post): %{_sbindir}/plymouth-set-default-plugin
114 Requires: %{name}-libs = %{version}-%{release}
116 %description plugin-pulser
117 This package contains the "Pulser" boot splash plugin for Plymouth. It
118 features a pulsing text progress indicator centered in the screen
119 during system boot up.
121 %package plugin-spinfinity
122 Summary: Plymouth "Spinfinity" plugin
124 Requires(post): %{_sbindir}/plymouth-set-default-plugin
125 Requires: %{name}-libs = %{version}-%{release}
126 Requires: plymouth-plugin-label
128 %description plugin-spinfinity
129 This package contains the "Spinfinity" boot splash plugin for
130 Plymouth. It features a centered logo and animated spinner that spins
131 in the shape of an infinity sign.
133 %package plugin-solar
134 Summary: Plymouth "Solar" plugin
136 Requires(post): %{_sbindir}/plymouth-set-default-plugin
137 Requires: %{name}-libs = %{version}-%{release}
138 Requires: plymouth-plugin-label
139 Provides: plymouth(system-plugin) = %{version}-%{release}
141 %description plugin-solar
142 This package contains the "Solar" boot splash plugin for Plymouth. It
143 features a blue flamed sun with animated solar flares.
156 --without-boot-entry \
157 --without-default-plugin \
158 --with-logo=%{_pixmapsdir}/plymouth-logo.png \
159 --with-background-start-color-stop=0x0073B3 \
160 --with-background-end-color-stop=0x00457E \
161 --with-background-color=0x3391cd \
162 --enable-gdm-transition \
163 --with-system-root-install
168 rm -rf $RPM_BUILD_ROOT
171 DESTDIR=$RPM_BUILD_ROOT
173 find $RPM_BUILD_ROOT -name '*.a' -exec rm -f {} \;
174 find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} \;
176 # Temporary symlink until rc.sysinit is fixed
177 (cd $RPM_BUILD_ROOT%{_bindir}; ln -s ../../bin/plymouth)
179 install -d $RPM_BUILD_ROOT%{_localstatedir}/lib/plymouth
180 install %SOURCE1 %{_pixmapsdir}/plymouth-logo.png
183 rm -rf $RPM_BUILD_ROOT
186 [ -f %{_localstatedir}/lib/plymouth/boot-duration ] || cp -f %{_datadir}/plymouth/default-boot-duration %{_localstatedir}/lib/plymouth/boot-duration
189 if [ $1 -eq 0 ]; then
190 rm -f %{_libdir}/plymouth/default.so
193 %post libs -p /sbin/ldconfig
194 %postun libs -p /sbin/ldconfig
196 %postun plugin-spinfinity
198 if [ $1 -eq 0 ]; then
199 if [ "$(%{_sbindir}/plymouth-set-default-plugin)" == "spinfinity" ]; then
200 %{_sbindir}/plymouth-set-default-plugin --reset
204 %postun plugin-fade-in
206 if [ $1 -eq 0 ]; then
207 if [ "$(%{_sbindir}/plymouth-set-default-plugin)" == "fade-in" ]; then
208 %{_sbindir}/plymouth-set-default-plugin --reset
214 if [ $1 -eq 1 ]; then
215 %{_sbindir}/plymouth-set-default-plugin solar
220 if [ $1 -eq 0 ]; then
221 if [ "$(%{_sbindir}/plymouth-set-default-plugin)" == "solar" ]; then
222 %{_sbindir}/plymouth-set-default-plugin text
226 %postun plugin-pulser
228 if [ $1 -eq 0 ]; then
229 if [ "$(%{_sbindir}/plymouth-set-default-plugin)" == "pulser" ]; then
230 %{_sbindir}/plymouth-set-default-plugin --reset
235 %defattr(644,root,root,755)
236 %doc AUTHORS NEWS README
237 %dir %{_datadir}/plymouth
238 %dir %{_libexecdir}/plymouth
239 %dir %{_localstatedir}/lib/plymouth
240 %attr(755,root,root) %{plymouthdaemon_execdir}/plymouthd
241 %attr(755,root,root) %{plymouthclient_execdir}/plymouth
242 %attr(755,root,root) %{_bindir}/plymouth
243 %{_libdir}/plymouth/details.so
244 %{_libdir}/plymouth/text.so
245 %{_localstatedir}/run/plymouth
246 %{_localstatedir}/spool/plymouth
247 %{_pixmapsdir}/plymouth-logo.png
248 #%ghost %{_localstatedir}/lib/plymouth/boot-duration
251 %defattr(644,root,root,755)
252 %attr(755,root,root) %{plymouth_libdir}/libply.so
253 %{_libdir}/libplybootsplash.so
254 %{_pkgconfigdir}/plymouth-1.pc
255 %{_includedir}/plymouth-1
258 %defattr(644,root,root,755)
259 %attr(755,root,root) %{plymouth_libdir}/libply.so.*
260 %attr(755,root,root) %{_libdir}/libplybootsplash.so.*
261 %dir %{_libdir}/plymouth
264 %defattr(644,root,root,755)
265 %attr(755,root,root) %{_sbindir}/plymouth-set-default-plugin
266 %{_libexecdir}/plymouth/plymouth-update-initrd
267 %{_libexecdir}/plymouth/plymouth-populate-initrd
270 %defattr(644,root,root,755)
271 %attr(755,root,root) %{_bindir}/plymouth-log-viewer
274 %defattr(644,root,root,755)
275 %{_datadir}/gdm/autostart/LoginWindow/plymouth-log-viewer.desktop
278 %defattr(644,root,root,755)
279 %{_libdir}/plymouth/label.so
281 %files plugin-fade-in
282 %defattr(644,root,root,755)
283 %dir %{_datadir}/plymouth/fade-in
284 %{_datadir}/plymouth/fade-in/bullet.png
285 %{_datadir}/plymouth/fade-in/entry.png
286 %{_datadir}/plymouth/fade-in/lock.png
287 %{_datadir}/plymouth/fade-in/star.png
288 %{_libdir}/plymouth/fade-in.so
291 %defattr(644,root,root,755)
292 %{_libdir}/plymouth/pulser.so
294 %files plugin-spinfinity
295 %defattr(644,root,root,755)
296 %dir %{_datadir}/plymouth/spinfinity
297 %{_datadir}/plymouth/spinfinity/box.png
298 %{_datadir}/plymouth/spinfinity/bullet.png
299 %{_datadir}/plymouth/spinfinity/entry.png
300 %{_datadir}/plymouth/spinfinity/lock.png
301 %{_datadir}/plymouth/spinfinity/throbber-[0-3][0-9].png
302 %{_libdir}/plymouth/spinfinity.so
305 %defattr(644,root,root,755)
306 %dir %{_datadir}/plymouth/solar
307 %{_datadir}/plymouth/solar/*.png
308 %{_libdir}/plymouth/solar.so
311 %defattr(644,root,root,755)