]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/blame - plymouth/plymouth.nm
plymouth: Update to 0.9.2.
[people/amarx/ipfire-3.x.git] / plymouth / plymouth.nm
CommitLineData
c2435279
MT
1###############################################################################
2# IPFire.org - An Open Source Firewall Solution #
3# Copyright (C) - IPFire Development Team <info@ipfire.org> #
4###############################################################################
5
6name = plymouth
b82aaa6e 7version = 0.9.2
3584874a 8release = 1
c2435279
MT
9
10groups = System/Base
11url = http://www.freedesktop.org/wiki/Software/Plymouth
12license = GPLv2+
13summary = Graphical Boot Animation and Logger.
14
15description
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
19 after boot.
20end
21
22source_dl = http://www.freedesktop.org/software/plymouth/releases/
23sources = %{thisapp}.tar.bz2
24
25build
26 requires
27 autoconf
28 automake
29 cairo-devel
858366be 30 docbook-xsl
c2435279
MT
31 glib2-devel
32 pkgconfig(libdrm)
c2435279 33 libpng-devel
858366be 34 libudev-devel
c2435279 35 pango-devel
b82aaa6e 36 systemd-devel
c2435279
MT
37 end
38
c2435279
MT
39 configure_options += \
40 --libexecdir=/usr/lib \
ec040d89 41 --disable-libkms \
3584874a 42 --disable-gtk \
c2435279
MT
43 --enable-tracing \
44 --disable-tests \
45 --with-logo=%{datadir}/pixmaps/system-logo-white.png \
46 --with-background-start-color-stop=0x880400 \
47 --with-background-end-color-stop=0x000000 \
48 --with-background-color=0x880400 \
49 --disable-gdm-transition \
50 --enable-systemd-integration \
51 --without-system-root-install \
52 --without-rhgb-compat-link \
53 --without-log-viewer
54
55 prepare_cmds
56 autoreconf -vfi
57 end
58
d6a8c34c
SS
59 # Fix install location for systemd files.
60 make_install_targets += \
61 SYSTEMD_UNIT_DIR=%{unitdir}
62
c2435279
MT
63 install_cmds
64 mkdir -pv %{BUILDROOT}%{datadir}/plymouth
65 mkdir -pv %{BUILDROOT}%{localstatedir}/lib/plymouth
66 cp -vf %{DIR_SOURCE}/boot-duration \
67 %{BUILDROOT}%{datadir}/plymouth/default-boot-duration
68 cp -vf %{DIR_SOURCE}/boot-duration \
69 %{BUILDROOT}%{localstatedir}/lib/plymouth
70
858366be
SS
71 # The "glow" theme isn't quite ready for primetime, so drop it.
72 rm -rvf %{BUILDROOT}%{datadir}/plymouth/themes/glow
73 rm -rvf %{BUILDROOT}%{datadir}/plymouth/glow/
74 rm -rvf %{BUILDROOT}%{libdir}/plymouth/glow.so
c2435279
MT
75 end
76end
77
78packages
79 package %{name}
80 groups += Base
81
82 prerequires
83 coreutils
84 end
85
86 requires
87 %{name}-libs = %{thisver}
88 %{name}-scripts = %{thisver}
89 %{name}-system-theme = %{thisver}
90 initscripts
91 end
92
fc82ea95
SS
93 conflicts
94 systemd-units < 185-3
95 end
96
c2435279
MT
97 configfiles
98 /etc/plymouth/plymouthd.conf
99 end
100
101 script postin
102 if [ ! -f "%{localstatedir}/lib/plymouth/boot-duration" ]; then
103 cp -f %{datadir}/plymouth/default-boot-duration \
104 %{localstatedir}/lib/plymouth/boot-duration
105 fi
fc82ea95
SS
106
107 # Just search for new unit files that were just installed.
108 /usr/bin/systemctl daemon-reload >/dev/null 2>&1 || :
109 end
110
111 # Reload systemd after update.
112 script postup
113 /usr/bin/systemctl daemon-reload >/dev/null 2>&1 || :
114 end
115
116 # Tell systemd that unitfiles have been removed.
117 script postun
118 /usr/bin/systemctl daemon-reload >/dev/null 2>&1 || :
518d7dc5 119
518d7dc5 120 rm -f /boot/initrd-plymouth.img
c2435279
MT
121 end
122
123 script posttransin
124 /usr/lib/plymouth/plymouth-generate-initrd >/dev/null 2>&1
125 end
c2435279
MT
126 end
127
128 package %{name}-libs
129 template LIBS
130 end
131
132 package %{name}-devel
133 template DEVEL
134
135 requires = plymouth-libs = %{thisver}
136 end
137
138 package %{name}-scripts
139 summary = Plymouth related scripts.
140 descrtiption
141 This package contains scripts that help to integrate
142 Plymouth with the system.
143 end
144
145 prerequires = /usr/bin/plymouth
146
147 requires
148 plymouth = %{thisver}
149 coreutils
150 cpio
151 dracut
152 findutils
153 grubby
154 gzip
155 end
156
157 files
158 %{sbindir}/plymouth-set-default-theme
159 %{sbindir}/plymouth-set-default-plugin
160 /usr/lib/plymouth/plymouth-update-initrd
161 /usr/lib/plymouth/plymouth-generate-initrd
162 /usr/lib/plymouth/plymouth-populate-initrd
163 end
164 end
165
166 package %{name}-plugin-label
167 summary = Plymouth label plugin.
168 description
169 This package contains the label plugin for Plymouth.
170 It provides the ability to render text on graphical boot
171 splashes using pango and cairo.
172 end
173
174 files
175 %{libdir}/plymouth/label.so
176 end
177 end
178
179 package %{name}-plugin-fade-throbber
180 summary = Plymouth fade-throbber plugin.
181 description
182 The package contains the fade-throbber plugin for Plymouth.
183 It features a centered image that fades in and out while
184 other images pulsate around during system boot up.
185 end
186
187 requires
188 %{name}-plugin-label
189 end
190
191 files
192 %{libdir}/plymouth/fade-throbber.so
193 end
194 end
195
196 package %{name}-plugin-throbgress
197 summary = Plymouth throbgress plugin.
198 description
199 This package contains the throbgress plugin for Plymouth.
200 It features a centered logo and animated spinner that spins
201 repeatedly while a progress bar advances at the bootom of the
202 screen.
203 end
204
205 requires
206 %{name}-plugin-label
207 end
208
209 files
210 %{libdir}/plymouth/throbgress.so
211 end
212 end
213
214 package %{name}-plugin-space-flares
215 summary = Plymouth space-flares plugin.
216 description
217 This package contains the space-flares plugin for Plymouth.
218 It features a corner image with animated flares.
219 end
220
221 requires
222 %{name}-plugin-label
223 end
224
225 files
226 %{libdir}/plymouth/space-flares.so
227 end
228 end
229
230 package %{name}-plugin-two-step
231 summary = Plymouth two-step plugin.
232 description
233 This package contains the two-step plugin for Plymouth.
234 It features a corner image with animated flares.
235 end
236
237 requires
238 %{name}-plugin-label
239 end
240
241 files
242 %{libdir}/plymouth/two-step.so
243 end
244 end
245
246 package %{name}-plugin-script
247 files
248 %{libdir}/plymouth/script.so
249 end
250 end
251
252 template THEME
253 summary = The plymouth "%{theme_name}" theme.
254 description
255 This package contains the "%{theme_name}" boot
256 splash theme for plymouth.
257 end
258
259 requires
260 %{name}-scripts = %{thisver}
261 end
262
263 files
264 %{datadir}/plymouth/themes/%{theme_name}
265 end
266
267 script postun
858366be 268 if [ "$(%{sbindir}/plymouth-set-default-theme)" = "%{theme_name}" ]; then
c2435279
MT
269 %{sbindir}/plymouth-set-default-theme --reset
270 /usr/lib/plymouth/plymouth-generate-initrd
271 fi
272 end
273 end
274
275 package %{name}-theme-fade-in
276 template THEME
277 theme_name = fade-in
278
279 requires += %{name}-plugin-fade-throbber=%{thisver}
280 end
281
282 package %{name}-theme-spinner
283 template THEME
284 theme_name = spinner
285
286 requires += %{name}-plugin-two-step=%{thisver}
287 end
288
289 package %{name}-theme-spinfinity
290 template THEME
291 theme_name = spinfinity
292
293 requires += %{name}-plugin-throbgress=%{thisver}
294 end
295
296 package %{name}-theme-script
297 template THEME
298 theme_name = script
299
300 requires += %{name}-plugin-script=%{thisver}
301 end
302
303 package %{name}-theme-solar
304 template THEME
305 theme_name = solar
306
307 requires += %{name}-plugin-space-flares=%{thisver}
308 end
309
310 package %{name}-system-theme
311 summary = Plymouth default theme.
312 description
313 This metapackage tracks the current distribution default theme.
314 end
315
316 groups += Base
317
318 requires
319 system-logos
320 end
321
322 # Don't package any files.
323 files =
324 end
325end