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 -d $RPM_BUILD_ROOT%{_pixmapsdir}
181 install %SOURCE1 $RPM_BUILD_ROOT%{_pixmapsdir}/plymouth-logo.png
184 rm -rf $RPM_BUILD_ROOT
187 [ -f %{_localstatedir}/lib/plymouth/boot-duration ] || cp -f %{_datadir}/plymouth/default-boot-duration %{_localstatedir}/lib/plymouth/boot-duration
190 if [ $1 -eq 0 ]; then
191 rm -f %{_libdir}/plymouth/default.so
194 %post libs -p /sbin/ldconfig
195 %postun libs -p /sbin/ldconfig
197 %postun plugin-spinfinity
199 if [ $1 -eq 0 ]; then
200 if [ "$(%{_sbindir}/plymouth-set-default-plugin)" == "spinfinity" ]; then
201 %{_sbindir}/plymouth-set-default-plugin --reset
205 %postun plugin-fade-in
207 if [ $1 -eq 0 ]; then
208 if [ "$(%{_sbindir}/plymouth-set-default-plugin)" == "fade-in" ]; then
209 %{_sbindir}/plymouth-set-default-plugin --reset
215 if [ $1 -eq 1 ]; then
216 %{_sbindir}/plymouth-set-default-plugin solar
221 if [ $1 -eq 0 ]; then
222 if [ "$(%{_sbindir}/plymouth-set-default-plugin)" == "solar" ]; then
223 %{_sbindir}/plymouth-set-default-plugin text
227 %postun plugin-pulser
229 if [ $1 -eq 0 ]; then
230 if [ "$(%{_sbindir}/plymouth-set-default-plugin)" == "pulser" ]; then
231 %{_sbindir}/plymouth-set-default-plugin --reset
236 %defattr(644,root,root,755)
237 %doc AUTHORS NEWS README
238 %dir %{_datadir}/plymouth
239 %dir %{_libexecdir}/plymouth
240 %dir %{_localstatedir}/lib/plymouth
241 %attr(755,root,root) %{plymouthdaemon_execdir}/plymouthd
242 %attr(755,root,root) %{plymouthclient_execdir}/plymouth
243 %attr(755,root,root) %{_bindir}/plymouth
244 %{_libdir}/plymouth/details.so
245 %{_libdir}/plymouth/text.so
246 %{_localstatedir}/run/plymouth
247 %{_localstatedir}/spool/plymouth
248 %{_pixmapsdir}/plymouth-logo.png
249 #%ghost %{_localstatedir}/lib/plymouth/boot-duration
252 %defattr(644,root,root,755)
253 %attr(755,root,root) %{plymouth_libdir}/libply.so
254 %{_libdir}/libplybootsplash.so
255 %{_pkgconfigdir}/plymouth-1.pc
256 %{_includedir}/plymouth-1
259 %defattr(644,root,root,755)
260 %attr(755,root,root) %{plymouth_libdir}/libply.so.*
261 %attr(755,root,root) %{_libdir}/libplybootsplash.so.*
262 %dir %{_libdir}/plymouth
265 %defattr(644,root,root,755)
266 %attr(755,root,root) %{_sbindir}/plymouth-set-default-plugin
267 %{_libexecdir}/plymouth/plymouth-update-initrd
268 %{_libexecdir}/plymouth/plymouth-populate-initrd
271 %defattr(644,root,root,755)
272 %attr(755,root,root) %{_bindir}/plymouth-log-viewer
275 %defattr(644,root,root,755)
276 %{_datadir}/gdm/autostart/LoginWindow/plymouth-log-viewer.desktop
279 %defattr(644,root,root,755)
280 %{_libdir}/plymouth/label.so
282 %files plugin-fade-in
283 %defattr(644,root,root,755)
284 %dir %{_datadir}/plymouth/fade-in
285 %{_datadir}/plymouth/fade-in/bullet.png
286 %{_datadir}/plymouth/fade-in/entry.png
287 %{_datadir}/plymouth/fade-in/lock.png
288 %{_datadir}/plymouth/fade-in/star.png
289 %{_libdir}/plymouth/fade-in.so
292 %defattr(644,root,root,755)
293 %{_libdir}/plymouth/pulser.so
295 %files plugin-spinfinity
296 %defattr(644,root,root,755)
297 %dir %{_datadir}/plymouth/spinfinity
298 %{_datadir}/plymouth/spinfinity/box.png
299 %{_datadir}/plymouth/spinfinity/bullet.png
300 %{_datadir}/plymouth/spinfinity/entry.png
301 %{_datadir}/plymouth/spinfinity/lock.png
302 %{_datadir}/plymouth/spinfinity/throbber-[0-3][0-9].png
303 %{_libdir}/plymouth/spinfinity.so
306 %defattr(644,root,root,755)
307 %dir %{_datadir}/plymouth/solar
308 %{_datadir}/plymouth/solar/*.png
309 %{_libdir}/plymouth/solar.so
312 %defattr(644,root,root,755)