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