/[packages]/cauldron/plymouth/current/SPECS/plymouth.spec
ViewVC logotype

Contents of /cauldron/plymouth/current/SPECS/plymouth.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 273158 - (show annotations) (download)
Sat Jul 21 17:42:31 2012 UTC (11 years, 9 months ago) by colin
File size: 15829 byte(s)
Update for usrmove
1 %define plymouthdaemon_execdir /sbin
2 %define plymouthclient_execdir /bin
3 %define plymouth_libdir /%{_lib}
4
5 %define _libexecdir %{_prefix}/libexec
6
7 %define lib_major 2
8 %define lib_name %mklibname %{name} %{lib_major}
9 %define lib_name_devel %mklibname %{name} -d
10
11 %bcond_with uclibc
12
13 Summary: Graphical Boot Animation and Logger
14 Name: plymouth
15 Version: 0.8.6.1
16 Release: %mkrel 2
17 License: GPLv2+
18 Group: System/Kernel and hardware
19 Source0: http://freedesktop.org/software/plymouth/releases/%{name}-%{version}.tar.bz2
20 Source1: boot-duration
21 Source2: charge.plymouth
22
23 URL: http://freedesktop.org/software/plymouth/releases
24
25 Requires(pre): filesystem >= 2.1.9-18
26 Requires(post): plymouth-scripts = %{version}-%{release}
27 Requires: initscripts >= 8.83
28 Requires: desktop-common-data
29 BuildRequires: gtk2-devel
30 BuildRequires: libdrm-devel
31 %if %{with uclibc}
32 BuildRequires: uClibc-devel
33 BuildRequires: libpng-static-devel
34 %endif
35 Obsoletes: splashy
36 Provides: splashy
37 Conflicts: systemd-units < 186
38
39 %description
40 Plymouth provides an attractive graphical boot animation in
41 place of the text messages that normally get shown. Text
42 messages are instead redirected to a log file for viewing
43 after boot.
44
45 %package system-theme
46 Group: System/Kernel and hardware
47 Summary: Plymouth default theme
48 Requires: plymouth(system-theme)
49 Requires: plymouth = %{version}-%{release}
50
51 %description system-theme
52 This metapackage tracks the current distribution default theme.
53
54 %package -n %{lib_name}
55 Summary: Plymouth libraries
56 Group: System/Libraries
57 Obsoletes: %{mklibname %{name} 0} < 0.8.0
58
59 %description -n %{lib_name}
60 This package contains the libply and libplybootsplash libraries
61 used by Plymouth.
62
63 %package -n %{lib_name_devel}
64 Group: System/Kernel and hardware
65 Summary: Libraries and headers for writing Plymouth splash plugins
66 Group: Development/C
67 Provides: %{name}-devel = %{version}-%{release}
68 Provides: lib%{name}-devel = %{version}-%{release}
69 Requires: %{lib_name} = %{version}-%{release}
70
71 %description -n %{lib_name_devel}
72 This package contains the libply and libplybootsplash libraries
73 and headers needed to develop 3rd party splash plugins for Plymouth.
74
75 %package utils
76 Group: System/Kernel and hardware
77 Summary: Plymouth related utilities
78 Requires: %{name} = %{version}-%{release}
79
80 %description utils
81 This package contains utilities that integrate with Plymouth
82 including a boot log viewing application.
83
84 %package scripts
85 Group: System/Kernel and hardware
86 Summary: Plymouth related scripts
87 Requires: mkinitrd >= 6.0.92-6mdv
88 Requires: plymouth = %{version}-%{release}
89
90 %description scripts
91 This package contains scripts that help integrate Plymouth with
92 the system.
93
94 %package plugin-label
95 Group: System/Kernel and hardware
96 Summary: Plymouth label plugin
97 Requires: %{lib_name} = %{version}-%{release}
98
99 %description plugin-label
100 This package contains the label control plugin for
101 Plymouth. It provides the ability to render text on
102 graphical boot splashes using pango and cairo.
103
104 %package plugin-fade-throbber
105 Group: System/Kernel and hardware
106 Summary: Plymouth "Fade-Throbber" plugin
107 Requires: %{lib_name} = %{version}-%{release}
108
109 %description plugin-fade-throbber
110 This package contains the "Fade-In" boot splash plugin for
111 Plymouth. It features a centered image that fades in and out
112 while other images pulsate around during system boot up.
113
114 %package plugin-script
115 Group: System/Kernel and hardware
116 Summary: Plymouth "Script" plugin
117 Requires: %{lib_name} = %{version}-%{release}
118 Requires: plymouth-plugin-label = %{version}-%{release}
119
120 %description plugin-script
121 This package contains the "Script" plugin for Plymouth.
122
123 %package theme-script
124 Group: System/Kernel and hardware
125 Summary: Plymouth "Script" theme
126 Requires: %{name}-plugin-script = %{version}-%{release}
127 Requires(post): plymouth-scripts = %{version}-%{release}
128
129 %description theme-script
130 This package contains the "Script" boot splash theme for
131 Plymouth.
132
133 %package theme-fade-in
134 Group: System/Kernel and hardware
135 Summary: Plymouth "Fade-In" theme
136 Requires: %{name}-plugin-fade-throbber = %{version}-%{release}
137 Requires(post): plymouth-scripts = %{version}-%{release}
138
139 %description theme-fade-in
140 This package contains the "Fade-In" boot splash theme for
141 Plymouth. It features a centered logo that fades in and out
142 while stars twinkle around the logo during system boot up.
143
144 %package plugin-throbgress
145 Group: System/Kernel and hardware
146 Summary: Plymouth "Throbgress" plugin
147 Requires: %{lib_name} = %{version}-%{release}
148 Requires: plymouth-plugin-label = %{version}-%{release}
149
150 %description plugin-throbgress
151 This package contains the "throbgress" boot splash plugin for
152 Plymouth. It features a centered logo and animated spinner that
153 spins repeatedly while a progress bar advances at the bottom of
154 the screen.
155
156 %package theme-spinfinity
157 Group: System/Kernel and hardware
158 Summary: Plymouth "Spinfinity" theme
159 Requires: %{name}-plugin-throbgress = %{version}-%{release}
160 Requires(post): plymouth-scripts = %{version}-%{release}
161
162 %description theme-spinfinity
163 This package contains the "Spinfinity" boot splash theme for
164 Plymouth. It features a centered logo and animated spinner that
165 spins in the shape of an infinity sign.
166
167 %package theme-spinner
168 Group: System/Kernel and hardware
169 Summary: Plymouth "Spinner" theme
170 Requires: %{name}-plugin-two-step = %{version}-%{release}
171 Requires(post): plymouth-scripts = %{version}-%{release}
172
173 %description theme-spinner
174 This package contains the "Spinner" boot splash theme for
175 Plymouth.
176
177 %package plugin-space-flares
178 Group: System/Kernel and hardware
179 Summary: Plymouth "space-flares" plugin
180 Requires: %{lib_name} = %{version}-%{release}
181 Requires: plymouth-plugin-label = %{version}-%{release}
182
183 %description plugin-space-flares
184 This package contains the "space-flares" boot splash plugin for
185 Plymouth. It features a corner image with animated flares.
186
187 %package theme-solar
188 Group: System/Kernel and hardware
189 Summary: Plymouth "Solar" theme
190 Requires: %{name}-plugin-space-flares = %{version}-%{release}
191 Requires(post): plymouth-scripts = %{version}-%{release}
192
193 %description theme-solar
194 This package contains the "Solar" boot splash theme for
195 Plymouth. It features a blue flamed sun with animated solar flares.
196
197 %package plugin-two-step
198 Group: System/Kernel and hardware
199 Summary: Plymouth "two-step" plugin
200 Requires: %{lib_name} = %{version}-%{release}
201 Requires: plymouth-plugin-label = %{version}-%{release}
202
203 %description plugin-two-step
204 This package contains the "two-step" boot splash plugin for
205 Plymouth. It features a two phased boot process that starts with
206 a progressing animation synced to boot time and finishes with a
207 short, fast one-shot animation.
208
209 %package theme-charge
210 Group: System/Kernel and hardware
211 Summary: Plymouth "Charge" plugin
212 Requires: %{name}-plugin-two-step = %{version}-%{release}
213 Requires(post): plymouth-scripts = %{version}-%{release}
214
215 %description theme-charge
216 This package contains the "charge" boot splash theme for
217 Plymouth. It features the shadowy hull of a logo charge up and
218 and finally burst into full form.
219
220 %package theme-glow
221 Group: System/Kernel and hardware
222 Summary: Plymouth "Glow" plugin
223 Requires(post): plymouth-scripts = %{version}-%{release}
224 Requires: plymouth-plugin-two-step = %{version}-%{release}
225
226 %description theme-glow
227 This package contains the "Glow" boot splash theme for Plymouth.
228
229 %prep
230 %setup -q
231 %apply_patches
232 %if %{with uclibc}
233 autoreconf --install --symlink
234 %endif
235
236
237 %build
238 export CONFIGURE_TOP=`pwd`
239 %if %{with uclibc}
240 mkdir -p uclibc
241 cd uclibc
242 %configure2_5x CC="%{uclibc_cc}" \
243 CFLAGS="%{uclibc_cflags}" \
244 LDFLAGS="%{ldflags} -lz" \
245 --prefix=%{uclibc_root}%{_prefix} \
246 --libdir="%{uclibc_root}%{_libdir}" \
247 --bindir="%{uclibc_root}%{plymouthclient_execdir}" \
248 --sbindir="%{uclibc_root}%{plymouthdaemon_execdir}" \
249 --enable-tracing \
250 --disable-tests \
251 --with-logo=%{_datadir}/icons/large/%{_real_vendor}.png \
252 --with-background-start-color-stop=0x0073B3 \
253 --with-background-end-color-stop=0x00457E \
254 --with-background-color=0x3391CD \
255 --with-log-viewer \
256 --disable-gdm-transition \
257 --enable-systemd-integration \
258 --without-gdm-autostart-file \
259 --without-rhgb-compat-link \
260 --with-system-root-install \
261 --with-release-file=/etc/mageia-release
262 # We don't build these for uclibc since they link against a lot of libraries
263 # that we don't provide any uclibc linked version of
264 sed -e 's#viewer##g' -i src/Makefile
265 sed -e 's#label##g' -i src/plugins/controls/Makefile
266 %make
267 cd ..
268 %endif
269
270 mkdir -p system
271 cd system
272 %configure2_5x \
273 --enable-tracing \
274 --disable-tests \
275 --with-logo=%{_datadir}/icons/large/%{_real_vendor}.png \
276 --with-background-start-color-stop=0x0073B3 \
277 --with-background-end-color-stop=0x00457E \
278 --with-background-color=0x3391CD \
279 --disable-gdm-transition \
280 --with-log-viewer \
281 --without-gdm-autostart-file \
282 --enable-systemd-integration \
283 --without-rhgb-compat-link \
284 --with-system-root-install \
285 --with-release-file=/etc/mageia-release
286
287 %make
288 cd ..
289
290 %install
291 rm -rf $RPM_BUILD_ROOT
292
293 mkdir -p $RPM_BUILD_ROOT/lib/systemd/system/{sysinit,poweroff,halt,kexec,reboot,multi-user}.target.wants
294 ln -s ../plymouth-start.service $RPM_BUILD_ROOT/lib/systemd/system/sysinit.target.wants/
295 ln -s ../plymouth-read-write.service $RPM_BUILD_ROOT/lib/systemd/system/sysinit.target.wants/
296 ln -s ../plymouth-poweroff.service $RPM_BUILD_ROOT/lib/systemd/system/poweroff.target.wants/
297 ln -s ../plymouth-halt.service $RPM_BUILD_ROOT/lib/systemd/system/halt.target.wants/
298 ln -s ../plymouth-kexec.service $RPM_BUILD_ROOT/lib/systemd/system/kexec.target.wants/
299 ln -s ../plymouth-reboot.service $RPM_BUILD_ROOT/lib/systemd/system/reboot.target.wants/
300 ln -s ../plymouth-quit.service $RPM_BUILD_ROOT/lib/systemd/system/multi-user.target.wants/
301 ln -s ../plymouth-quit-wait.service $RPM_BUILD_ROOT/lib/systemd/system/multi-user.target.wants/
302
303 %if %{with uclibc}
304 %makeinstall_std -C uclibc plymouthdaemondir=%{uclibc_root}%{plymouthdaemon_execdir} plymouthclientdir=%{uclibc_root}%{plymouthclient_execdir}
305 rm -rf %{buildroot}%{uclibc_root}{%{_includedir},%{_datadir},%{_libdir}/pkgconfig,%{_libexecdir},%{plymouthdaemon_execdir}/plymouth-set-default-theme}
306 %endif
307 %makeinstall_std -C system
308
309 find $RPM_BUILD_ROOT -name \*.a -delete -o -name \*.la -delete
310
311 mkdir -p $RPM_BUILD_ROOT%{_sbindir}
312 mv $RPM_BUILD_ROOT/sbin/plymouthd $RPM_BUILD_ROOT%{_sbindir}
313 mkdir -p $RPM_BUILD_ROOT%{_bindir}
314 mv $RPM_BUILD_ROOT/bin/plymouth $RPM_BUILD_ROOT%{_bindir}
315 touch $RPM_BUILD_ROOT%{_datadir}/plymouth/themes/default.plymouth
316
317 mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/lib/plymouth
318 cp %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/plymouth/default-boot-duration
319 touch $RPM_BUILD_ROOT%{_localstatedir}/lib/plymouth/{boot,shutdown}-duration
320
321 # Add charge
322 mkdir -p $RPM_BUILD_ROOT%{_datadir}/plymouth/themes/charge
323 cp %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/plymouth/themes/charge
324 cp $RPM_BUILD_ROOT%{_datadir}/plymouth/themes/glow/{box,bullet,entry,lock}.png $RPM_BUILD_ROOT%{_datadir}/plymouth/themes/charge
325
326 %clean
327 rm -rf $RPM_BUILD_ROOT
328
329 %post
330 [ -f %{_localstatedir}/lib/plymouth/boot-duration ] || cp -f %{_datadir}/plymouth/default-boot-duration %{_localstatedir}/lib/plymouth/boot-duration
331 if [ "x$DURING_INSTALL" = "x" ]; then
332 if [ $1 -eq 1 ]; then
333 %{_prefix}/libexec/plymouth/plymouth-update-initrd
334 fi
335 fi
336
337
338 %postun
339 if [ $1 -eq 0 ]; then
340 rm -f %{_libdir}/plymouth/default.so
341 fi
342
343 %define theme_scripts() \
344 %post -n %{name}-theme-%{1} \
345 if [ -x %{_sbindir}/plymouth-set-default-theme ]; then \
346 export LIB=%{_lib} \
347 if [ $1 -eq 1 ]; then \
348 %{_sbindir}/plymouth-set-default-theme --rebuild-initrd %{1} \
349 else \
350 THEME=$(%{_sbindir}/plymouth-set-default-theme) \
351 if [ "$THEME" == "text" -o "$THEME" == "%{1}" ]; then \
352 %{_sbindir}/plymouth-set-default-theme --rebuild-initrd %{1} \
353 fi \
354 fi \
355 fi \
356 \
357 %postun -n %{name}-theme-%{1} \
358 export LIB=%{_lib} \
359 if [ $1 -eq 0 -a -x %{_sbindir}/plymouth-set-default-theme ]; then \
360 if [ "$(%{_sbindir}/plymouth-set-default-theme)" == "%{1}" ]; then \
361 %{_sbindir}/plymouth-set-default-theme --reset --rebuild-initrd \
362 fi \
363 fi \
364
365
366 %theme_scripts spinfinity
367 %theme_scripts fade-in
368 %theme_scripts solar
369 %theme_scripts charge
370 %theme_scripts glow
371 %theme_scripts script
372
373
374 %files
375 %defattr(-, root, root)
376 %doc AUTHORS NEWS README
377 %config(noreplace) %{_sysconfdir}/plymouth
378 %dir %{_datadir}/plymouth
379 %dir %{_datadir}/plymouth/themes
380 %{_datadir}/plymouth/default-boot-duration
381 %dir %{_localstatedir}/lib/plymouth
382 %{_sbindir}/plymouthd
383 %{_bindir}/plymouth
384 /lib/systemd/system/plymouth-*.service
385 /lib/systemd/system/systemd-ask-password-plymouth.path
386 /lib/systemd/system/systemd-ask-password-plymouth.service
387 /lib/systemd/system/*.wants/plymouth-*.service
388 %{_libdir}/plymouth/details.so
389 %{_libdir}/plymouth/text.so
390 %dir %{_libdir}/plymouth/renderers
391 %{_libdir}/plymouth/renderers/drm*
392 %{_libdir}/plymouth/renderers/frame-buffer*
393 %ghost %{_datadir}/plymouth/themes/default.plymouth
394 %{_datadir}/plymouth/plymouthd.defaults
395 %{_datadir}/plymouth/themes/details
396 %{_datadir}/plymouth/themes/text
397 %{_localstatedir}/run/plymouth
398 %{_localstatedir}/spool/plymouth
399 %ghost %{_localstatedir}/lib/plymouth/shutdown-duration
400 %ghost %{_localstatedir}/lib/plymouth/boot-duration
401 %{_mandir}/man8/*
402 %if %{with uclibc}
403 %{uclibc_root}%{plymouthdaemon_execdir}/plymouthd
404 %{uclibc_root}%{plymouthclient_execdir}/plymouth
405 %{uclibc_root}%{_libdir}/plymouth/details.so
406 %{uclibc_root}%{_libdir}/plymouth/text.so
407 %endif
408
409 %files -n %{lib_name_devel}
410 %defattr(-, root, root)
411 %{plymouth_libdir}/libply.so
412 %{_libdir}/libply-boot-client.so
413 %{_libdir}/libply-splash-graphics.so
414 %{_libdir}/plymouth/renderers/x11*
415 /%{_lib}/libply-splash-core.so
416 %{_libdir}/pkgconfig/*.pc
417 %{_includedir}/plymouth-1
418
419 %files -n %{lib_name}
420 %defattr(-, root, root)
421 %{plymouth_libdir}/libply.so.%{lib_major}*
422 %{_libdir}/libply-boot-client.so.%{lib_major}*
423 %{_libdir}/libply-splash-graphics.so.%{lib_major}*
424 /%{_lib}/libply-splash-core.so.%{lib_major}*
425 %dir %{_libdir}/plymouth
426 %if %{with uclibc}
427 %dir %{uclibc_root}%{_libdir}/plymouth
428 %{uclibc_root}%{plymouth_libdir}/libply.so*
429 %{uclibc_root}%{_libdir}/libply-boot-client.so*
430 %{uclibc_root}%{_libdir}/libply-splash-graphics.so*
431 %endif
432
433 %files scripts
434 %defattr(-, root, root)
435 %{_sbindir}/plymouth-set-default-theme
436 %{_libexecdir}/plymouth
437
438 %files utils
439 %defattr(-, root, root)
440 %{_bindir}/plymouth-log-viewer
441
442 %files plugin-label
443 %defattr(-, root, root)
444 %{_libdir}/plymouth/label.so
445
446 %files plugin-fade-throbber
447 %defattr(-, root, root)
448 %{_libdir}/plymouth/fade-throbber.so
449 %if %{with uclibc}
450 %{uclibc_root}%{_libdir}/plymouth/fade-throbber.so
451 %endif
452
453 %files theme-fade-in
454 %defattr(-, root, root)
455 %{_datadir}/plymouth/themes/fade-in
456
457 %files plugin-throbgress
458 %defattr(-, root, root)
459 %{_libdir}/plymouth/throbgress.so
460 %if %{with uclibc}
461 %{uclibc_root}%{_libdir}/plymouth/throbgress.so
462 %endif
463
464 %files plugin-script
465 %defattr(-, root, root)
466 %{_libdir}/plymouth/script.so
467 %if %{with uclibc}
468 %{uclibc_root}%{_libdir}/plymouth/script.so
469 %endif
470
471 %files theme-script
472 %defattr(-, root, root)
473 %{_datadir}/plymouth/themes/script
474
475 %files theme-spinfinity
476 %defattr(-, root, root)
477 %{_datadir}/plymouth/themes/spinfinity
478
479 %files theme-spinner
480 %defattr(-, root, root)
481 %{_datadir}/plymouth/themes/spinner
482
483 %files plugin-space-flares
484 %defattr(-, root, root)
485 %{_libdir}/plymouth/space-flares.so
486 %if %{with uclibc}
487 %{uclibc_root}%{_libdir}/plymouth/space-flares.so
488 %endif
489
490 %files theme-solar
491 %defattr(-, root, root)
492 %{_datadir}/plymouth/themes/solar
493
494 %files plugin-two-step
495 %defattr(-, root, root)
496 %{_libdir}/plymouth/two-step.so
497 %if %{with uclibc}
498 %{uclibc_root}%{_libdir}/plymouth/two-step.so
499 %endif
500
501 %files theme-charge
502 %defattr(-, root, root)
503 %{_datadir}/plymouth/themes/charge
504
505 %files theme-glow
506 %defattr(-, root, root)
507 %{_datadir}/plymouth/themes/glow
508
509 %files system-theme
510 %defattr(-, root, root)
511
512

  ViewVC Help
Powered by ViewVC 1.1.30