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

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

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC 1.1.28