]> git.pld-linux.org Git - packages/plymouth.git/blob - plymouth.spec
- 0.8.4 final
[packages/plymouth.git] / plymouth.spec
1 # TODO
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
8 Name:           plymouth
9 Version:        0.8.4
10 Release:        1
11 License:        GPL v2+
12 Group:          Base
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)
38
39 %define         plymouthdaemon_execdir  /sbin
40 %define         plymouthclient_execdir  /bin
41 %define         plymouth_libdir         /%{_lib}
42
43 %description
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.
47
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
52 uruchomieniu systemu.
53
54 %package libs
55 Summary:        Plymouth libraries
56 Summary(pl.UTF-8):      Biblioteki Plymouth
57 Group:          Libraries
58
59 %description libs
60 This package contains the libply and libplybootsplash libraries used
61 by Plymouth.
62
63 %description libs -l pl.UTF-8
64 Ten pakiet zawiera biblioteki libply i libplybootsplash używane przez
65 Plymouth.
66
67 %package devel
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}
72
73 %description devel
74 This package contains the header files for libply and libplybootsplash
75 libraries needed to develop 3rd party splash plugins for Plymouth.
76
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.
80
81 %package system-theme
82 Summary:        Plymouth default theme
83 Group:          Base
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
88
89 %description system-theme
90 This metapackage tracks the current distribution default theme.
91
92 %package core-libs
93 Summary:        Plymouth core libraries
94 Group:          Development/Libraries
95 Conflicts:      %{name}-libs < 0.8.4-0.20120319.1
96
97 %description core-libs
98 This package contains the libply and libply-splash-core libraries used
99 by Plymouth.
100
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
108
109 %description graphics-libs
110 This package contains the libply-splash-graphics library used by
111 graphical Plymouth splashes.
112
113 %package scripts
114 Summary:        Plymouth related scripts
115 Summary(pl.UTF-8):      Skrypty pomocnicze do Plymouth
116 Group:          Applications/System
117 Requires:       %{name} = %{version}-%{release}
118 Requires:       coreutils
119 Requires:       cpio
120 #Requires:      dracut
121 Requires:       findutils
122 Requires:       gzip
123
124 %description scripts
125 This package contains scripts that help integrate Plymouth with the
126 system.
127
128 %description scripts -l pl.UTF-8
129 Ten pakiet zawiera skrypty pomagające zintegrować Plymouth z systemem.
130
131 %package plugin-label
132 Summary:        Plymouth label plugin
133 Group:          Base
134 Requires:       %{name}-graphics-libs = %{version}-%{release}
135
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
139 pango and cairo.
140
141 %package plugin-fade-throbber
142 Summary:        Plymouth "Fade-Throbber" plugin
143 Group:          Base
144 Requires:       %{name}-graphics-libs = %{version}-%{release}
145
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.
150
151 %package theme-fade-in
152 Summary:        Plymouth "Fade-In" theme
153 Group:          Base
154 Requires:       %{name}-plugin-fade-throbber = %{version}-%{release}
155 Requires(post): %{name}-scripts = %{version}-%{release}
156 Obsoletes:      plymouth-plugin-fade-in
157
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.
162
163 %package plugin-throbgress
164 Summary:        Plymouth "Throbgress" plugin
165 Group:          Base
166 Requires:       %{name}-graphics-libs = %{version}-%{release}
167 Requires:       %{name}-plugin-label = %{version}-%{release}
168
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.
173
174 %package theme-spinfinity
175 Summary:        Plymouth "Spinfinity" theme
176 Group:          Base
177 Requires:       %{name}-plugin-throbgress = %{version}-%{release}
178 Requires(post): %{name}-scripts = %{version}-%{release}
179 Obsoletes:      plymouth-plugin-spinfinity
180
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.
185
186 %package plugin-space-flares
187 Summary:        Plymouth "space-flares" plugin
188 Group:          Base
189 Requires:       %{name}-graphics-libs = %{version}-%{release}
190 Requires:       %{name}-plugin-label = %{version}-%{release}
191
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.
195
196 %package theme-solar
197 Summary:        Plymouth "Solar" theme
198 Group:          Base
199 Requires:       %{name}-plugin-space-flares = %{version}-%{release}
200 Requires(post): %{name}-scripts = %{version}-%{release}
201 Obsoletes:      plymouth-plugin-solar
202
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.
206
207 %package plugin-two-step
208 Summary:        Plymouth "two-step" plugin
209 Group:          Base
210 Requires:       %{name}-graphics-libs = %{version}-%{release}
211 Requires:       %{name}-plugin-label = %{version}-%{release}
212
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
217 animation.
218
219 %package theme-charge
220 Summary:        Plymouth "Charge" plugin
221 Group:          Base
222 Requires:       %{name}-plugin-two-step = %{version}-%{release}
223 Requires(post): %{name}-scripts = %{version}-%{release}
224 Provides:       %{name}(system-theme) = %{version}-%{release}
225
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.
230
231 %package plugin-script
232 Summary:        Plymouth "script" plugin
233 Group:          Base
234 Requires:       %{name}-graphics-libs = %{version}-%{release}
235
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.
240
241 %package theme-script
242 Summary:        Plymouth "Script" plugin
243 Group:          Base
244 Requires:       %{name}-plugin-script = %{version}-%{release}
245 Requires(post): %{_sbindir}/plymouth-set-default-theme
246
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.
250
251 %package theme-spinner
252 Summary:        Plymouth "Spinner" theme
253 Group:          Base
254 Requires:       %{name}-plugin-two-step = %{version}-%{release}
255 Requires(post): %{name}-scripts = %{version}-%{release}
256
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.
260
261 %prep
262 %setup -q
263 %patch0 -p1
264
265 # Change the default theme
266 sed -i -e 's/fade-in/charge/g' src/plymouthd.defaults
267
268 %build
269 %configure \
270         --disable-silent-rules \
271         --disable-static \
272         --disable-tests \
273         --enable-gdm-transition \
274         --enable-systemd-integration \
275         --enable-tracing \
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
281
282 %{__make}
283
284 %install
285 rm -rf $RPM_BUILD_ROOT
286 install -d $RPM_BUILD_ROOT{%{_pixmapsdir},%{systemdtmpfilesdir}}
287 %{__make} install \
288         DESTDIR=$RPM_BUILD_ROOT
289
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
293
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
298
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
304
305 # FC: Override plymouth-update-initrd to work dracut or mkinitrd
306 cp -p %{SOURCE6} $RPM_BUILD_ROOT%{_libdir}/plymouth/plymouth-update-initrd
307
308 # FC: Add compat script for upgrades
309 install -p %{SOURCE5} $RPM_BUILD_ROOT%{_sbindir}
310
311 %{__rm} $RPM_BUILD_ROOT{%{plymouth_libdir},%{_libdir}}/*.la \
312         $RPM_BUILD_ROOT%{_libdir}/plymouth/*.la \
313         $RPM_BUILD_ROOT%{_libdir}/plymouth/renderers/*.la
314
315 # Temporary symlink until rc.sysinit is fixed
316 ln -sf /bin/plymouth $RPM_BUILD_ROOT%{_bindir}/plymouth
317
318 install -d $RPM_BUILD_ROOT%{_localstatedir}/lib/plymouth
319
320 cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_pixmapsdir}/plymouth-logo.png
321 cp -p %{SOURCE2} $RPM_BUILD_ROOT%{systemdtmpfilesdir}/%{name}.conf
322
323 %clean
324 rm -rf $RPM_BUILD_ROOT
325
326 %postun
327 if [ $1 -eq 0 ]; then
328         rm -f %{_libdir}/plymouth/default.so
329 fi
330
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
335
336 %files
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
366
367 %files core-libs
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
376
377 %files graphics-libs
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
381
382 %attr(755,root,root) %{_libdir}/plymouth/renderers/x11.so
383
384 %files devel
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
394
395 %files scripts
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
402
403 %files plugin-label
404 %defattr(644,root,root,755)
405 %attr(755,root,root) %{_libdir}/plymouth/label.so
406
407 %files plugin-fade-throbber
408 %defattr(644,root,root,755)
409 %attr(755,root,root) %{_libdir}/plymouth/fade-throbber.so
410
411 %files theme-fade-in
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
419
420 %files theme-spinner
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
425
426 %files plugin-throbgress
427 %defattr(644,root,root,755)
428 %attr(755,root,root) %{_libdir}/plymouth/throbgress.so
429
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
439
440 %files plugin-space-flares
441 %defattr(644,root,root,755)
442 %attr(755,root,root) %{_libdir}/plymouth/space-flares.so
443
444 %files theme-solar
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
449
450 %files plugin-two-step
451 %defattr(644,root,root,755)
452 %attr(755,root,root) %{_libdir}/plymouth/two-step.so
453
454 %files theme-charge
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
459
460 %files plugin-script
461 %defattr(644,root,root,755)
462 %attr(755,root,root) %{_libdir}/plymouth/script.so
463
464 %files theme-script
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
470
471 %files system-theme
472 %defattr(644,root,root,755)
This page took 0.063321 seconds and 4 git commands to generate.