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_PLATFORM}" == "x86"
41 enable_libdrm_intel = 1
42 requires += pkgconfig(libdrm_intel)
45 CFLAGS += -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
47 configure_options += \
48 --libexecdir=/usr/lib \
52 --with-logo=%{datadir}/pixmaps/system-logo-white.png \
53 --with-background-start-color-stop=0x880400 \
54 --with-background-end-color-stop=0x000000 \
55 --with-background-color=0x880400 \
56 --disable-gdm-transition \
57 --enable-systemd-integration \
58 --without-system-root-install \
59 --without-rhgb-compat-link \
62 if "%{enable_libdrm_intel}" == "0"
63 configure_options += --disable-libdrm_intel
70 # Fix install location for systemd files.
71 make_install_targets += \
72 SYSTEMD_UNIT_DIR=%{unitdir}
75 mkdir -pv %{BUILDROOT}%{datadir}/plymouth
76 mkdir -pv %{BUILDROOT}%{localstatedir}/lib/plymouth
77 cp -vf %{DIR_SOURCE}/boot-duration \
78 %{BUILDROOT}%{datadir}/plymouth/default-boot-duration
79 cp -vf %{DIR_SOURCE}/boot-duration \
80 %{BUILDROOT}%{localstatedir}/lib/plymouth
82 # Override plymouth-update-initrd to work dracut or mkinitrd
83 cp -vf %{DIR_SOURCE}/plymouth-update-initrd \
84 %{BUILDROOT}/usr/lib/plymouth/plymouth-update-initrd
85 chmod 755 %{BUILDROOT}/usr/lib/plymouth/plymouth-update-initrd
87 # XXX - may we can remove this at a later time.
89 # Enable plymouth systemd service files and link them to the correct targets.
90 mkdir -pv %{BUILDROOT}%{unitdir}/halt.target.wants
91 mkdir -pv %{BUILDROOT}%{unitdir}/multi-user.target.wants
92 mkdir -pv %{BUILDROOT}%{unitdir}/poweroff.target.wants
93 mkdir -pv %{BUILDROOT}%{unitdir}/reboot.target.wants
94 mkdir -pv %{BUILDROOT}%{unitdir}/sysinit.target.wants
96 ln -svf ../plymouth-halt.service %{BUILDROOT}%{unitdir}/halt.target.wants/plymouth-halt.service
97 ln -svf ../plymouth-quit.service %{BUILDROOT}%{unitdir}/multi-user.target.wants/plymouth-quit.service
98 ln -svf ../plymouth-quit-wait.service %{BUILDROOT}%{unitdir}/multi-user.target.wants/plymouth-quit-wait.service
99 ln -svf ../plymouth-poweroff.service %{BUILDROOT}%{unitdir}/poweroff.target.wants/plymouth-poweroff.service
100 ln -svf ../plymouth-reboot.service %{BUILDROOT}%{unitdir}/reboot.target.wants/plymouth-reboot.service
101 ln -svf ../plymouth-read-write.service %{BUILDROOT}%{unitdir}/sysinit.target.wants/plymouth-read-write.service
102 ln -svf ../plymouth-start.service %{BUILDROOT}%{unitdir}/sysinit.target.wants/plymouth-start.service
115 %{name}-libs = %{thisver}
116 %{name}-scripts = %{thisver}
117 %{name}-system-theme = %{thisver}
122 systemd-units < 185-3
126 /etc/plymouth/plymouthd.conf
130 if [ ! -f "%{localstatedir}/lib/plymouth/boot-duration" ]; then
131 cp -f %{datadir}/plymouth/default-boot-duration \
132 %{localstatedir}/lib/plymouth/boot-duration
135 # Just search for new unit files that were just installed.
136 /usr/bin/systemctl daemon-reload >/dev/null 2>&1 || :
139 # Reload systemd after update.
141 /usr/bin/systemctl daemon-reload >/dev/null 2>&1 || :
144 # Tell systemd that unitfiles have been removed.
146 /usr/bin/systemctl daemon-reload >/dev/null 2>&1 || :
148 rm -f /boot/initrd-plymouth.img
152 /usr/lib/plymouth/plymouth-generate-initrd >/dev/null 2>&1
160 package %{name}-devel
163 requires = plymouth-libs = %{thisver}
166 package %{name}-scripts
167 summary = Plymouth related scripts.
169 This package contains scripts that help to integrate
170 Plymouth with the system.
173 prerequires = /usr/bin/plymouth
176 plymouth = %{thisver}
186 %{sbindir}/plymouth-set-default-theme
187 %{sbindir}/plymouth-set-default-plugin
188 /usr/lib/plymouth/plymouth-update-initrd
189 /usr/lib/plymouth/plymouth-generate-initrd
190 /usr/lib/plymouth/plymouth-populate-initrd
194 package %{name}-plugin-label
195 summary = Plymouth label plugin.
197 This package contains the label plugin for Plymouth.
198 It provides the ability to render text on graphical boot
199 splashes using pango and cairo.
203 %{libdir}/plymouth/label.so
207 package %{name}-plugin-fade-throbber
208 summary = Plymouth fade-throbber plugin.
210 The package contains the fade-throbber plugin for Plymouth.
211 It features a centered image that fades in and out while
212 other images pulsate around during system boot up.
220 %{libdir}/plymouth/fade-throbber.so
224 package %{name}-plugin-throbgress
225 summary = Plymouth throbgress plugin.
227 This package contains the throbgress plugin for Plymouth.
228 It features a centered logo and animated spinner that spins
229 repeatedly while a progress bar advances at the bootom of the
238 %{libdir}/plymouth/throbgress.so
242 package %{name}-plugin-space-flares
243 summary = Plymouth space-flares plugin.
245 This package contains the space-flares plugin for Plymouth.
246 It features a corner image with animated flares.
254 %{libdir}/plymouth/space-flares.so
258 package %{name}-plugin-two-step
259 summary = Plymouth two-step plugin.
261 This package contains the two-step plugin for Plymouth.
262 It features a corner image with animated flares.
270 %{libdir}/plymouth/two-step.so
274 package %{name}-plugin-script
276 %{libdir}/plymouth/script.so
281 summary = The plymouth "%{theme_name}" theme.
283 This package contains the "%{theme_name}" boot
284 splash theme for plymouth.
288 %{name}-scripts = %{thisver}
292 %{datadir}/plymouth/themes/%{theme_name}
296 if [ "$(%{sbindir}/plymouth-set-default-theme)" = %{theme_name}" ]; then
297 %{sbindir}/plymouth-set-default-theme --reset
298 /usr/lib/plymouth/plymouth-generate-initrd
303 package %{name}-theme-fade-in
307 requires += %{name}-plugin-fade-throbber=%{thisver}
310 package %{name}-theme-spinner
314 requires += %{name}-plugin-two-step=%{thisver}
317 package %{name}-theme-spinfinity
319 theme_name = spinfinity
321 requires += %{name}-plugin-throbgress=%{thisver}
324 package %{name}-theme-script
328 requires += %{name}-plugin-script=%{thisver}
331 package %{name}-theme-solar
335 requires += %{name}-plugin-space-flares=%{thisver}
338 package %{name}-system-theme
339 summary = Plymouth default theme.
341 This metapackage tracks the current distribution default theme.
350 # Don't package any files.