]>
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 | |
931999f0 | 7 | version = 22.02.122 |
08445b69 | 8 | release = 3 |
c2435279 MT |
9 | |
10 | groups = System/Base | |
931999f0 | 11 | url = https://www.freedesktop.org/wiki/Software/Plymouth |
c2435279 | 12 | license = GPLv2+ |
931999f0 | 13 | summary = Graphical Boot Animation and Logger |
c2435279 MT |
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/ | |
931999f0 | 23 | sources = %{thisapp}.tar.xz |
c2435279 MT |
24 | |
25 | build | |
26 | requires | |
c2435279 | 27 | cairo-devel |
858366be | 28 | docbook-xsl |
c2435279 | 29 | glib2-devel |
931999f0 MT |
30 | libdrm-devel |
31 | libffi-devel | |
c2435279 | 32 | libpng-devel |
858366be | 33 | libudev-devel |
10faca10 | 34 | pango-devel >= 1.21.0 |
b82aaa6e | 35 | systemd-devel |
c2435279 MT |
36 | end |
37 | ||
c2435279 MT |
38 | configure_options += \ |
39 | --libexecdir=/usr/lib \ | |
3584874a | 40 | --disable-gtk \ |
c2435279 MT |
41 | --with-background-start-color-stop=0x880400 \ |
42 | --with-background-end-color-stop=0x000000 \ | |
43 | --with-background-color=0x880400 \ | |
c2435279 MT |
44 | --enable-systemd-integration \ |
45 | --without-system-root-install \ | |
10faca10 MT |
46 | --without-rhgb-compat-link \ |
47 | --enable-drm | |
c2435279 | 48 | |
931999f0 | 49 | # Fix install location for systemd files |
d6a8c34c SS |
50 | make_install_targets += \ |
51 | SYSTEMD_UNIT_DIR=%{unitdir} | |
c2435279 MT |
52 | end |
53 | ||
54 | packages | |
931999f0 MT |
55 | package %{name}-system-theme |
56 | summary = Plymouth default theme | |
c2435279 | 57 | |
931999f0 MT |
58 | description |
59 | This metapackage tracks the current distribution default theme. | |
60 | end | |
61 | ||
62 | requires | |
63 | system-logos | |
64 | end | |
65 | end | |
66 | ||
67 | package %{name} | |
c2435279 MT |
68 | prerequires |
69 | coreutils | |
70 | end | |
71 | ||
72 | requires | |
73 | %{name}-libs = %{thisver} | |
74 | %{name}-scripts = %{thisver} | |
75 | %{name}-system-theme = %{thisver} | |
c2435279 MT |
76 | end |
77 | ||
fc82ea95 SS |
78 | conflicts |
79 | systemd-units < 185-3 | |
80 | end | |
81 | ||
c2435279 MT |
82 | configfiles |
83 | /etc/plymouth/plymouthd.conf | |
84 | end | |
85 | ||
86 | script postin | |
fc82ea95 SS |
87 | # Just search for new unit files that were just installed. |
88 | /usr/bin/systemctl daemon-reload >/dev/null 2>&1 || : | |
89 | end | |
90 | ||
91 | # Reload systemd after update. | |
92 | script postup | |
93 | /usr/bin/systemctl daemon-reload >/dev/null 2>&1 || : | |
94 | end | |
95 | ||
96 | # Tell systemd that unitfiles have been removed. | |
97 | script postun | |
98 | /usr/bin/systemctl daemon-reload >/dev/null 2>&1 || : | |
518d7dc5 | 99 | |
518d7dc5 | 100 | rm -f /boot/initrd-plymouth.img |
c2435279 MT |
101 | end |
102 | ||
103 | script posttransin | |
104 | /usr/lib/plymouth/plymouth-generate-initrd >/dev/null 2>&1 | |
105 | end | |
c2435279 MT |
106 | end |
107 | ||
108 | package %{name}-libs | |
109 | template LIBS | |
110 | end | |
111 | ||
112 | package %{name}-devel | |
113 | template DEVEL | |
114 | ||
115 | requires = plymouth-libs = %{thisver} | |
116 | end | |
117 | ||
118 | package %{name}-scripts | |
119 | summary = Plymouth related scripts. | |
120 | descrtiption | |
121 | This package contains scripts that help to integrate | |
122 | Plymouth with the system. | |
123 | end | |
124 | ||
125 | prerequires = /usr/bin/plymouth | |
126 | ||
127 | requires | |
128 | plymouth = %{thisver} | |
129 | coreutils | |
130 | cpio | |
131 | dracut | |
132 | findutils | |
c2435279 MT |
133 | gzip |
134 | end | |
135 | ||
136 | files | |
137 | %{sbindir}/plymouth-set-default-theme | |
138 | %{sbindir}/plymouth-set-default-plugin | |
139 | /usr/lib/plymouth/plymouth-update-initrd | |
140 | /usr/lib/plymouth/plymouth-generate-initrd | |
141 | /usr/lib/plymouth/plymouth-populate-initrd | |
142 | end | |
143 | end | |
144 | ||
145 | package %{name}-plugin-label | |
146 | summary = Plymouth label plugin. | |
147 | description | |
148 | This package contains the label plugin for Plymouth. | |
149 | It provides the ability to render text on graphical boot | |
150 | splashes using pango and cairo. | |
151 | end | |
152 | ||
153 | files | |
154 | %{libdir}/plymouth/label.so | |
155 | end | |
156 | end | |
157 | ||
158 | package %{name}-plugin-fade-throbber | |
159 | summary = Plymouth fade-throbber plugin. | |
160 | description | |
161 | The package contains the fade-throbber plugin for Plymouth. | |
162 | It features a centered image that fades in and out while | |
163 | other images pulsate around during system boot up. | |
164 | end | |
165 | ||
166 | requires | |
167 | %{name}-plugin-label | |
168 | end | |
169 | ||
170 | files | |
171 | %{libdir}/plymouth/fade-throbber.so | |
172 | end | |
173 | end | |
174 | ||
175 | package %{name}-plugin-throbgress | |
176 | summary = Plymouth throbgress plugin. | |
177 | description | |
178 | This package contains the throbgress plugin for Plymouth. | |
179 | It features a centered logo and animated spinner that spins | |
180 | repeatedly while a progress bar advances at the bootom of the | |
181 | screen. | |
182 | end | |
183 | ||
184 | requires | |
185 | %{name}-plugin-label | |
186 | end | |
187 | ||
188 | files | |
189 | %{libdir}/plymouth/throbgress.so | |
190 | end | |
191 | end | |
192 | ||
193 | package %{name}-plugin-space-flares | |
194 | summary = Plymouth space-flares plugin. | |
195 | description | |
196 | This package contains the space-flares plugin for Plymouth. | |
197 | It features a corner image with animated flares. | |
198 | end | |
199 | ||
200 | requires | |
201 | %{name}-plugin-label | |
202 | end | |
203 | ||
204 | files | |
205 | %{libdir}/plymouth/space-flares.so | |
206 | end | |
207 | end | |
208 | ||
209 | package %{name}-plugin-two-step | |
210 | summary = Plymouth two-step plugin. | |
211 | description | |
212 | This package contains the two-step plugin for Plymouth. | |
213 | It features a corner image with animated flares. | |
214 | end | |
215 | ||
216 | requires | |
217 | %{name}-plugin-label | |
218 | end | |
219 | ||
220 | files | |
221 | %{libdir}/plymouth/two-step.so | |
222 | end | |
223 | end | |
224 | ||
225 | package %{name}-plugin-script | |
226 | files | |
227 | %{libdir}/plymouth/script.so | |
228 | end | |
229 | end | |
230 | ||
231 | template THEME | |
232 | summary = The plymouth "%{theme_name}" theme. | |
233 | description | |
234 | This package contains the "%{theme_name}" boot | |
235 | splash theme for plymouth. | |
236 | end | |
237 | ||
238 | requires | |
239 | %{name}-scripts = %{thisver} | |
240 | end | |
241 | ||
242 | files | |
243 | %{datadir}/plymouth/themes/%{theme_name} | |
244 | end | |
245 | ||
246 | script postun | |
858366be | 247 | if [ "$(%{sbindir}/plymouth-set-default-theme)" = "%{theme_name}" ]; then |
c2435279 MT |
248 | %{sbindir}/plymouth-set-default-theme --reset |
249 | /usr/lib/plymouth/plymouth-generate-initrd | |
250 | fi | |
251 | end | |
252 | end | |
253 | ||
254 | package %{name}-theme-fade-in | |
255 | template THEME | |
256 | theme_name = fade-in | |
257 | ||
258 | requires += %{name}-plugin-fade-throbber=%{thisver} | |
259 | end | |
260 | ||
261 | package %{name}-theme-spinner | |
262 | template THEME | |
263 | theme_name = spinner | |
264 | ||
265 | requires += %{name}-plugin-two-step=%{thisver} | |
266 | end | |
267 | ||
268 | package %{name}-theme-spinfinity | |
269 | template THEME | |
270 | theme_name = spinfinity | |
271 | ||
272 | requires += %{name}-plugin-throbgress=%{thisver} | |
273 | end | |
274 | ||
275 | package %{name}-theme-script | |
276 | template THEME | |
277 | theme_name = script | |
278 | ||
279 | requires += %{name}-plugin-script=%{thisver} | |
280 | end | |
281 | ||
282 | package %{name}-theme-solar | |
283 | template THEME | |
284 | theme_name = solar | |
285 | ||
286 | requires += %{name}-plugin-space-flares=%{thisver} | |
287 | end | |
288 | ||
931999f0 MT |
289 | package %{name}-debuginfo |
290 | template DEBUGINFO | |
c2435279 MT |
291 | end |
292 | end |