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