]>
Commit | Line | Data |
---|---|---|
c2435279 MT |
1 | ############################################################################### |
2 | # IPFire.org - An Open Source Firewall Solution # | |
3 | # Copyright (C) - IPFire Development Team <info@ipfire.org> # | |
4 | ############################################################################### | |
5 | ||
6 | name = plymouth | |
3b3941e4 | 7 | version = 0.8.8 |
3584874a | 8 | release = 1 |
c2435279 MT |
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) | |
c2435279 MT |
32 | pkgconfig(libdrm_radeon) |
33 | pkgconfig(libdrm_nouveau) | |
34 | libpng-devel | |
35 | pango-devel | |
36 | end | |
37 | ||
9a1db8ec MT |
38 | enable_libdrm_intel = 0 |
39 | ||
ec040d89 | 40 | if "%{DISTRO_PLATFORM}" == "x86" |
9a1db8ec MT |
41 | enable_libdrm_intel = 1 |
42 | requires += pkgconfig(libdrm_intel) | |
43 | end | |
44 | ||
c2435279 MT |
45 | CFLAGS += -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include |
46 | ||
47 | configure_options += \ | |
48 | --libexecdir=/usr/lib \ | |
ec040d89 | 49 | --disable-libkms \ |
3584874a | 50 | --disable-gtk \ |
c2435279 MT |
51 | --enable-tracing \ |
52 | --disable-tests \ | |
53 | --with-logo=%{datadir}/pixmaps/system-logo-white.png \ | |
54 | --with-background-start-color-stop=0x880400 \ | |
55 | --with-background-end-color-stop=0x000000 \ | |
56 | --with-background-color=0x880400 \ | |
57 | --disable-gdm-transition \ | |
58 | --enable-systemd-integration \ | |
59 | --without-system-root-install \ | |
60 | --without-rhgb-compat-link \ | |
61 | --without-log-viewer | |
62 | ||
9a1db8ec MT |
63 | if "%{enable_libdrm_intel}" == "0" |
64 | configure_options += --disable-libdrm_intel | |
65 | end | |
66 | ||
c2435279 MT |
67 | prepare_cmds |
68 | autoreconf -vfi | |
69 | end | |
70 | ||
d6a8c34c SS |
71 | # Fix install location for systemd files. |
72 | make_install_targets += \ | |
73 | SYSTEMD_UNIT_DIR=%{unitdir} | |
74 | ||
c2435279 MT |
75 | install_cmds |
76 | mkdir -pv %{BUILDROOT}%{datadir}/plymouth | |
77 | mkdir -pv %{BUILDROOT}%{localstatedir}/lib/plymouth | |
78 | cp -vf %{DIR_SOURCE}/boot-duration \ | |
79 | %{BUILDROOT}%{datadir}/plymouth/default-boot-duration | |
80 | cp -vf %{DIR_SOURCE}/boot-duration \ | |
81 | %{BUILDROOT}%{localstatedir}/lib/plymouth | |
82 | ||
83 | # Override plymouth-update-initrd to work dracut or mkinitrd | |
84 | cp -vf %{DIR_SOURCE}/plymouth-update-initrd \ | |
85 | %{BUILDROOT}/usr/lib/plymouth/plymouth-update-initrd | |
86 | chmod 755 %{BUILDROOT}/usr/lib/plymouth/plymouth-update-initrd | |
87 | end | |
88 | end | |
89 | ||
90 | packages | |
91 | package %{name} | |
92 | groups += Base | |
93 | ||
94 | prerequires | |
95 | coreutils | |
96 | end | |
97 | ||
98 | requires | |
99 | %{name}-libs = %{thisver} | |
100 | %{name}-scripts = %{thisver} | |
101 | %{name}-system-theme = %{thisver} | |
102 | initscripts | |
103 | end | |
104 | ||
fc82ea95 SS |
105 | conflicts |
106 | systemd-units < 185-3 | |
107 | end | |
108 | ||
c2435279 MT |
109 | configfiles |
110 | /etc/plymouth/plymouthd.conf | |
111 | end | |
112 | ||
113 | script postin | |
114 | if [ ! -f "%{localstatedir}/lib/plymouth/boot-duration" ]; then | |
115 | cp -f %{datadir}/plymouth/default-boot-duration \ | |
116 | %{localstatedir}/lib/plymouth/boot-duration | |
117 | fi | |
fc82ea95 SS |
118 | |
119 | # Just search for new unit files that were just installed. | |
120 | /usr/bin/systemctl daemon-reload >/dev/null 2>&1 || : | |
121 | end | |
122 | ||
123 | # Reload systemd after update. | |
124 | script postup | |
125 | /usr/bin/systemctl daemon-reload >/dev/null 2>&1 || : | |
126 | end | |
127 | ||
128 | # Tell systemd that unitfiles have been removed. | |
129 | script postun | |
130 | /usr/bin/systemctl daemon-reload >/dev/null 2>&1 || : | |
518d7dc5 | 131 | |
518d7dc5 | 132 | rm -f /boot/initrd-plymouth.img |
c2435279 MT |
133 | end |
134 | ||
135 | script posttransin | |
136 | /usr/lib/plymouth/plymouth-generate-initrd >/dev/null 2>&1 | |
137 | end | |
c2435279 MT |
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 |