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