2 # - integrate with geninitrd
3 # - pldize recent update (r1.18)
6 %bcond_without drm_intel # disable building with libdrm_intel support
7 %bcond_without drm_radeon # disable building with libdrm_radeon support
8 %bcond_with drm_nouveau # enable building with libdrm_nouveau support
9 %bcond_without kms # disable building with libkms support
11 Summary: Graphical Boot Animation and Logger
12 Summary(pl.UTF-8): Graficzna animacja i logowanie startu systemu
18 Source0: http://www.freedesktop.org/software/plymouth/releases/%{name}-%{version}.tar.bz2
19 # Source0-md5: 6f370cd69bd6d0c67657d243a99dc260
20 Source1: %{name}-logo.png
21 # Source1-md5: 6b38a868585adfd3a96a4ad16973c1f8
22 Source2: %{name}.tmpfiles
23 Source3: charge.%{name}
24 Source4: boot-duration
25 Source5: %{name}-set-default-plugin
26 Source6: %{name}-update-initrd
27 Patch0: check_for_consoles.patch
28 Patch1: text-colors.patch
29 URL: http://www.freedesktop.org/wiki/Software/Plymouth
30 BuildRequires: cairo-devel
31 BuildRequires: gtk+2-devel >= 2:2.12.0
32 %if %{with drm_intel} || %{with drm_radeon} || %{with drm_nouveau} || %{with kms}
33 BuildRequires: libdrm-devel
35 BuildRequires: libpng-devel >= 1.2.16
36 BuildRequires: pango-devel >= 1:1.21.0
37 BuildRequires: pkgconfig
38 Requires: %{name}-graphics-libs = %{version}-%{release}
39 Requires(post): %{name}-scripts = %{version}-%{release}
40 Requires: /etc/os-release
41 Requires: systemd-plymouth
42 Obsoletes: plymouth-gdm-hooks
43 Obsoletes: plymouth-utils
44 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
46 %define plymouthdaemon_execdir /sbin
47 %define plymouthclient_execdir /bin
48 %define plymouth_libdir /%{_lib}
51 Plymouth provides an attractive graphical boot animation in place of
52 the text messages that normally get shown. Text messages are instead
53 redirected to a log file for viewing after boot.
55 %description -l pl.UTF-8
56 Plymouth zapewnia atrakcyjną animację w trakcie startu systemu zamiast
57 zwykle wyświetlanych komunikatów tekstowych. Komunikaty tekstowe
58 zamiast tego są przekierowywane do logu, który można obejrzeć po
62 Summary: Plymouth core libraries
63 Summary(pl.UTF-8): Podstawowe biblioteki Plymouth
65 Conflicts: plymouth-libs < 0.8.4-0.20120319.1
67 %description core-libs
68 This package contains the libply and libply-splash-core libraries used
71 %description core-libs -l pl.UTF-8
72 Ten pakiet zawiera biblioteki libply i libply-splash-core
73 wykorzystywane przez Plymouth.
75 %package graphics-libs
76 Summary: Plymouth graphics libraries
77 Summary(pl.UTF-8): Biblioteki graficzne Plymouth
78 Group: Development/Libraries
79 Requires: %{name}-core-libs = %{version}-%{release}
80 Provides: %{name}-graphics-libs = %{version}-%{release}
81 Obsoletes: plymouth-libs < %{version}-%{release}
82 Conflicts: plymouth-libs < 0.8.4-0.20120319.1
84 %description graphics-libs
85 This package contains the libply-splash-graphics library used by
86 graphical Plymouth splashes.
88 %description graphics-libs -l pl.UTF-8
89 Ten pakiet zawiera bibliotekę libply-splash-graphics wykorzystywaną
90 przez graficzne ekrany Plymouth.
93 Summary: Header files for writing Plymouth splash plugins
94 Summary(pl.UTF-8): Pliki nagłówkowe do tworzenia wtyczek graficznych Plymouth
95 Group: Development/Libraries
96 Requires: %{name}-graphics-libs = %{version}-%{release}
99 This package contains the header files for libply and libplybootsplash
100 libraries needed to develop 3rd party splash plugins for Plymouth.
102 %description devel -l pl.UTF-8
103 Ten pakiet zawiera pliki nagłówkowe bibliotek libply i
104 libplybootsplash, potrzebne do tworzenia wtyczek graficznych Plymouth.
107 Summary: Plymouth related scripts
108 Summary(pl.UTF-8): Skrypty pomocnicze do Plymouth
109 Group: Applications/System
110 Requires: %{name} = %{version}-%{release}
118 This package contains scripts that help integrate Plymouth with the
121 %description scripts -l pl.UTF-8
122 Ten pakiet zawiera skrypty pomagające zintegrować Plymouth z systemem.
124 %package plugin-fade-throbber
125 Summary: Plymouth "Fade-Throbber" plugin
126 Summary(pl.UTF-8): Wtyczka Plymouth "Fade-Throbber"
128 Requires: %{name}-graphics-libs = %{version}-%{release}
130 %description plugin-fade-throbber
131 This package contains the "Fade-Throbber" boot splash plugin for
132 Plymouth. It features a centered image that fades in and out while
133 other images pulsate around during system boot up.
135 %description plugin-fade-throbber -l pl.UTF-8
136 Ten pakiet zawiera wtyczkę ekranu startowego Plymouth "Fade-Throbber".
137 Cechuje się ona środkowym obrazkiem, który płynnie pojawia się i
138 wygasa, podczas gdy inne obrazki pulsują w trakcie startu systemu.
140 %package plugin-label
141 Summary: Plymouth label plugin
142 Summary(pl.UTF-8): Wtyczka Plymouth z etykietami
144 Requires: %{name}-graphics-libs = %{version}-%{release}
146 %description plugin-label
147 This package contains the label control plugin for Plymouth. It
148 provides the ability to render text on graphical boot splashes using
151 %description plugin-label -l pl.UTF-8
152 Ten pakiet zawiera wtyczkę Plymouth sterującą etykietami. Daje ona
153 możliwość renderowania tekstu na graficznych ekranach startowych przy
154 użyciu bibliotek pango i cairo.
156 %package plugin-script
157 Summary: Plymouth "script" plugin
158 Summary(pl.UTF-8): Wtyczka Plymouth "script"
160 Requires: %{name}-graphics-libs = %{version}-%{release}
162 %description plugin-script
163 This package contains the "script" boot splash plugin for Plymouth. It
164 features an extensible, scriptable boot splash language that
165 simplifies the process of designing custom boot splash themes.
167 %description plugin-script -l pl.UTF-8
168 Ten pakiet zawiera wtyczkę ekranu startowego Plymouth "script".
169 Odznacza się ona rozszerzalnym, skryptowym językiem ekranu startowego,
170 upraszczającym proces projektowania własnych motywów ekranów
173 %package plugin-space-flares
174 Summary: Plymouth "space-flares" plugin
175 Summary(pl.UTF-8): Wtyczka Plymouth "space-flares"
177 Requires: %{name}-graphics-libs = %{version}-%{release}
178 Requires: %{name}-plugin-label = %{version}-%{release}
180 %description plugin-space-flares
181 This package contains the "space-flares" boot splash plugin for
182 Plymouth. It features a corner image with animated flares.
184 %description plugin-space-flares -l pl.UTF-8
185 Ten pakiet zawiera wtyczkę ekranu startowego Plymouth "space-flares".
186 Odznacza się ona umieszczonym w rogu obrazkiem z animowanymi
189 %package plugin-two-step
190 Summary: Plymouth "two-step" plugin
191 Summary(pl.UTF-8): Wtyczka Plymouth "two-step"
193 Requires: %{name}-graphics-libs = %{version}-%{release}
194 Requires: %{name}-plugin-label = %{version}-%{release}
196 %description plugin-two-step
197 This package contains the "two-step" boot splash plugin for Plymouth.
198 It features a two phased boot process that starts with a progressing
199 animation synced to boot time and finishes with a short, fast one-shot
202 %description plugin-two-step -l pl.UTF-8
203 Ten pakeit zawiera wtyczkę ekranu startowego Plymouth "two-step".
204 Odznacza się ona dwuetapowym procesem startu, rozpoczynającym się
205 postępującą animacją synchronizowaną z czasem uruchamiania, a kończy
206 krótką, jednorazową animacją.
208 %package plugin-throbgress
209 Summary: Plymouth "Throbgress" plugin
210 Summary(pl.UTF-8): Wtyczka Plymouth "Throbgress"
212 Requires: %{name}-graphics-libs = %{version}-%{release}
213 Requires: %{name}-plugin-label = %{version}-%{release}
215 %description plugin-throbgress
216 This package contains the "throbgress" boot splash plugin for
217 Plymouth. It features a centered logo and animated spinner that spins
218 repeatedly while a progress bar advances at the bottom of the screen.
220 %description plugin-throbgress -l pl.UTF-8
221 Ten pakiet zawiera wtyczkę ekranu startowego "Throbgress" do Plymouth.
222 Cechuje się ona umieszczonym pośrodku logiem oraz animowanym kręcącym
223 się kółkiem, podczas gdy pasek postępu przesuwa się na dole ekranu.
225 %package system-theme
226 Summary: Plymouth default theme
227 Summary(pl.UTF-8): Domyślny motyw Plymouth
229 Requires: %{name}(system-theme) = %{version}-%{release}
230 Provides: %{name}-system-plugin = %{version}-%{release}
231 Obsoletes: plymouth-system-plugin < %{version}-%{release}
233 %description system-theme
234 This metapackage tracks the current distribution default theme.
236 %description system-theme -l pl.UTF-8
237 Ten metapakiet śledzi domyślny motyw dystrybucji.
239 %package theme-charge
240 Summary: Plymouth "Charge" theme
241 Summary(pl.UTF-8): Motyw Plymouth "Charge"
243 Requires: %{name}-plugin-two-step = %{version}-%{release}
244 Requires(post): %{name}-scripts = %{version}-%{release}
245 Provides: %{name}(system-theme) = %{version}-%{release}
247 %description theme-charge
248 This package contains the "charge" boot splash theme for Plymouth. It
249 features the shadowy hull of a Fedora logo charge up and and finally
250 burst into full form.
252 %description theme-charge -l pl.UTF-8
253 Ten pakiet zawiera motyw ekranu startowego Plymouth "Charge". Odznacza
254 się on cieniowaną łupiną loga Fedory, która rośnie, a ostatecznie
255 wybucha do pełnej postaci.
257 %package theme-fade-in
258 Summary: Plymouth "Fade-In" theme
259 Summary(pl.UTF-8): Motyw Plymouth "Fade in"
261 Requires(post): %{name}-scripts = %{version}-%{release}
262 Requires: %{name}-plugin-fade-throbber = %{version}-%{release}
263 Obsoletes: plymouth-plugin-fade-in
265 %description theme-fade-in
266 This package contains the "Fade-In" boot splash theme for Plymouth. It
267 features a centered logo that fades in and out while stars twinkle
268 around the logo during system boot up.
270 %description theme-fade-in -l pl.UTF-8
271 Ten pakiet zawiera motyw ekranu startowego Plymouth "Fade-In".
272 Odznacza się on umieszczonym pośrodku logiem, które w trakcie startu
273 systemu płynnie pojawia się i wygasa, podczas gdy wokół loga migoczą
276 %package theme-script
277 Summary: Plymouth "Script" theme
278 Summary(pl.UTF-8): Motyw Plymouth "Script"
280 Requires(post): %{name}-scripts = %{version}-%{release}
281 Requires: %{name}-plugin-script = %{version}-%{release}
283 %description theme-script
284 This package contains the "script" boot splash theme for Plymouth. It
285 it is a simple example theme the uses the "script" plugin.
287 %description theme-script -l pl.UTF-8
288 Ten pakiet zawiera motyw ekranu startowego Plymouth "Script". Jest to
289 prosty przykład wykorzystujący wtyczkę "script".
292 Summary: Plymouth "Solar" theme
293 Summary(pl.UTF-8): Motyw Plymouth "Solar"
295 Requires(post): %{name}-scripts = %{version}-%{release}
296 Requires: %{name}-plugin-space-flares = %{version}-%{release}
297 Obsoletes: plymouth-plugin-solar
299 %description theme-solar
300 This package contains the "Solar" boot splash theme for Plymouth. It
301 features a blue flamed sun with animated solar flares.
303 %description theme-solar -l pl.UTF-8
304 Ten pakiet zawiera motyw ekranu startowego Plymouth "Solar". Odznacza
305 się on słońcem w niebieskich płomieniach z animowanymi promieniami
308 %package theme-spinfinity
309 Summary: Plymouth "Spinfinity" theme
310 Summary(pl.UTF-8): Motyw Plymouth "Spinfinity"
312 Requires(post): %{name}-scripts = %{version}-%{release}
313 Requires: %{name}-plugin-throbgress = %{version}-%{release}
314 Obsoletes: plymouth-plugin-spinfinity
316 %description theme-spinfinity
317 This package contains the "Spinfinity" boot splash theme for Plymouth.
318 It features a centered logo and animated spinner that spins in the
319 shape of an infinity sign.
321 %description theme-spinfinity -l pl.UTF-8
322 Ten pakiet zawiera motyw ekranu startowego Plymouth "Spinfinity".
323 Odznacza się on umieszczonym pośrodku logiem i animowanym kółkiem
324 kręcącym się po kształcie znaku nieskończoności.
326 %package theme-spinner
327 Summary: Plymouth "Spinner" theme
328 Summary(pl.UTF-8): Motyw Plymouth "Spinner"
330 Requires(post): %{name}-scripts = %{version}-%{release}
331 Requires: %{name}-plugin-two-step = %{version}-%{release}
333 %description theme-spinner
334 This package contains the "spinner" boot splash theme for Plymouth. It
335 features a small spinner on a dark background.
337 %description theme-spinner -l pl.UTF-8
338 Ten pakiet zawiera motyw ekranu startowego Plymouth "Spinner".
339 Odznacza się on małym kółkiem kręcącym się na ciemnym tle.
346 # Change the default theme
347 sed -i -e 's/fade-in/charge/g' src/plymouthd.defaults
351 %{__enable_disable drm_intel libdrm_intel} \
352 %{__enable_disable drm_radeon libdrm_radeon} \
353 %{__enable_disable drm_nouveau libdrm_nouveau} \
354 %{__enable_disable kms libkms} \
355 --disable-silent-rules \
358 --disable-gdm-transition \
359 --enable-systemd-integration \
361 --without-rhgb-compat-link \
362 --with-background-start-color-stop=0x009431 \
363 --with-background-end-color-stop=0x006300 \
364 --with-background-color=0x00c663 \
365 --with-logo=%{_pixmapsdir}/plymouth-logo.png \
366 --with-release-file=/etc/os-release \
367 --with-system-root-install
372 rm -rf $RPM_BUILD_ROOT
373 install -d $RPM_BUILD_ROOT{%{_bindir},%{_pixmapsdir},%{systemdtmpfilesdir}}
375 DESTDIR=$RPM_BUILD_ROOT
377 install -d $RPM_BUILD_ROOT%{_localstatedir}/lib/plymouth
378 cp -p %{SOURCE4} $RPM_BUILD_ROOT%{_datadir}/plymouth/default-boot-duration
379 > $RPM_BUILD_ROOT%{_localstatedir}/lib/plymouth/boot-duration
381 # FC: Add charge, our new default
382 install -d $RPM_BUILD_ROOT%{_datadir}/plymouth/themes/charge
383 cp %{SOURCE3} $RPM_BUILD_ROOT%{_datadir}/plymouth/themes/charge
384 cp $RPM_BUILD_ROOT%{_datadir}/plymouth/themes/glow/{box,bullet,entry,lock}.png $RPM_BUILD_ROOT%{_datadir}/plymouth/themes/charge
386 # FC: Drop glow, it's not very Fedora-y
387 %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/plymouth/themes/glow
389 # FC: Override plymouth-update-initrd to work dracut or mkinitrd
390 cp -p %{SOURCE6} $RPM_BUILD_ROOT%{_libdir}/plymouth/plymouth-update-initrd
392 # FC: Add compat script for upgrades
393 install -p %{SOURCE5} $RPM_BUILD_ROOT%{_sbindir}
395 %{__rm} $RPM_BUILD_ROOT{%{plymouth_libdir},%{_libdir}}/*.la \
396 $RPM_BUILD_ROOT%{_libdir}/plymouth/*.la \
397 $RPM_BUILD_ROOT%{_libdir}/plymouth/renderers/*.la
399 # Temporary symlink until rc.sysinit is fixed
400 ln -sf /bin/plymouth $RPM_BUILD_ROOT%{_bindir}/plymouth
402 install -d $RPM_BUILD_ROOT%{_localstatedir}/lib/plymouth
404 cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_pixmapsdir}/plymouth-logo.png
405 cp -p %{SOURCE2} $RPM_BUILD_ROOT%{systemdtmpfilesdir}/%{name}.conf
408 rm -rf $RPM_BUILD_ROOT
411 if [ $1 -eq 0 ]; then
412 rm -f %{_libdir}/plymouth/default.so
415 %post core-libs -p /sbin/ldconfig
416 %postun core-libs -p /sbin/ldconfig
417 %post graphics-libs -p /sbin/ldconfig
418 %postun graphics-libs -p /sbin/ldconfig
421 %defattr(644,root,root,755)
422 %doc AUTHORS README TODO
423 %attr(755,root,root) %{_bindir}/plymouth
424 %dir %{_sysconfdir}/plymouth
425 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/plymouth/plymouthd.conf
426 %{_mandir}/man8/plymouth.8*
427 %attr(755,root,root) %{plymouthdaemon_execdir}/plymouthd
428 %attr(755,root,root) %{plymouthclient_execdir}/plymouth
429 %attr(755,root,root) %{_libdir}/plymouth/details.so
430 %attr(755,root,root) %{_libdir}/plymouth/text.so
431 %attr(755,root,root) %{_libdir}/plymouth/renderers/drm.so
432 %attr(755,root,root) %{_libdir}/plymouth/renderers/frame-buffer.so
433 %dir %{_datadir}/plymouth
434 %dir %{_datadir}/plymouth/themes
435 %dir %{_datadir}/plymouth/themes/details
436 %dir %{_datadir}/plymouth/themes/text
437 %{_datadir}/plymouth/plymouthd.defaults
438 %{_datadir}/plymouth/default-boot-duration
439 %{_datadir}/plymouth/themes/details/details.plymouth
440 %{_datadir}/plymouth/themes/text/text.plymouth
441 %{_pixmapsdir}/plymouth-logo.png
442 %{systemdtmpfilesdir}/%{name}.conf
443 %dir %{_localstatedir}/lib/plymouth
444 %ghost %{_localstatedir}/lib/plymouth/boot-duration
445 %{_localstatedir}/run/plymouth
446 %{_localstatedir}/spool/plymouth
449 %defattr(644,root,root,755)
450 %attr(755,root,root) %{plymouth_libdir}/libply.so.*.*.*
451 %attr(755,root,root) %ghost %{plymouth_libdir}/libply.so.2
452 %attr(755,root,root) %{plymouth_libdir}/libply-splash-core.so.*.*.*
453 %attr(755,root,root) %ghost %{plymouth_libdir}/libply-splash-core.so.2
454 %attr(755,root,root) %{_libdir}/libply-boot-client.so.*.*.*
455 %attr(755,root,root) %ghost %{_libdir}/libply-boot-client.so.2
456 %dir %{_libdir}/plymouth
457 %dir %{_libdir}/plymouth/renderers
460 %defattr(644,root,root,755)
461 %attr(755,root,root) %{_libdir}/libply-splash-graphics.so.*.*.*
462 %attr(755,root,root) %ghost %{_libdir}/libply-splash-graphics.so.2
463 %attr(755,root,root) %{_libdir}/plymouth/renderers/x11.so
466 %defattr(644,root,root,755)
467 %attr(755,root,root) %{plymouth_libdir}/libply.so
468 %attr(755,root,root) %{plymouth_libdir}/libply-splash-core.so
469 %attr(755,root,root) %{_libdir}/libply-boot-client.so
470 %attr(755,root,root) %{_libdir}/libply-splash-graphics.so
471 %{_includedir}/plymouth-1
472 %{_pkgconfigdir}/ply-boot-client.pc
473 %{_pkgconfigdir}/ply-splash-core.pc
474 %{_pkgconfigdir}/ply-splash-graphics.pc
477 %defattr(644,root,root,755)
478 %attr(755,root,root) %{_sbindir}/plymouth-set-default-plugin
479 %attr(755,root,root) %{_sbindir}/plymouth-set-default-theme
480 %attr(755,root,root) %{_libdir}/plymouth/plymouth-generate-initrd
481 %attr(755,root,root) %{_libdir}/plymouth/plymouth-populate-initrd
482 %attr(755,root,root) %{_libdir}/plymouth/plymouth-update-initrd
484 %files plugin-fade-throbber
485 %defattr(644,root,root,755)
486 %attr(755,root,root) %{_libdir}/plymouth/fade-throbber.so
489 %defattr(644,root,root,755)
490 %attr(755,root,root) %{_libdir}/plymouth/label.so
493 %defattr(644,root,root,755)
494 %attr(755,root,root) %{_libdir}/plymouth/script.so
496 %files plugin-space-flares
497 %defattr(644,root,root,755)
498 %attr(755,root,root) %{_libdir}/plymouth/space-flares.so
500 %files plugin-throbgress
501 %defattr(644,root,root,755)
502 %attr(755,root,root) %{_libdir}/plymouth/throbgress.so
504 %files plugin-two-step
505 %defattr(644,root,root,755)
506 %attr(755,root,root) %{_libdir}/plymouth/two-step.so
509 %defattr(644,root,root,755)
512 %defattr(644,root,root,755)
513 %dir %{_datadir}/plymouth/themes/charge
514 %{_datadir}/plymouth/themes/charge/*.png
515 %{_datadir}/plymouth/themes/charge/charge.plymouth
518 %defattr(644,root,root,755)
519 %dir %{_datadir}/plymouth/themes/fade-in
520 %{_datadir}/plymouth/themes/fade-in/bullet.png
521 %{_datadir}/plymouth/themes/fade-in/entry.png
522 %{_datadir}/plymouth/themes/fade-in/lock.png
523 %{_datadir}/plymouth/themes/fade-in/star.png
524 %{_datadir}/plymouth/themes/fade-in/fade-in.plymouth
527 %defattr(644,root,root,755)
528 %dir %{_datadir}/plymouth/themes/spinner
529 %{_datadir}/plymouth/themes/spinner/*.png
530 %{_datadir}/plymouth/themes/spinner/spinner.plymouth
532 %files theme-spinfinity
533 %defattr(644,root,root,755)
534 %dir %{_datadir}/plymouth/themes/spinfinity
535 %{_datadir}/plymouth/themes/spinfinity/box.png
536 %{_datadir}/plymouth/themes/spinfinity/bullet.png
537 %{_datadir}/plymouth/themes/spinfinity/entry.png
538 %{_datadir}/plymouth/themes/spinfinity/lock.png
539 %{_datadir}/plymouth/themes/spinfinity/throbber-[0-3][0-9].png
540 %{_datadir}/plymouth/themes/spinfinity/spinfinity.plymouth
543 %defattr(644,root,root,755)
544 %dir %{_datadir}/plymouth/themes/solar
545 %{_datadir}/plymouth/themes/solar/*.png
546 %{_datadir}/plymouth/themes/solar/solar.plymouth
549 %defattr(644,root,root,755)
550 %dir %{_datadir}/plymouth/themes/script
551 %{_datadir}/plymouth/themes/script/*.png
552 %{_datadir}/plymouth/themes/script/script.script
553 %{_datadir}/plymouth/themes/script/script.plymouth