1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
11 url = http://www.freedesktop.org/wiki/Software/Plymouth
13 summary = Graphical Boot Animation and Logger.
16 Plymouth provides an attractive graphical boot animation in
17 place of the text messages that normally get shown. Text
18 messages are instead redirected to a log file for viewing
22 source_dl = http://www.freedesktop.org/software/plymouth/releases/
23 sources = %{thisapp}.tar.bz2
32 pkgconfig(libdrm_radeon)
33 pkgconfig(libdrm_nouveau)
38 enable_libdrm_intel = 0
40 if "%{DISTRO_MACHINE}" == "x86_64"
41 enable_libdrm_intel = 1
42 requires += pkgconfig(libdrm_intel)
45 if "%{DISTRO_MACHINE}" == "i686"
46 enable_libdrm_intel = 1
47 requires += pkgconfig(libdrm_intel)
50 CFLAGS += -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
52 configure_options += \
53 --libexecdir=/usr/lib \
56 --with-logo=%{datadir}/pixmaps/system-logo-white.png \
57 --with-background-start-color-stop=0x880400 \
58 --with-background-end-color-stop=0x000000 \
59 --with-background-color=0x880400 \
60 --disable-gdm-transition \
61 --enable-systemd-integration \
62 --without-system-root-install \
63 --without-rhgb-compat-link \
66 if "%{enable_libdrm_intel}" == "0"
67 configure_options += --disable-libdrm_intel
74 # Fix install location for systemd files.
75 make_install_targets += \
76 SYSTEMD_UNIT_DIR=%{unitdir}
79 mkdir -pv %{BUILDROOT}%{datadir}/plymouth
80 mkdir -pv %{BUILDROOT}%{localstatedir}/lib/plymouth
81 cp -vf %{DIR_SOURCE}/boot-duration \
82 %{BUILDROOT}%{datadir}/plymouth/default-boot-duration
83 cp -vf %{DIR_SOURCE}/boot-duration \
84 %{BUILDROOT}%{localstatedir}/lib/plymouth
86 # Override plymouth-update-initrd to work dracut or mkinitrd
87 cp -vf %{DIR_SOURCE}/plymouth-update-initrd \
88 %{BUILDROOT}/usr/lib/plymouth/plymouth-update-initrd
89 chmod 755 %{BUILDROOT}/usr/lib/plymouth/plymouth-update-initrd
91 # XXX - may we can remove this at a later time.
93 # Enable plymouth systemd service files and link them to the correct targets.
94 mkdir -pv %{BUILDROOT}%{unitdir}/halt.target.wants
95 mkdir -pv %{BUILDROOT}%{unitdir}/multi-user.target.wants
96 mkdir -pv %{BUILDROOT}%{unitdir}/poweroff.target.wants
97 mkdir -pv %{BUILDROOT}%{unitdir}/reboot.target.wants
98 mkdir -pv %{BUILDROOT}%{unitdir}/sysinit.target.wants
100 ln -svf ../plymouth-halt.service %{BUILDROOT}%{unitdir}/halt.target.wants/plymouth-halt.service
101 ln -svf ../plymouth-quit.service %{BUILDROOT}%{unitdir}/multi-user.target.wants/plymouth-quit.service
102 ln -svf ../plymouth-quit-wait.service %{BUILDROOT}%{unitdir}/multi-user.target.wants/plymouth-quit-wait.service
103 ln -svf ../plymouth-poweroff.service %{BUILDROOT}%{unitdir}/poweroff.target.wants/plymouth-poweroff.service
104 ln -svf ../plymouth-reboot.service %{BUILDROOT}%{unitdir}/reboot.target.wants/plymouth-reboot.service
105 ln -svf ../plymouth-read-write.service %{BUILDROOT}%{unitdir}/sysinit.target.wants/plymouth-read-write.service
106 ln -svf ../plymouth-start.service %{BUILDROOT}%{unitdir}/sysinit.target.wants/plymouth-start.service
119 %{name}-libs = %{thisver}
120 %{name}-scripts = %{thisver}
121 %{name}-system-theme = %{thisver}
126 systemd-units < 185-3
130 /etc/plymouth/plymouthd.conf
134 if [ ! -f "%{localstatedir}/lib/plymouth/boot-duration" ]; then
135 cp -f %{datadir}/plymouth/default-boot-duration \
136 %{localstatedir}/lib/plymouth/boot-duration
139 # Just search for new unit files that were just installed.
140 /usr/bin/systemctl daemon-reload >/dev/null 2>&1 || :
143 # Reload systemd after update.
145 /usr/bin/systemctl daemon-reload >/dev/null 2>&1 || :
148 # Tell systemd that unitfiles have been removed.
150 /usr/bin/systemctl daemon-reload >/dev/null 2>&1 || :
152 rm -f /boot/initrd-plymouth.img
156 /usr/lib/plymouth/plymouth-generate-initrd >/dev/null 2>&1
164 package %{name}-devel
167 requires = plymouth-libs = %{thisver}
170 package %{name}-scripts
171 summary = Plymouth related scripts.
173 This package contains scripts that help to integrate
174 Plymouth with the system.
177 prerequires = /usr/bin/plymouth
180 plymouth = %{thisver}
190 %{sbindir}/plymouth-set-default-theme
191 %{sbindir}/plymouth-set-default-plugin
192 /usr/lib/plymouth/plymouth-update-initrd
193 /usr/lib/plymouth/plymouth-generate-initrd
194 /usr/lib/plymouth/plymouth-populate-initrd
198 package %{name}-plugin-label
199 summary = Plymouth label plugin.
201 This package contains the label plugin for Plymouth.
202 It provides the ability to render text on graphical boot
203 splashes using pango and cairo.
207 %{libdir}/plymouth/label.so
211 package %{name}-plugin-fade-throbber
212 summary = Plymouth fade-throbber plugin.
214 The package contains the fade-throbber plugin for Plymouth.
215 It features a centered image that fades in and out while
216 other images pulsate around during system boot up.
224 %{libdir}/plymouth/fade-throbber.so
228 package %{name}-plugin-throbgress
229 summary = Plymouth throbgress plugin.
231 This package contains the throbgress plugin for Plymouth.
232 It features a centered logo and animated spinner that spins
233 repeatedly while a progress bar advances at the bootom of the
242 %{libdir}/plymouth/throbgress.so
246 package %{name}-plugin-space-flares
247 summary = Plymouth space-flares plugin.
249 This package contains the space-flares plugin for Plymouth.
250 It features a corner image with animated flares.
258 %{libdir}/plymouth/space-flares.so
262 package %{name}-plugin-two-step
263 summary = Plymouth two-step plugin.
265 This package contains the two-step plugin for Plymouth.
266 It features a corner image with animated flares.
274 %{libdir}/plymouth/two-step.so
278 package %{name}-plugin-script
280 %{libdir}/plymouth/script.so
285 summary = The plymouth "%{theme_name}" theme.
287 This package contains the "%{theme_name}" boot
288 splash theme for plymouth.
292 %{name}-scripts = %{thisver}
296 %{datadir}/plymouth/themes/%{theme_name}
300 if [ "$(%{sbindir}/plymouth-set-default-theme)" = %{theme_name}" ]; then
301 %{sbindir}/plymouth-set-default-theme --reset
302 /usr/lib/plymouth/plymouth-generate-initrd
307 package %{name}-theme-fade-in
311 requires += %{name}-plugin-fade-throbber=%{thisver}
314 package %{name}-theme-spinner
318 requires += %{name}-plugin-two-step=%{thisver}
321 package %{name}-theme-spinfinity
323 theme_name = spinfinity
325 requires += %{name}-plugin-throbgress=%{thisver}
328 package %{name}-theme-script
332 requires += %{name}-plugin-script=%{thisver}
335 package %{name}-theme-solar
339 requires += %{name}-plugin-space-flares=%{thisver}
342 package %{name}-system-theme
343 summary = Plymouth default theme.
345 This metapackage tracks the current distribution default theme.
354 # Don't package any files.