]> git.pld-linux.org Git - packages/plymouth.git/blob - plymouth.spec
- add files to make it build, unfortunately i can't finish it as it still doesn't...
[packages/plymouth.git] / plymouth.spec
1 # TODO
2 # - revisit subpackages
3 # - fix: Requires: /bin/bash
4 # - integrate with geninitrd
5 # - pldize recent update
6 %define         snap    20120319
7 Summary:        Graphical Boot Animation and Logger
8 Summary(pl.UTF-8):      Graficzna animacja i logowanie startu systemu
9 Name:           plymouth
10 Version:        0.8.4
11 Release:        0.%{snap}.2
12 License:        GPL v2+
13 Group:          Base
14 #Source0:       http://www.freedesktop.org/software/plymouth/releases/%{name}-%{version}.%{snap}.tar.bz2
15 #Source0:       %{name}-%{version}.%{snap}.tar.bz2
16 Source0:        http://pkgs.fedoraproject.org/repo/pkgs/plymouth/%{name}-%{version}.tar.bz2/b083d040a3a92a78fac96049e31ea952/plymouth-%{version}.tar.bz2
17 # Source0-md5:  b083d040a3a92a78fac96049e31ea952
18 Source1:        %{name}-logo.png
19 # Source1-md5:  6b38a868585adfd3a96a4ad16973c1f8
20 Source2:        %{name}.tmpfiles
21 Source3:        charge.%{name}
22 Source4:        boot-duration
23 Source5:        %{name}-set-default-plugin
24 Source6:        %{name}-update-initrd
25 URL:            http://www.freedesktop.org/wiki/Software/Plymouth
26 #BuildRequires: autoconf >= 2.50
27 #BuildRequires: automake
28 BuildRequires:  cairo-devel
29 BuildRequires:  gtk+2-devel >= 2:2.12.0
30 BuildRequires:  libdrm-devel
31 BuildRequires:  libpng-devel >= 1.2.16
32 #BuildRequires: libtool >= 2:2.0
33 BuildRequires:  pango-devel >= 1:1.21.0
34 BuildRequires:  pkgconfig
35 Requires:       %{name}-graphics-libs = %{version}-%{release}
36 Requires(post): %{name}-scripts = %{version}-%{release}
37 Obsoletes:      plymouth-gdm-hooks
38 Obsoletes:      plymouth-utils
39 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
40
41 %define         plymouthdaemon_execdir  /sbin
42 %define         plymouthclient_execdir  /bin
43 %define         plymouth_libdir         /%{_lib}
44
45 %description
46 Plymouth provides an attractive graphical boot animation in place of
47 the text messages that normally get shown. Text messages are instead
48 redirected to a log file for viewing after boot.
49
50 %description -l pl.UTF-8
51 Plymouth zapewnia atrakcyjną animację w trakcie startu systemu zamiast
52 zwykle wyświetlanych komunikatów tekstowych. Komunikaty tekstowe
53 zamiast tego są przekierowywane do logu, który można obejrzeć po
54 uruchomieniu systemu.
55
56 %package libs
57 Summary:        Plymouth libraries
58 Summary(pl.UTF-8):      Biblioteki Plymouth
59 Group:          Libraries
60
61 %description libs
62 This package contains the libply and libplybootsplash libraries used
63 by Plymouth.
64
65 %description libs -l pl.UTF-8
66 Ten pakiet zawiera biblioteki libply i libplybootsplash używane przez
67 Plymouth.
68
69 %package devel
70 Summary:        Header files for writing Plymouth splash plugins
71 Summary(pl.UTF-8):      Pliki nagłówkowe do tworzenia wtyczek graficznych Plymouth
72 Group:          Development/Libraries
73 Requires:       %{name}-graphics-libs = %{version}-%{release}
74
75 %description devel
76 This package contains the header files for libply and libplybootsplash
77 libraries needed to develop 3rd party splash plugins for Plymouth.
78
79 %description devel -l pl.UTF-8
80 Ten pakiet zawiera pliki nagłówkowe bibliotek libply i
81 libplybootsplash, potrzebne do tworzenia wtyczek graficznych Plymouth.
82
83 %package system-theme
84 Summary:        Plymouth default theme
85 Group:          Base
86 Requires:       %{name}(system-theme) = %{version}-%{release}
87 Provides:       %{name}-system-plugin = %{version}-%{release}
88 Obsoletes:      plymouth-system-plugin < %{version}-%{release}
89 Obsoletes:      rhgb < 1:10.0.0
90
91 %description system-theme
92 This metapackage tracks the current distribution default theme.
93
94 %package core-libs
95 Summary:        Plymouth core libraries
96 Group:          Development/Libraries
97 Conflicts:      %{name}-libs < 0.8.4-0.20120319.1
98
99 %description core-libs
100 This package contains the libply and libply-splash-core libraries used
101 by Plymouth.
102
103 %package graphics-libs
104 Summary:        Plymouth graphics libraries
105 Group:          Development/Libraries
106 Requires:       %{name}-core-libs = %{version}-%{release}
107 Provides:       %{name}-graphics-libs = %{version}-%{release}
108 Obsoletes:      plymouth-libs < %{version}-%{release}
109 Conflicts:      %{name}-libs < 0.8.4-0.20120319.1
110
111 %description graphics-libs
112 This package contains the libply-splash-graphics library used by
113 graphical Plymouth splashes.
114
115 %package scripts
116 Summary:        Plymouth related scripts
117 Summary(pl.UTF-8):      Skrypty pomocnicze do Plymouth
118 Group:          Applications/System
119 Requires:       %{name} = %{version}-%{release}
120 Requires:       coreutils
121 Requires:       cpio
122 #Requires:      dracut
123 Requires:       findutils
124 Requires:       gzip
125
126 %description scripts
127 This package contains scripts that help integrate Plymouth with the
128 system.
129
130 %description scripts -l pl.UTF-8
131 Ten pakiet zawiera skrypty pomagające zintegrować Plymouth z systemem.
132
133 %package plugin-label
134 Summary:        Plymouth label plugin
135 Group:          Base
136 Requires:       %{name}-graphics-libs = %{version}-%{release}
137
138 %description plugin-label
139 This package contains the label control plugin for Plymouth. It
140 provides the ability to render text on graphical boot splashes using
141 pango and cairo.
142
143 %package plugin-fade-throbber
144 Summary:        Plymouth "Fade-Throbber" plugin
145 Group:          Base
146 Requires:       %{name}-graphics-libs = %{version}-%{release}
147
148 %description plugin-fade-throbber
149 This package contains the "Fade-In" boot splash plugin for Plymouth.
150 It features a centered image that fades in and out while other images
151 pulsate around during system boot up.
152
153 %package theme-fade-in
154 Summary:        Plymouth "Fade-In" theme
155 Group:          Base
156 Requires:       %{name}-plugin-fade-throbber = %{version}-%{release}
157 Requires(post): %{name}-scripts = %{version}-%{release}
158 Obsoletes:      plymouth-plugin-fade-in
159
160 %description theme-fade-in
161 This package contains the "Fade-In" boot splash theme for Plymouth. It
162 features a centered logo that fades in and out while stars twinkle
163 around the logo during system boot up.
164
165 %package plugin-throbgress
166 Summary:        Plymouth "Throbgress" plugin
167 Group:          Base
168 Requires:       %{name}-graphics-libs = %{version}-%{release}
169 Requires:       %{name}-plugin-label = %{version}-%{release}
170
171 %description plugin-throbgress
172 This package contains the "throbgress" boot splash plugin for
173 Plymouth. It features a centered logo and animated spinner that spins
174 repeatedly while a progress bar advances at the bottom of the screen.
175
176 %package theme-spinfinity
177 Summary:        Plymouth "Spinfinity" theme
178 Group:          Base
179 Requires:       %{name}-plugin-throbgress = %{version}-%{release}
180 Requires(post): %{name}-scripts = %{version}-%{release}
181 Obsoletes:      plymouth-plugin-spinfinity
182
183 %description theme-spinfinity
184 This package contains the "Spinfinity" boot splash theme for Plymouth.
185 It features a centered logo and animated spinner that spins in the
186 shape of an infinity sign.
187
188 %package plugin-space-flares
189 Summary:        Plymouth "space-flares" plugin
190 Group:          Base
191 Requires:       %{name}-graphics-libs = %{version}-%{release}
192 Requires:       %{name}-plugin-label = %{version}-%{release}
193
194 %description plugin-space-flares
195 This package contains the "space-flares" boot splash plugin for
196 Plymouth. It features a corner image with animated flares.
197
198 %package theme-solar
199 Summary:        Plymouth "Solar" theme
200 Group:          Base
201 Requires:       %{name}-plugin-space-flares = %{version}-%{release}
202 Requires(post): %{name}-scripts = %{version}-%{release}
203 Obsoletes:      plymouth-plugin-solar
204
205 %description theme-solar
206 This package contains the "Solar" boot splash theme for Plymouth. It
207 features a blue flamed sun with animated solar flares.
208
209 %package plugin-two-step
210 Summary:        Plymouth "two-step" plugin
211 Group:          Base
212 Requires:       %{name}-graphics-libs = %{version}-%{release}
213 Requires:       %{name}-plugin-label = %{version}-%{release}
214
215 %description plugin-two-step
216 This package contains the "two-step" boot splash plugin for Plymouth.
217 It features a two phased boot process that starts with a progressing
218 animation synced to boot time and finishes with a short, fast one-shot
219 animation.
220
221 %package theme-charge
222 Summary:        Plymouth "Charge" plugin
223 Group:          Base
224 Requires:       %{name}-plugin-two-step = %{version}-%{release}
225 Requires(post): %{name}-scripts = %{version}-%{release}
226 Provides:       %{name}(system-theme) = %{version}-%{release}
227
228 %description theme-charge
229 This package contains the "charge" boot splash theme for Plymouth. It
230 features the shadowy hull of a Fedora logo charge up and and finally
231 burst into full form.
232
233 %package plugin-script
234 Summary:        Plymouth "script" plugin
235 Group:          Base
236 Requires:       %{name}-graphics-libs = %{version}-%{release}
237
238 %description plugin-script
239 This package contains the "script" boot splash plugin for Plymouth. It
240 features an extensible, scriptable boot splash language that
241 simplifies the process of designing custom boot splash themes.
242
243 %package theme-script
244 Summary:        Plymouth "Script" plugin
245 Group:          Base
246 Requires:       %{name}-plugin-script = %{version}-%{release}
247 Requires(post): %{_sbindir}/plymouth-set-default-theme
248
249 %description theme-script
250 This package contains the "script" boot splash theme for Plymouth. It
251 it is a simple example theme the uses the "script" plugin.
252
253 %package theme-spinner
254 Summary:        Plymouth "Spinner" theme
255 Group:          Base
256 Requires:       %{name}-plugin-two-step = %{version}-%{release}
257 Requires(post): %{name}-scripts = %{version}-%{release}
258
259 %description theme-spinner
260 This package contains the "spinner" boot splash theme for Plymouth. It
261 features a small spinner on a dark background.
262
263 %prep
264 %setup -q
265
266 # Change the default theme
267 sed -i -e 's/fade-in/charge/g' src/plymouthd.defaults
268
269 %build
270 %configure \
271         --disable-silent-rules \
272         --disable-static \
273         --disable-tests \
274         --enable-gdm-transition \
275         --enable-systemd-integration \
276         --enable-tracing \
277         --with-background-start-color-stop=0x003194 \
278         --with-background-end-color-stop=0x000063 \
279         --with-background-color=0x0063c6 \
280         --with-logo=%{_pixmapsdir}/plymouth-logo.png \
281         --with-system-root-install
282
283 %{__make}
284
285 %install
286 rm -rf $RPM_BUILD_ROOT
287 install -d $RPM_BUILD_ROOT{%{_pixmapsdir},%{systemdtmpfilesdir}}
288 %{__make} install \
289         DESTDIR=$RPM_BUILD_ROOT
290
291 install -d $RPM_BUILD_ROOT%{_localstatedir}/lib/plymouth
292 cp -p %{SOURCE4} $RPM_BUILD_ROOT%{_datadir}/plymouth/default-boot-duration
293 > $RPM_BUILD_ROOT%{_localstatedir}/lib/plymouth/boot-duration
294
295 # FC: Add charge, our new default
296 install -d $RPM_BUILD_ROOT%{_datadir}/plymouth/themes/charge
297 cp %{SOURCE3} $RPM_BUILD_ROOT%{_datadir}/plymouth/themes/charge
298 cp $RPM_BUILD_ROOT%{_datadir}/plymouth/themes/glow/{box,bullet,entry,lock}.png $RPM_BUILD_ROOT%{_datadir}/plymouth/themes/charge
299
300 # FC: Glow isn't quite ready for primetime
301 rm -rf $RPM_BUILD_ROOT%{_datadir}/plymouth/glow
302 rm -f $RPM_BUILD_ROOT%{_libdir}/plymouth/glow.so
303 # FC: Drop glow, it's not very Fedora-y
304 rm -rf $RPM_BUILD_ROOT%{_datadir}/plymouth/themes/glow
305
306 # FC: Override plymouth-update-initrd to work dracut or mkinitrd
307 cp -p %{SOURCE6} $RPM_BUILD_ROOT%{_libdir}/plymouth/plymouth-update-initrd
308
309 # FC: Add compat script for upgrades
310 install -p %{SOURCE5} $RPM_BUILD_ROOT%{_sbindir}
311
312 %{__rm} $RPM_BUILD_ROOT{%{plymouth_libdir},%{_libdir}}/*.la \
313         $RPM_BUILD_ROOT%{_libdir}/plymouth/*.la \
314         $RPM_BUILD_ROOT%{_libdir}/plymouth/renderers/*.la
315
316 # Temporary symlink until rc.sysinit is fixed
317 ln -sf /bin/plymouth $RPM_BUILD_ROOT%{_bindir}/plymouth
318
319 install -d $RPM_BUILD_ROOT%{_localstatedir}/lib/plymouth
320
321 cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_pixmapsdir}/plymouth-logo.png
322 cp -p %{SOURCE2} $RPM_BUILD_ROOT%{systemdtmpfilesdir}/%{name}.conf
323
324 %clean
325 rm -rf $RPM_BUILD_ROOT
326
327 %postun
328 if [ $1 -eq 0 ]; then
329         rm -f %{_libdir}/plymouth/default.so
330 fi
331
332 %post   core-libs -p /sbin/ldconfig
333 %postun core-libs -p /sbin/ldconfig
334 %post   graphics-libs -p /sbin/ldconfig
335 %postun graphics-libs -p /sbin/ldconfig
336
337 %files
338 %defattr(644,root,root,755)
339 %doc AUTHORS README TODO
340 %attr(755,root,root) %{_bindir}/rhgb-client
341 %dir %{_sysconfdir}/plymouth
342 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/plymouth/plymouthd.conf
343 %{_mandir}/man8/plymouth.8*
344 %dir %{_datadir}/plymouth
345 %dir %{_datadir}/plymouth/themes
346 %dir %{_datadir}/plymouth/themes/details
347 %dir %{_datadir}/plymouth/themes/text
348 %{_datadir}/plymouth/plymouthd.defaults
349 %{_datadir}/plymouth/default-boot-duration
350 %dir %{_libdir}/plymouth
351 %dir %{_libdir}/plymouth/renderers
352 %dir %{_localstatedir}/lib/plymouth
353 %attr(755,root,root) %{plymouthdaemon_execdir}/plymouthd
354 %attr(755,root,root) %{plymouthclient_execdir}/plymouth
355 %attr(755,root,root) %{_bindir}/plymouth
356 %attr(755,root,root) %{_libdir}/plymouth/details.so
357 %attr(755,root,root) %{_libdir}/plymouth/text.so
358 %attr(755,root,root) %{_libdir}/plymouth/renderers/drm.so
359 %attr(755,root,root) %{_libdir}/plymouth/renderers/frame-buffer.so
360 %{_datadir}/plymouth/themes/details/details.plymouth
361 %{_datadir}/plymouth/themes/text/text.plymouth
362 %{systemdtmpfilesdir}/%{name}.conf
363 %{_localstatedir}/run/plymouth
364 %{_localstatedir}/spool/plymouth
365 %{_pixmapsdir}/plymouth-logo.png
366 %ghost %{_localstatedir}/lib/plymouth/boot-duration
367
368 %files core-libs
369 %defattr(644,root,root,755)
370 %attr(755,root,root) %{plymouth_libdir}/libply.so.*.*.*
371 %attr(755,root,root) %ghost %{plymouth_libdir}/libply.so.2
372 %attr(755,root,root) %{plymouth_libdir}/libply-splash-core.so.*.*.*
373 %attr(755,root,root) %ghost %{plymouth_libdir}/libply-splash-core.so.2
374 %attr(755,root,root) %{_libdir}/libply-boot-client.so.*.*.*
375 %attr(755,root,root) %ghost %{_libdir}/libply-boot-client.so.2
376 %dir %{_libdir}/plymouth
377
378 %files graphics-libs
379 %defattr(644,root,root,755)
380 %attr(755,root,root) %{_libdir}/libply-splash-graphics.so.*.*.*
381 %attr(755,root,root) %ghost %{_libdir}/libply-splash-graphics.so.2
382
383 %attr(755,root,root) %{_libdir}/plymouth/renderers/x11.so
384
385 %files devel
386 %defattr(644,root,root,755)
387 %attr(755,root,root) %{plymouth_libdir}/libply.so
388 %attr(755,root,root) %{plymouth_libdir}/libply-splash-core.so
389 %attr(755,root,root) %{_libdir}/libply-boot-client.so
390 %attr(755,root,root) %{_libdir}/libply-splash-graphics.so
391 %{_includedir}/plymouth-1
392 %{_pkgconfigdir}/ply-boot-client.pc
393 %{_pkgconfigdir}/ply-splash-core.pc
394 %{_pkgconfigdir}/ply-splash-graphics.pc
395
396 %files scripts
397 %defattr(644,root,root,755)
398 %attr(755,root,root) %{_sbindir}/plymouth-set-default-plugin
399 %attr(755,root,root) %{_sbindir}/plymouth-set-default-theme
400 %attr(755,root,root) %{_libdir}/plymouth/plymouth-generate-initrd
401 %attr(755,root,root) %{_libdir}/plymouth/plymouth-populate-initrd
402 %attr(755,root,root) %{_libdir}/plymouth/plymouth-update-initrd
403
404 %files plugin-label
405 %defattr(644,root,root,755)
406 %attr(755,root,root) %{_libdir}/plymouth/label.so
407
408 %files plugin-fade-throbber
409 %defattr(644,root,root,755)
410 %attr(755,root,root) %{_libdir}/plymouth/fade-throbber.so
411
412 %files theme-fade-in
413 %defattr(644,root,root,755)
414 %dir %{_datadir}/plymouth/themes/fade-in
415 %{_datadir}/plymouth/themes/fade-in/bullet.png
416 %{_datadir}/plymouth/themes/fade-in/entry.png
417 %{_datadir}/plymouth/themes/fade-in/lock.png
418 %{_datadir}/plymouth/themes/fade-in/star.png
419 %{_datadir}/plymouth/themes/fade-in/fade-in.plymouth
420
421 %files theme-spinner
422 %defattr(644,root,root,755)
423 %dir %{_datadir}/plymouth/themes/spinner
424 %{_datadir}/plymouth/themes/spinner/*.png
425 %{_datadir}/plymouth/themes/spinner/spinner.plymouth
426
427 %files plugin-throbgress
428 %defattr(644,root,root,755)
429 %attr(755,root,root) %{_libdir}/plymouth/throbgress.so
430
431 %files theme-spinfinity
432 %defattr(644,root,root,755)
433 %dir %{_datadir}/plymouth/themes/spinfinity
434 %{_datadir}/plymouth/themes/spinfinity/box.png
435 %{_datadir}/plymouth/themes/spinfinity/bullet.png
436 %{_datadir}/plymouth/themes/spinfinity/entry.png
437 %{_datadir}/plymouth/themes/spinfinity/lock.png
438 %{_datadir}/plymouth/themes/spinfinity/throbber-[0-3][0-9].png
439 %{_datadir}/plymouth/themes/spinfinity/spinfinity.plymouth
440
441 %files plugin-space-flares
442 %defattr(644,root,root,755)
443 %attr(755,root,root) %{_libdir}/plymouth/space-flares.so
444
445 %files theme-solar
446 %defattr(644,root,root,755)
447 %dir %{_datadir}/plymouth/themes/solar
448 %{_datadir}/plymouth/themes/solar/*.png
449 %{_datadir}/plymouth/themes/solar/solar.plymouth
450
451 %files plugin-two-step
452 %defattr(644,root,root,755)
453 %attr(755,root,root) %{_libdir}/plymouth/two-step.so
454
455 %files theme-charge
456 %defattr(644,root,root,755)
457 %dir %{_datadir}/plymouth/themes/charge
458 %{_datadir}/plymouth/themes/charge/*.png
459 %{_datadir}/plymouth/themes/charge/charge.plymouth
460
461 %files plugin-script
462 %defattr(644,root,root,755)
463 %attr(755,root,root) %{_libdir}/plymouth/script.so
464
465 %files theme-script
466 %defattr(644,root,root,755)
467 %dir %{_datadir}/plymouth/themes/script
468 %{_datadir}/plymouth/themes/script/*.png
469 %{_datadir}/plymouth/themes/script/script.script
470 %{_datadir}/plymouth/themes/script/script.plymouth
471
472 %files system-theme
473 %defattr(644,root,root,755)
This page took 0.066683 seconds and 4 git commands to generate.