]>
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 | |
fc82ea95 SS |
7 | version = 0.8.5.1 |
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 | ||
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 | ||
c2435279 MT |
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 | ||
9a1db8ec MT |
66 | if "%{enable_libdrm_intel}" == "0" |
67 | configure_options += --disable-libdrm_intel | |
68 | end | |
69 | ||
c2435279 MT |
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 | ||
fc82ea95 SS |
104 | conflicts |
105 | systemd-units < 185-3 | |
106 | end | |
107 | ||
c2435279 MT |
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 | |
fc82ea95 SS |
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 || : | |
c2435279 MT |
130 | end |
131 | ||
132 | script posttransin | |
133 | /usr/lib/plymouth/plymouth-generate-initrd >/dev/null 2>&1 | |
134 | end | |
135 | ||
136 | script postun | |
137 | rm -f /boot/initrd-plymouth.img | |
138 | end | |
139 | end | |
140 | ||
141 | package %{name}-libs | |
142 | template LIBS | |
143 | end | |
144 | ||
145 | package %{name}-devel | |
146 | template DEVEL | |
147 | ||
148 | requires = plymouth-libs = %{thisver} | |
149 | end | |
150 | ||
151 | package %{name}-scripts | |
152 | summary = Plymouth related scripts. | |
153 | descrtiption | |
154 | This package contains scripts that help to integrate | |
155 | Plymouth with the system. | |
156 | end | |
157 | ||
158 | prerequires = /usr/bin/plymouth | |
159 | ||
160 | requires | |
161 | plymouth = %{thisver} | |
162 | coreutils | |
163 | cpio | |
164 | dracut | |
165 | findutils | |
166 | grubby | |
167 | gzip | |
168 | end | |
169 | ||
170 | files | |
171 | %{sbindir}/plymouth-set-default-theme | |
172 | %{sbindir}/plymouth-set-default-plugin | |
173 | /usr/lib/plymouth/plymouth-update-initrd | |
174 | /usr/lib/plymouth/plymouth-generate-initrd | |
175 | /usr/lib/plymouth/plymouth-populate-initrd | |
176 | end | |
177 | end | |
178 | ||
179 | package %{name}-plugin-label | |
180 | summary = Plymouth label plugin. | |
181 | description | |
182 | This package contains the label plugin for Plymouth. | |
183 | It provides the ability to render text on graphical boot | |
184 | splashes using pango and cairo. | |
185 | end | |
186 | ||
187 | files | |
188 | %{libdir}/plymouth/label.so | |
189 | end | |
190 | end | |
191 | ||
192 | package %{name}-plugin-fade-throbber | |
193 | summary = Plymouth fade-throbber plugin. | |
194 | description | |
195 | The package contains the fade-throbber plugin for Plymouth. | |
196 | It features a centered image that fades in and out while | |
197 | other images pulsate around during system boot up. | |
198 | end | |
199 | ||
200 | requires | |
201 | %{name}-plugin-label | |
202 | end | |
203 | ||
204 | files | |
205 | %{libdir}/plymouth/fade-throbber.so | |
206 | end | |
207 | end | |
208 | ||
209 | package %{name}-plugin-throbgress | |
210 | summary = Plymouth throbgress plugin. | |
211 | description | |
212 | This package contains the throbgress plugin for Plymouth. | |
213 | It features a centered logo and animated spinner that spins | |
214 | repeatedly while a progress bar advances at the bootom of the | |
215 | screen. | |
216 | end | |
217 | ||
218 | requires | |
219 | %{name}-plugin-label | |
220 | end | |
221 | ||
222 | files | |
223 | %{libdir}/plymouth/throbgress.so | |
224 | end | |
225 | end | |
226 | ||
227 | package %{name}-plugin-space-flares | |
228 | summary = Plymouth space-flares plugin. | |
229 | description | |
230 | This package contains the space-flares plugin for Plymouth. | |
231 | It features a corner image with animated flares. | |
232 | end | |
233 | ||
234 | requires | |
235 | %{name}-plugin-label | |
236 | end | |
237 | ||
238 | files | |
239 | %{libdir}/plymouth/space-flares.so | |
240 | end | |
241 | end | |
242 | ||
243 | package %{name}-plugin-two-step | |
244 | summary = Plymouth two-step plugin. | |
245 | description | |
246 | This package contains the two-step plugin for Plymouth. | |
247 | It features a corner image with animated flares. | |
248 | end | |
249 | ||
250 | requires | |
251 | %{name}-plugin-label | |
252 | end | |
253 | ||
254 | files | |
255 | %{libdir}/plymouth/two-step.so | |
256 | end | |
257 | end | |
258 | ||
259 | package %{name}-plugin-script | |
260 | files | |
261 | %{libdir}/plymouth/script.so | |
262 | end | |
263 | end | |
264 | ||
265 | template THEME | |
266 | summary = The plymouth "%{theme_name}" theme. | |
267 | description | |
268 | This package contains the "%{theme_name}" boot | |
269 | splash theme for plymouth. | |
270 | end | |
271 | ||
272 | requires | |
273 | %{name}-scripts = %{thisver} | |
274 | end | |
275 | ||
276 | files | |
277 | %{datadir}/plymouth/themes/%{theme_name} | |
278 | end | |
279 | ||
280 | script postun | |
281 | if [ "$(%{sbindir}/plymouth-set-default-theme)" = %{theme_name}" ]; then | |
282 | %{sbindir}/plymouth-set-default-theme --reset | |
283 | /usr/lib/plymouth/plymouth-generate-initrd | |
284 | fi | |
285 | end | |
286 | end | |
287 | ||
288 | package %{name}-theme-fade-in | |
289 | template THEME | |
290 | theme_name = fade-in | |
291 | ||
292 | requires += %{name}-plugin-fade-throbber=%{thisver} | |
293 | end | |
294 | ||
295 | package %{name}-theme-spinner | |
296 | template THEME | |
297 | theme_name = spinner | |
298 | ||
299 | requires += %{name}-plugin-two-step=%{thisver} | |
300 | end | |
301 | ||
302 | package %{name}-theme-spinfinity | |
303 | template THEME | |
304 | theme_name = spinfinity | |
305 | ||
306 | requires += %{name}-plugin-throbgress=%{thisver} | |
307 | end | |
308 | ||
309 | package %{name}-theme-script | |
310 | template THEME | |
311 | theme_name = script | |
312 | ||
313 | requires += %{name}-plugin-script=%{thisver} | |
314 | end | |
315 | ||
316 | package %{name}-theme-solar | |
317 | template THEME | |
318 | theme_name = solar | |
319 | ||
320 | requires += %{name}-plugin-space-flares=%{thisver} | |
321 | end | |
322 | ||
323 | package %{name}-system-theme | |
324 | summary = Plymouth default theme. | |
325 | description | |
326 | This metapackage tracks the current distribution default theme. | |
327 | end | |
328 | ||
329 | groups += Base | |
330 | ||
331 | requires | |
332 | system-logos | |
333 | end | |
334 | ||
335 | # Don't package any files. | |
336 | files = | |
337 | end | |
338 | end |