2 # - revisit subpackages
3 # - fix: Requires: /bin/bash
4 # - integrate with geninitrd
5 # - pldize recent update
6 Summary: Graphical Boot Animation and Logger
7 Summary(pl.UTF-8): Graficzna animacja i logowanie startu systemu
13 Source0: http://www.freedesktop.org/software/plymouth/releases/%{name}-%{version}.tar.bz2
14 # Source0-md5: 6f370cd69bd6d0c67657d243a99dc260
15 Source1: %{name}-logo.png
16 # Source1-md5: 6b38a868585adfd3a96a4ad16973c1f8
17 Source2: %{name}.tmpfiles
18 Source3: charge.%{name}
19 Source4: boot-duration
20 Source5: %{name}-set-default-plugin
21 Source6: %{name}-update-initrd
22 Patch0: check_for_consoles.patch
23 URL: http://www.freedesktop.org/wiki/Software/Plymouth
24 #BuildRequires: autoconf >= 2.50
25 #BuildRequires: automake
26 BuildRequires: cairo-devel
27 BuildRequires: gtk+2-devel >= 2:2.12.0
28 BuildRequires: libdrm-devel
29 BuildRequires: libpng-devel >= 1.2.16
30 #BuildRequires: libtool >= 2:2.0
31 BuildRequires: pango-devel >= 1:1.21.0
32 BuildRequires: pkgconfig
33 Requires: %{name}-graphics-libs = %{version}-%{release}
34 Requires(post): %{name}-scripts = %{version}-%{release}
35 Obsoletes: plymouth-gdm-hooks
36 Obsoletes: plymouth-utils
37 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
39 %define plymouthdaemon_execdir /sbin
40 %define plymouthclient_execdir /bin
41 %define plymouth_libdir /%{_lib}
44 Plymouth provides an attractive graphical boot animation in place of
45 the text messages that normally get shown. Text messages are instead
46 redirected to a log file for viewing after boot.
48 %description -l pl.UTF-8
49 Plymouth zapewnia atrakcyjną animację w trakcie startu systemu zamiast
50 zwykle wyświetlanych komunikatów tekstowych. Komunikaty tekstowe
51 zamiast tego są przekierowywane do logu, który można obejrzeć po
55 Summary: Plymouth libraries
56 Summary(pl.UTF-8): Biblioteki Plymouth
60 This package contains the libply and libplybootsplash libraries used
63 %description libs -l pl.UTF-8
64 Ten pakiet zawiera biblioteki libply i libplybootsplash używane przez
68 Summary: Header files for writing Plymouth splash plugins
69 Summary(pl.UTF-8): Pliki nagłówkowe do tworzenia wtyczek graficznych Plymouth
70 Group: Development/Libraries
71 Requires: %{name}-graphics-libs = %{version}-%{release}
74 This package contains the header files for libply and libplybootsplash
75 libraries needed to develop 3rd party splash plugins for Plymouth.
77 %description devel -l pl.UTF-8
78 Ten pakiet zawiera pliki nagłówkowe bibliotek libply i
79 libplybootsplash, potrzebne do tworzenia wtyczek graficznych Plymouth.
82 Summary: Plymouth default theme
84 Requires: %{name}(system-theme) = %{version}-%{release}
85 Provides: %{name}-system-plugin = %{version}-%{release}
86 Obsoletes: plymouth-system-plugin < %{version}-%{release}
87 Obsoletes: rhgb < 1:10.0.0
89 %description system-theme
90 This metapackage tracks the current distribution default theme.
93 Summary: Plymouth core libraries
94 Group: Development/Libraries
95 Conflicts: %{name}-libs < 0.8.4-0.20120319.1
97 %description core-libs
98 This package contains the libply and libply-splash-core libraries used
101 %package graphics-libs
102 Summary: Plymouth graphics libraries
103 Group: Development/Libraries
104 Requires: %{name}-core-libs = %{version}-%{release}
105 Provides: %{name}-graphics-libs = %{version}-%{release}
106 Obsoletes: plymouth-libs < %{version}-%{release}
107 Conflicts: %{name}-libs < 0.8.4-0.20120319.1
109 %description graphics-libs
110 This package contains the libply-splash-graphics library used by
111 graphical Plymouth splashes.
114 Summary: Plymouth related scripts
115 Summary(pl.UTF-8): Skrypty pomocnicze do Plymouth
116 Group: Applications/System
117 Requires: %{name} = %{version}-%{release}
125 This package contains scripts that help integrate Plymouth with the
128 %description scripts -l pl.UTF-8
129 Ten pakiet zawiera skrypty pomagające zintegrować Plymouth z systemem.
131 %package plugin-label
132 Summary: Plymouth label plugin
134 Requires: %{name}-graphics-libs = %{version}-%{release}
136 %description plugin-label
137 This package contains the label control plugin for Plymouth. It
138 provides the ability to render text on graphical boot splashes using
141 %package plugin-fade-throbber
142 Summary: Plymouth "Fade-Throbber" plugin
144 Requires: %{name}-graphics-libs = %{version}-%{release}
146 %description plugin-fade-throbber
147 This package contains the "Fade-In" boot splash plugin for Plymouth.
148 It features a centered image that fades in and out while other images
149 pulsate around during system boot up.
151 %package theme-fade-in
152 Summary: Plymouth "Fade-In" theme
154 Requires: %{name}-plugin-fade-throbber = %{version}-%{release}
155 Requires(post): %{name}-scripts = %{version}-%{release}
156 Obsoletes: plymouth-plugin-fade-in
158 %description theme-fade-in
159 This package contains the "Fade-In" boot splash theme for Plymouth. It
160 features a centered logo that fades in and out while stars twinkle
161 around the logo during system boot up.
163 %package plugin-throbgress
164 Summary: Plymouth "Throbgress" plugin
166 Requires: %{name}-graphics-libs = %{version}-%{release}
167 Requires: %{name}-plugin-label = %{version}-%{release}
169 %description plugin-throbgress
170 This package contains the "throbgress" boot splash plugin for
171 Plymouth. It features a centered logo and animated spinner that spins
172 repeatedly while a progress bar advances at the bottom of the screen.
174 %package theme-spinfinity
175 Summary: Plymouth "Spinfinity" theme
177 Requires: %{name}-plugin-throbgress = %{version}-%{release}
178 Requires(post): %{name}-scripts = %{version}-%{release}
179 Obsoletes: plymouth-plugin-spinfinity
181 %description theme-spinfinity
182 This package contains the "Spinfinity" boot splash theme for Plymouth.
183 It features a centered logo and animated spinner that spins in the
184 shape of an infinity sign.
186 %package plugin-space-flares
187 Summary: Plymouth "space-flares" plugin
189 Requires: %{name}-graphics-libs = %{version}-%{release}
190 Requires: %{name}-plugin-label = %{version}-%{release}
192 %description plugin-space-flares
193 This package contains the "space-flares" boot splash plugin for
194 Plymouth. It features a corner image with animated flares.
197 Summary: Plymouth "Solar" theme
199 Requires: %{name}-plugin-space-flares = %{version}-%{release}
200 Requires(post): %{name}-scripts = %{version}-%{release}
201 Obsoletes: plymouth-plugin-solar
203 %description theme-solar
204 This package contains the "Solar" boot splash theme for Plymouth. It
205 features a blue flamed sun with animated solar flares.
207 %package plugin-two-step
208 Summary: Plymouth "two-step" plugin
210 Requires: %{name}-graphics-libs = %{version}-%{release}
211 Requires: %{name}-plugin-label = %{version}-%{release}
213 %description plugin-two-step
214 This package contains the "two-step" boot splash plugin for Plymouth.
215 It features a two phased boot process that starts with a progressing
216 animation synced to boot time and finishes with a short, fast one-shot
219 %package theme-charge
220 Summary: Plymouth "Charge" plugin
222 Requires: %{name}-plugin-two-step = %{version}-%{release}
223 Requires(post): %{name}-scripts = %{version}-%{release}
224 Provides: %{name}(system-theme) = %{version}-%{release}
226 %description theme-charge
227 This package contains the "charge" boot splash theme for Plymouth. It
228 features the shadowy hull of a Fedora logo charge up and and finally
229 burst into full form.
231 %package plugin-script
232 Summary: Plymouth "script" plugin
234 Requires: %{name}-graphics-libs = %{version}-%{release}
236 %description plugin-script
237 This package contains the "script" boot splash plugin for Plymouth. It
238 features an extensible, scriptable boot splash language that
239 simplifies the process of designing custom boot splash themes.
241 %package theme-script
242 Summary: Plymouth "Script" plugin
244 Requires: %{name}-plugin-script = %{version}-%{release}
245 Requires(post): %{_sbindir}/plymouth-set-default-theme
247 %description theme-script
248 This package contains the "script" boot splash theme for Plymouth. It
249 it is a simple example theme the uses the "script" plugin.
251 %package theme-spinner
252 Summary: Plymouth "Spinner" theme
254 Requires: %{name}-plugin-two-step = %{version}-%{release}
255 Requires(post): %{name}-scripts = %{version}-%{release}
257 %description theme-spinner
258 This package contains the "spinner" boot splash theme for Plymouth. It
259 features a small spinner on a dark background.
265 # Change the default theme
266 sed -i -e 's/fade-in/charge/g' src/plymouthd.defaults
270 --disable-silent-rules \
273 --enable-gdm-transition \
274 --enable-systemd-integration \
276 --with-background-start-color-stop=0x003194 \
277 --with-background-end-color-stop=0x000063 \
278 --with-background-color=0x0063c6 \
279 --with-logo=%{_pixmapsdir}/plymouth-logo.png \
280 --with-system-root-install
285 rm -rf $RPM_BUILD_ROOT
286 install -d $RPM_BUILD_ROOT{%{_pixmapsdir},%{systemdtmpfilesdir}}
288 DESTDIR=$RPM_BUILD_ROOT
290 install -d $RPM_BUILD_ROOT%{_localstatedir}/lib/plymouth
291 cp -p %{SOURCE4} $RPM_BUILD_ROOT%{_datadir}/plymouth/default-boot-duration
292 > $RPM_BUILD_ROOT%{_localstatedir}/lib/plymouth/boot-duration
294 # FC: Add charge, our new default
295 install -d $RPM_BUILD_ROOT%{_datadir}/plymouth/themes/charge
296 cp %{SOURCE3} $RPM_BUILD_ROOT%{_datadir}/plymouth/themes/charge
297 cp $RPM_BUILD_ROOT%{_datadir}/plymouth/themes/glow/{box,bullet,entry,lock}.png $RPM_BUILD_ROOT%{_datadir}/plymouth/themes/charge
299 # FC: Glow isn't quite ready for primetime
300 rm -rf $RPM_BUILD_ROOT%{_datadir}/plymouth/glow
301 rm -f $RPM_BUILD_ROOT%{_libdir}/plymouth/glow.so
302 # FC: Drop glow, it's not very Fedora-y
303 rm -rf $RPM_BUILD_ROOT%{_datadir}/plymouth/themes/glow
305 # FC: Override plymouth-update-initrd to work dracut or mkinitrd
306 cp -p %{SOURCE6} $RPM_BUILD_ROOT%{_libdir}/plymouth/plymouth-update-initrd
308 # FC: Add compat script for upgrades
309 install -p %{SOURCE5} $RPM_BUILD_ROOT%{_sbindir}
311 %{__rm} $RPM_BUILD_ROOT{%{plymouth_libdir},%{_libdir}}/*.la \
312 $RPM_BUILD_ROOT%{_libdir}/plymouth/*.la \
313 $RPM_BUILD_ROOT%{_libdir}/plymouth/renderers/*.la
315 # Temporary symlink until rc.sysinit is fixed
316 ln -sf /bin/plymouth $RPM_BUILD_ROOT%{_bindir}/plymouth
318 install -d $RPM_BUILD_ROOT%{_localstatedir}/lib/plymouth
320 cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_pixmapsdir}/plymouth-logo.png
321 cp -p %{SOURCE2} $RPM_BUILD_ROOT%{systemdtmpfilesdir}/%{name}.conf
324 rm -rf $RPM_BUILD_ROOT
327 if [ $1 -eq 0 ]; then
328 rm -f %{_libdir}/plymouth/default.so
331 %post core-libs -p /sbin/ldconfig
332 %postun core-libs -p /sbin/ldconfig
333 %post graphics-libs -p /sbin/ldconfig
334 %postun graphics-libs -p /sbin/ldconfig
337 %defattr(644,root,root,755)
338 %doc AUTHORS README TODO
339 %attr(755,root,root) %{_bindir}/rhgb-client
340 %dir %{_sysconfdir}/plymouth
341 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/plymouth/plymouthd.conf
342 %{_mandir}/man8/plymouth.8*
343 %dir %{_datadir}/plymouth
344 %dir %{_datadir}/plymouth/themes
345 %dir %{_datadir}/plymouth/themes/details
346 %dir %{_datadir}/plymouth/themes/text
347 %{_datadir}/plymouth/plymouthd.defaults
348 %{_datadir}/plymouth/default-boot-duration
349 %dir %{_libdir}/plymouth
350 %dir %{_libdir}/plymouth/renderers
351 %dir %{_localstatedir}/lib/plymouth
352 %attr(755,root,root) %{plymouthdaemon_execdir}/plymouthd
353 %attr(755,root,root) %{plymouthclient_execdir}/plymouth
354 %attr(755,root,root) %{_bindir}/plymouth
355 %attr(755,root,root) %{_libdir}/plymouth/details.so
356 %attr(755,root,root) %{_libdir}/plymouth/text.so
357 %attr(755,root,root) %{_libdir}/plymouth/renderers/drm.so
358 %attr(755,root,root) %{_libdir}/plymouth/renderers/frame-buffer.so
359 %{_datadir}/plymouth/themes/details/details.plymouth
360 %{_datadir}/plymouth/themes/text/text.plymouth
361 %{systemdtmpfilesdir}/%{name}.conf
362 %{_localstatedir}/run/plymouth
363 %{_localstatedir}/spool/plymouth
364 %{_pixmapsdir}/plymouth-logo.png
365 %ghost %{_localstatedir}/lib/plymouth/boot-duration
368 %defattr(644,root,root,755)
369 %attr(755,root,root) %{plymouth_libdir}/libply.so.*.*.*
370 %attr(755,root,root) %ghost %{plymouth_libdir}/libply.so.2
371 %attr(755,root,root) %{plymouth_libdir}/libply-splash-core.so.*.*.*
372 %attr(755,root,root) %ghost %{plymouth_libdir}/libply-splash-core.so.2
373 %attr(755,root,root) %{_libdir}/libply-boot-client.so.*.*.*
374 %attr(755,root,root) %ghost %{_libdir}/libply-boot-client.so.2
375 %dir %{_libdir}/plymouth
378 %defattr(644,root,root,755)
379 %attr(755,root,root) %{_libdir}/libply-splash-graphics.so.*.*.*
380 %attr(755,root,root) %ghost %{_libdir}/libply-splash-graphics.so.2
382 %attr(755,root,root) %{_libdir}/plymouth/renderers/x11.so
385 %defattr(644,root,root,755)
386 %attr(755,root,root) %{plymouth_libdir}/libply.so
387 %attr(755,root,root) %{plymouth_libdir}/libply-splash-core.so
388 %attr(755,root,root) %{_libdir}/libply-boot-client.so
389 %attr(755,root,root) %{_libdir}/libply-splash-graphics.so
390 %{_includedir}/plymouth-1
391 %{_pkgconfigdir}/ply-boot-client.pc
392 %{_pkgconfigdir}/ply-splash-core.pc
393 %{_pkgconfigdir}/ply-splash-graphics.pc
396 %defattr(644,root,root,755)
397 %attr(755,root,root) %{_sbindir}/plymouth-set-default-plugin
398 %attr(755,root,root) %{_sbindir}/plymouth-set-default-theme
399 %attr(755,root,root) %{_libdir}/plymouth/plymouth-generate-initrd
400 %attr(755,root,root) %{_libdir}/plymouth/plymouth-populate-initrd
401 %attr(755,root,root) %{_libdir}/plymouth/plymouth-update-initrd
404 %defattr(644,root,root,755)
405 %attr(755,root,root) %{_libdir}/plymouth/label.so
407 %files plugin-fade-throbber
408 %defattr(644,root,root,755)
409 %attr(755,root,root) %{_libdir}/plymouth/fade-throbber.so
412 %defattr(644,root,root,755)
413 %dir %{_datadir}/plymouth/themes/fade-in
414 %{_datadir}/plymouth/themes/fade-in/bullet.png
415 %{_datadir}/plymouth/themes/fade-in/entry.png
416 %{_datadir}/plymouth/themes/fade-in/lock.png
417 %{_datadir}/plymouth/themes/fade-in/star.png
418 %{_datadir}/plymouth/themes/fade-in/fade-in.plymouth
421 %defattr(644,root,root,755)
422 %dir %{_datadir}/plymouth/themes/spinner
423 %{_datadir}/plymouth/themes/spinner/*.png
424 %{_datadir}/plymouth/themes/spinner/spinner.plymouth
426 %files plugin-throbgress
427 %defattr(644,root,root,755)
428 %attr(755,root,root) %{_libdir}/plymouth/throbgress.so
430 %files theme-spinfinity
431 %defattr(644,root,root,755)
432 %dir %{_datadir}/plymouth/themes/spinfinity
433 %{_datadir}/plymouth/themes/spinfinity/box.png
434 %{_datadir}/plymouth/themes/spinfinity/bullet.png
435 %{_datadir}/plymouth/themes/spinfinity/entry.png
436 %{_datadir}/plymouth/themes/spinfinity/lock.png
437 %{_datadir}/plymouth/themes/spinfinity/throbber-[0-3][0-9].png
438 %{_datadir}/plymouth/themes/spinfinity/spinfinity.plymouth
440 %files plugin-space-flares
441 %defattr(644,root,root,755)
442 %attr(755,root,root) %{_libdir}/plymouth/space-flares.so
445 %defattr(644,root,root,755)
446 %dir %{_datadir}/plymouth/themes/solar
447 %{_datadir}/plymouth/themes/solar/*.png
448 %{_datadir}/plymouth/themes/solar/solar.plymouth
450 %files plugin-two-step
451 %defattr(644,root,root,755)
452 %attr(755,root,root) %{_libdir}/plymouth/two-step.so
455 %defattr(644,root,root,755)
456 %dir %{_datadir}/plymouth/themes/charge
457 %{_datadir}/plymouth/themes/charge/*.png
458 %{_datadir}/plymouth/themes/charge/charge.plymouth
461 %defattr(644,root,root,755)
462 %attr(755,root,root) %{_libdir}/plymouth/script.so
465 %defattr(644,root,root,755)
466 %dir %{_datadir}/plymouth/themes/script
467 %{_datadir}/plymouth/themes/script/*.png
468 %{_datadir}/plymouth/themes/script/script.script
469 %{_datadir}/plymouth/themes/script/script.plymouth
472 %defattr(644,root,root,755)