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