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 URL: http://freedesktop.org/software/plymouth/releases
14 BuildRequires: autoconf
15 BuildRequires: automake
16 BuildRequires: cairo-devel
17 BuildRequires: gtk+2-devel
18 BuildRequires: libpng-devel
19 BuildRequires: libtool
20 BuildRequires: pango-devel >= 1.21.0
21 BuildRequires: pkgconfig
22 Requires(post): %{name}-scripts
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 Plymouth provides an attractive graphical boot animation in place of
27 the text messages that normally get shown. Text messages are instead
28 redirected to a log file for viewing after boot.
30 %package system-plugin
31 Summary: Plymouth default plugin
33 Requires: plymouth(system-plugin) = %{version}-%{release}
34 Provides: rhgb = 1:10.0.0
35 Obsoletes: rhgb < 1:10.0.0
37 %description system-plugin
38 This metapackage tracks the current distribution default plugin.
41 Summary: Plymouth libraries
42 Group: Development/Libraries
45 This package contains the libply and libplybootsplash libraries used
49 Summary: Libraries and headers for writing Plymouth splash plugins
50 Group: Development/Libraries
51 Requires: %{name} = %{version}-%{release}
55 This package contains the libply and libplybootsplash libraries and
56 headers needed to develop 3rd party splash plugins for Plymouth.
59 Summary: Plymouth related utilities
60 Group: Applications/System
61 Requires: %{name} = %{version}-%{release}
64 This package contains utilities that integrate with Plymouth including
65 a boot log viewing application.
68 Summary: Plymouth related scripts
69 Group: Applications/System
72 This package contains scripts that help integrate Plymouth with the
76 Summary: Plymouth GDM integration
77 Group: Applications/System
78 Requires: %{name} = %{version}-%{release}
79 Requires: gdm >= 1:2.22.0
80 Requires: plymouth-utils
82 %description gdm-hooks
83 This package contains support files for integrating Plymouth with GDM
84 Namely, it adds hooks to show boot messages at the login screen in the
85 event start-up services fail.
88 Summary: Plymouth label plugin
90 Requires: %{name}-libs = %{version}-%{release}
92 %description plugin-label
93 This package contains the label control plugin for Plymouth. It
94 provides the ability to render text on graphical boot splashes using
97 %package plugin-fade-in
98 Summary: Plymouth "Fade-In" plugin
100 Requires(post): %{_sbindir}/plymouth-set-default-plugin
101 Requires: %{name}-libs = %{version}-%{release}
103 %description plugin-fade-in
104 This package contains the "Fade-In" boot splash plugin for Plymouth.
105 It features a centered logo that fades in and out while stars twinkle
106 around the logo during system boot up.
108 %package plugin-pulser
109 Summary: Plymouth "Pulser" plugin
111 Requires(post): %{_sbindir}/plymouth-set-default-plugin
112 Requires: %{name}-libs = %{version}-%{release}
114 %description plugin-pulser
115 This package contains the "Pulser" boot splash plugin for Plymouth. It
116 features a pulsing text progress indicator centered in the screen
117 during system boot up.
119 %package plugin-spinfinity
120 Summary: Plymouth "Spinfinity" plugin
122 Requires(post): %{_sbindir}/plymouth-set-default-plugin
123 Requires: %{name}-libs = %{version}-%{release}
124 Requires: plymouth-plugin-label
126 %description plugin-spinfinity
127 This package contains the "Spinfinity" boot splash plugin for
128 Plymouth. It features a centered logo and animated spinner that spins
129 in the shape of an infinity sign.
131 %package plugin-solar
132 Summary: Plymouth "Solar" plugin
134 Requires(post): %{_sbindir}/plymouth-set-default-plugin
135 Requires: %{name}-libs = %{version}-%{release}
136 Requires: plymouth-plugin-label
137 Provides: plymouth(system-plugin) = %{version}-%{release}
139 %description plugin-solar
140 This package contains the "Solar" boot splash plugin for Plymouth. It
141 features a blue flamed sun with animated solar flares.
154 --without-boot-entry \
155 --without-default-plugin \
156 --with-logo=%{_pixmapsdir}/system-logo-white.png \
157 --with-background-start-color-stop=0x0073B3 \
158 --with-background-end-color-stop=0x00457E \
159 --with-background-color=0x3391cd \
160 --enable-gdm-transition \
161 --with-system-root-install
166 rm -rf $RPM_BUILD_ROOT
169 DESTDIR=$RPM_BUILD_ROOT
171 find $RPM_BUILD_ROOT -name '*.a' -exec rm -f {} \;
172 find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} \;
174 # Temporary symlink until rc.sysinit is fixed
175 (cd $RPM_BUILD_ROOT%{_bindir}; ln -s ../../bin/plymouth)
177 install -d $RPM_BUILD_ROOT%{_localstatedir}/lib/plymouth
180 rm -rf $RPM_BUILD_ROOT
183 [ -f %{_localstatedir}/lib/plymouth/boot-duration ] || cp -f %{_datadir}/plymouth/default-boot-duration %{_localstatedir}/lib/plymouth/boot-duration
186 if [ $1 -eq 0 ]; then
187 rm -f %{_libdir}/plymouth/default.so
190 %post libs -p /sbin/ldconfig
191 %postun libs -p /sbin/ldconfig
193 %postun plugin-spinfinity
195 if [ $1 -eq 0 ]; then
196 if [ "$(%{_sbindir}/plymouth-set-default-plugin)" == "spinfinity" ]; then
197 %{_sbindir}/plymouth-set-default-plugin --reset
201 %postun plugin-fade-in
203 if [ $1 -eq 0 ]; then
204 if [ "$(%{_sbindir}/plymouth-set-default-plugin)" == "fade-in" ]; then
205 %{_sbindir}/plymouth-set-default-plugin --reset
211 if [ $1 -eq 1 ]; then
212 %{_sbindir}/plymouth-set-default-plugin solar
217 if [ $1 -eq 0 ]; then
218 if [ "$(%{_sbindir}/plymouth-set-default-plugin)" == "solar" ]; then
219 %{_sbindir}/plymouth-set-default-plugin text
223 %postun plugin-pulser
225 if [ $1 -eq 0 ]; then
226 if [ "$(%{_sbindir}/plymouth-set-default-plugin)" == "pulser" ]; then
227 %{_sbindir}/plymouth-set-default-plugin --reset
232 %defattr(644,root,root,755)
233 %doc AUTHORS NEWS README
234 %dir %{_datadir}/plymouth
235 %dir %{_libexecdir}/plymouth
236 %dir %{_localstatedir}/lib/plymouth
237 %{plymouthdaemon_execdir}/plymouthd
238 %{plymouthclient_execdir}/plymouth
239 %attr(755,root,root) %{_bindir}/plymouth
240 %attr(755,root,root) %{_bindir}/rhgb-client
241 %{_libdir}/plymouth/details.so
242 %{_libdir}/plymouth/text.so
243 %{_localstatedir}/run/plymouth
244 %{_localstatedir}/spool/plymouth
245 #%ghost %{_localstatedir}/lib/plymouth/boot-duration
248 %defattr(644,root,root,755)
249 %{plymouth_libdir}/libply.so
250 %{_libdir}/libplybootsplash.so
251 %{_pkgconfigdir}/plymouth-1.pc
252 %{_includedir}/plymouth-1
255 %defattr(644,root,root,755)
256 %attr(755,root,root) %{plymouth_libdir}/libply.so.*
257 %attr(755,root,root) %{_libdir}/libplybootsplash.so.*
258 %dir %{_libdir}/plymouth
261 %defattr(644,root,root,755)
262 %attr(755,root,root) %{_sbindir}/plymouth-set-default-plugin
263 %{_libexecdir}/plymouth/plymouth-update-initrd
264 %{_libexecdir}/plymouth/plymouth-populate-initrd
267 %defattr(644,root,root,755)
268 %attr(755,root,root) %{_bindir}/plymouth-log-viewer
271 %defattr(644,root,root,755)
272 %{_datadir}/gdm/autostart/LoginWindow/plymouth-log-viewer.desktop
275 %defattr(644,root,root,755)
276 %{_libdir}/plymouth/label.so
278 %files plugin-fade-in
279 %defattr(644,root,root,755)
280 %dir %{_datadir}/plymouth/fade-in
281 %{_datadir}/plymouth/fade-in/bullet.png
282 %{_datadir}/plymouth/fade-in/entry.png
283 %{_datadir}/plymouth/fade-in/lock.png
284 %{_datadir}/plymouth/fade-in/star.png
285 %{_libdir}/plymouth/fade-in.so
288 %defattr(644,root,root,755)
289 %{_libdir}/plymouth/pulser.so
291 %files plugin-spinfinity
292 %defattr(644,root,root,755)
293 %dir %{_datadir}/plymouth/spinfinity
294 %{_datadir}/plymouth/spinfinity/box.png
295 %{_datadir}/plymouth/spinfinity/bullet.png
296 %{_datadir}/plymouth/spinfinity/entry.png
297 %{_datadir}/plymouth/spinfinity/lock.png
298 %{_datadir}/plymouth/spinfinity/throbber-[0-3][0-9].png
299 %{_libdir}/plymouth/spinfinity.so
302 %defattr(644,root,root,755)
303 %dir %{_datadir}/plymouth/solar
304 %{_datadir}/plymouth/solar/*.png
305 %{_libdir}/plymouth/solar.so
308 %defattr(644,root,root,755)