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