-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
plymouth.spec
493 lines (410 loc) · 14.1 KB
/
plymouth.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
%global optflags %{optflags} -O2
%define major 5
%define libname %mklibname %{name} %{major}
%define libply %mklibname ply %{major}
%define libply_boot_client %mklibname ply-boot-client %{major}
%define libply_splash_graphics %mklibname ply-splash-graphics %{major}
%define libply_splash_core %mklibname ply-splash-core %{major}
%define devname %mklibname %{name} -d
#define snapshot %{nil}
%bcond_with x11_renderer
Summary: Graphical Boot Animation and Logger
Name: plymouth
Version: 24.004.60
#if %snapshot
#Release: 0.%{snapshot}.4
# git clone https://gitlab.freedesktop.org/plymouth/plymouth.git
# git archive --format=tar --prefix plymouth-22.02.122-$(date +%Y%m%d)/ HEAD | xz -vf -T0 -9e > plymouth-22.02.122-$(date +%Y%m%d).tar.xz
#Source0: %{name}-%{version}-%{snapshot}.tar.xz
#else
Release: 1
Source0: http://www.freedesktop.org/software/plymouth/releases/%{name}-%{version}.tar.xz
#endif
License: GPLv2+
Group: System/Kernel and hardware
Url: http://www.freedesktop.org/wiki/Software/Plymouth
Source2: charge.plymouth
# use kernel-install if systemd-boot is used
Patch0: plymouth-0.9.3-use-kernel-install.patch
# OpenMandriva default theme
%ifnarch %{armx} %{riscv}
Patch2: %{name}-0.9.3-set-OpenMandriva-theme.patch
%else
Patch2: %{name}-0.9.3-set-OpenMandriva-theme-armx.patch
%endif
#(tpg) these days nobody even does not know what is /var/log/boot.log
Patch3: plymouth-0.9.4-by-default-disable-boot-log.patch
Patch4: plymouth-fix-generate-version-script.patch
# UPSTREAM GIT PATCHES
BuildRequires: gettext
BuildRequires: meson
BuildRequires: pkgconfig(libpng)
BuildRequires: pkgconfig(freetype2)
BuildRequires: pkgconfig(libdrm)
BuildRequires: pkgconfig(libudev)
BuildRequires: pkgconfig(libevdev)
BuildRequires: pkgconfig(xkbcommon)
BuildRequires: pkgconfig(xkeyboard-config)
%if %{with x11_renderer}
BuildRequires: pkgconfig(gtk+-3.0)
%endif
BuildRequires: pkgconfig(libsystemd)
BuildRequires: systemd-rpm-macros
# (tpg) needed for udevadm and systemd-tty-ask-password-agent
BuildRequires: systemd
# (tpg) needed for watermark.png and bgrt-fallback.png
BuildRequires: distro-release-theme
#if %{snapshot}
#BuildRequires: intltool
#BuildRequires: xsltproc
#BuildRequires: git
#endif
%rename splashy
Conflicts: systemd-units < 186
%rename plymouth-utils
Requires: %{name}-scripts
%description
Plymouth provides an attractive graphical boot animation in
place of the text messages that normally get shown. Text
messages are instead redirected to a log file for viewing
after boot.
%package system-theme
Group: System/Kernel and hardware
Summary: Plymouth default theme
Requires: plymouth(system-theme)
Requires: %{name} = %{EVRD}
%description system-theme
This metapackage tracks the current distribution default theme.
%package -n %{libply}
Summary: Plymouth libraries
Group: System/Libraries
Obsoletes: %{_lib}ply2 < 0.9.0-11
Provides: %{_lib}ply2 = 0.9.0-11
Requires: %{libply_boot_client} = %{EVRD}
%description -n %{libply}
This package contains the libply library used by Plymouth.
%package -n %{libply_boot_client}
Summary: Plymouth libraries
Group: System/Libraries
Obsoletes: %{_lib}ply-boot-client2 < 0.9.0-11
Provides: %{_lib}ply-boot-client2 = 0.9.0-11
%description -n %{libply_boot_client}
This package contains the libply-boot-client library used by Plymouth.
%package -n %{libply_splash_graphics}
Summary: Plymouth libraries
Group: System/Libraries
Obsoletes: %{_lib}ply-splash-graphics2 < 0.9.0-11
Provides: %{_lib}ply-splash-graphics2 = 0.9.0-11
%description -n %{libply_splash_graphics}
This package contains the libply-splash-graphic library used by Plymouth.
%package -n %{libply_splash_core}
Summary: Plymouth libraries
Group: System/Libraries
Obsoletes: %{_lib}ply-splash-core2 < 0.9.0-11
Provides: %{_lib}ply-splash-core2 = 0.9.0-11
%description -n %{libply_splash_core}
This package contains the libply-splash-core library used by Plymouth.
%package -n %{devname}
Summary: Libraries and headers for writing Plymouth splash plugins
Group: Development/C
Provides: %{name}-devel = %{EVRD}
Requires: %{libply} = %{EVRD}
Requires: %{libply_boot_client} = %{EVRD}
Requires: %{libply_splash_graphics} = %{EVRD}
Requires: %{libply_splash_core} = %{EVRD}
%description -n %{devname}
This package contains the libply and libplybootsplash libraries
and headers needed to develop 3rd party splash plugins for Plymouth.
%package scripts
Group: System/Kernel and hardware
Summary: Plymouth related scripts
BuildArch: noarch
Requires: findutils
Requires: coreutils
Requires: pigz
Requires: cpio
Requires: dracut
Requires: awk
Requires: %{name} = %{EVRD}
Provides: bootsplash = 3.4.3
Obsoletes: bootsplash < 3.4.3
Conflicts: bootsplash < 3.4.3
%description scripts
This package contains scripts that help integrate Plymouth with
the system.
%package plugin-label
Group: System/Kernel and hardware
Summary: Plymouth label plugin
Requires: %{name}
Requires: %{libply_splash_graphics}
%description plugin-label
This package contains the label control plugin for
Plymouth. It provides the ability to render text on
graphical boot splashes using freetype.
%package plugin-fade-throbber
Group: System/Kernel and hardware
Summary: Plymouth "Fade-Throbber" plugin
Requires: %{name}
Requires: %{libply_splash_core}
Requires: %{libply_splash_graphics}
%description plugin-fade-throbber
This package contains the "Fade-In" boot splash plugin for
Plymouth. It features a centered image that fades in and out
while other images pulsate around during system boot up.
%package plugin-script
Group: System/Kernel and hardware
Summary: Plymouth "Script" plugin
Requires: %{libply_splash_core}
Requires: %{libply_splash_graphics}
%description plugin-script
This package contains the "Script" plugin for Plymouth.
%package plugin-two-step
Group: System/Kernel and hardware
Summary: Plymouth "two-step" plugin
Requires: %{libply_splash_core}
Requires: %{name}-plugin-label = %{version}
%rename %{name}-plugin-throbgress
%description plugin-two-step
This package contains the "two-step" boot splash plugin for
Plymouth. It features a two phased boot process that starts with
a progressing animation synced to boot time and finishes with a
short, fast one-shot animation.
%package plugin-space-flares
Group: System/Kernel and hardware
Summary: Plymouth "space-flares" plugin
Requires: %{libply_splash_core}
Requires: %{name}-plugin-label = %{version}
%description plugin-space-flares
This package contains the "space-flares" boot splash plugin for
Plymouth. It features a corner image with animated flares.
%package plugin-tribar
Group: System/Kernel and hardware
Summary: Plymouth "Tribar" plugin
Requires: %{libply_splash_core}
Requires: %{libply_splash_graphics}
%description plugin-tribar
This package contains the "tribar" boot splash plugin for
Plymouth.
%package theme-script
Group: System/Kernel and hardware
Summary: Plymouth "Script" theme
BuildArch: noarch
Requires: %{name}-plugin-script = %{version}
Requires(post): %{name}-scripts
%description theme-script
This package contains the "Script" boot splash theme for
Plymouth.
%package theme-fade-in
Group: System/Kernel and hardware
Summary: Plymouth "Fade-In" theme
BuildArch: noarch
Requires: %{name}-plugin-fade-throbber = %{version}
Requires: %{name}-plugin-label = %{version}
Requires(post): %{name}-scripts
%description theme-fade-in
This package contains the "Fade-In" boot splash theme for
Plymouth. It features a centered logo that fades in and out
while stars twinkle around the logo during system boot up.
%package theme-spinfinity
Group: System/Kernel and hardware
Summary: Plymouth "Spinfinity" theme
BuildArch: noarch
Requires: %{name}-plugin-two-step = %{version}
Requires(post): %{name}-scripts
%description theme-spinfinity
This package contains the "Spinfinity" boot splash theme for
Plymouth. It features a centered logo and animated spinner that
spins in the shape of an infinity sign.
%package theme-bgrt
Group: System/Kernel and hardware
Summary: Plymouth "BGRT" and "Spinner" theme
BuildArch: noarch
Requires: abattis-cantarell-fonts
Requires: %{name}-plugin-two-step = %{version}
Requires(post): %{name}-scripts
%ifarch %{armx} %{riscv}
Provides: plymouth(system-theme) = %{EVRD}
%endif
# no need to provide a separate package for this, ass difference is on one file
%rename %{name}-theme-spinner
%description theme-bgrt
This package contains the "BGRT" and "Spinner" boot splash theme for
Plymouth.
%package theme-solar
Group: System/Kernel and hardware
Summary: Plymouth "Solar" theme
BuildArch: noarch
Requires: %{name}-plugin-space-flares = %{version}
Requires(post): %{name}-scripts
%description theme-solar
This package contains the "Solar" boot splash theme for
Plymouth. It features a blue flamed sun with animated solar flares.
%package theme-charge
Group: System/Kernel and hardware
Summary: Plymouth "Charge" plugin
BuildArch: noarch
Requires: %{name}-plugin-two-step = %{version}
Requires(post): %{name}-scripts
%description theme-charge
This package contains the "charge" boot splash theme for
Plymouth. It features the shadowy hull of a logo charge up and
and finally burst into full form.
%package theme-glow
Group: System/Kernel and hardware
Summary: Plymouth "Glow" plugin
BuildArch: noarch
Requires: %{name}-plugin-two-step = %{version}
Requires(post): %{name}-scripts
%description theme-glow
This package contains the "Glow" boot splash theme for Plymouth.
%package theme-tribar
Group: System/Kernel and hardware
Summary: Plymouth "Tribar" plugin
BuildArch: noarch
Requires: %{name}-plugin-tribar = %{version}
Requires(post): %{name}-scripts
%description theme-tribar
This package contains the "Tribar" boot splash theme for Plymouth.
%prep
#if %{snapshot}
#autosetup -n %{name}-%{version}-%{snapshot} -p1
#else
%autosetup -p1
#endif
%build
%meson \
-Dlogo="%{_datadir}/pixmaps/system-logo-white.png" \
-Dtracing=false \
-Dpango=disabled \
%if %{without x11_renderer}
-Dgtk=disabled \
%endif
-Ddocs=false
%meson_build -C build
%install
%meson_install -C build
# Add charge
mkdir -p %{buildroot}%{_datadir}/plymouth/themes/charge
cp %{SOURCE2} %{buildroot}%{_datadir}/plymouth/themes/charge
cp %{buildroot}%{_datadir}/plymouth/themes/glow/{box,bullet,entry,lock}.png %{buildroot}%{_datadir}/plymouth/themes/charge
find %{buildroot} -name \*.a -delete -o -name \*.la -delete
# (tpg) add watermark to all the themes that relies on two-step plugin
for i in bgrt charge glow spinfinity spinner; do
cp %{_datadir}/pixmaps/system-logo-white.png %{buildroot}%{_datadir}/plymouth/themes/$i/watermark.png
done
# (tpg) display something if BGRT image is empty
for i in bgrt spinner; do
cp %{_datadir}/pixmaps/system-logo-white.png %{buildroot}%{_datadir}/plymouth/themes/$i/bgrt-fallback.png
done
%if %{cross_compiling}
# The meson script gets the systemd unit location wrong when crosscompiling
# FIXME this should be fixed properly instead of curing the symptom
mv %{buildroot}%{_prefix}/%{_target_platform}%{_prefix}/* %{buildroot}%{_prefix}/
%endif
%find_lang %{name}
%define theme_scripts() \
%post -n %{name}-theme-%{1} \
if [ -x %{_sbindir}/plymouth-set-default-theme ]; then \
export LIB=%{_lib} \
if [ $1 -eq 1 ]; then \
%{_sbindir}/plymouth-set-default-theme --rebuild-initrd %{1} \
else \
THEME=$(%{_sbindir}/plymouth-set-default-theme) \
if [ "$THEME" = "text" ] || [ "$THEME" = "%{1}" ]; then \
%{_sbindir}/plymouth-set-default-theme --rebuild-initrd %{1} \
fi \
fi \
fi \
\
%postun -n %{name}-theme-%{1} \
export LIB=%{_lib} \
if [ $1 -eq 0 ] && [ -x %{_sbindir}/plymouth-set-default-theme ]; then \
if [ "$(%{_sbindir}/plymouth-set-default-theme)" = "%{1}" ]; then \
%{_sbindir}/plymouth-set-default-theme --reset --rebuild-initrd \
fi \
fi \
%theme_scripts spinfinity
%theme_scripts fade-in
%theme_scripts solar
%theme_scripts charge
%theme_scripts glow
%theme_scripts script
%files -f %{name}.lang
%doc AUTHORS README.md
%config(noreplace) %{_sysconfdir}/plymouth
%dir %{_datadir}/plymouth
%dir %{_datadir}/plymouth/themes
%dir %{_datadir}/plymouth/themes/details
%dir %{_datadir}/plymouth/themes/text
%dir %{_libdir}/plymouth
%dir %{_libdir}/plymouth/renderers
%dir %{_libexecdir}/plymouth
%dir %{_localstatedir}/lib/plymouth
%{_sbindir}/plymouthd
%{_bindir}/plymouth
%{_libexecdir}/plymouth/plymouthd-fd-escrow
%{_sysconfdir}/logrotate.d/bootlog
%{_libdir}/plymouth/details.so
%{_libdir}/plymouth/text.so
%{_unitdir}/*plymouth*.service
%{_unitdir}/systemd-*.path
%{_unitdir}/*.wants/plymouth-*.service
%{_datadir}/plymouth/plymouthd.defaults
%{_datadir}/plymouth/themes/details/details.plymouth
%{_datadir}/plymouth/themes/text/text.plymouth
%{_localstatedir}/spool/plymouth
%files -n %{libply}
%{_libdir}/libply.so.%{major}*
%files -n %{libply_boot_client}
%{_libdir}/libply-boot-client.so.%{major}*
%files -n %{libply_splash_graphics}
%{_libdir}/libply-splash-graphics.so.%{major}*
%{_libdir}/plymouth/renderers/drm*
%{_libdir}/plymouth/renderers/frame-buffer*
%if %{with x11_renderer}
%{_libdir}/plymouth/renderers/x11*
%endif
%files -n %{libply_splash_core}
%{_libdir}/libply-splash-core.so.%{major}*
%files -n %{devname}
%{_libdir}/libply.so
%{_libdir}/libply-boot-client.so
%{_libdir}/libply-splash-graphics.so
%{_libdir}/libply-splash-core.so
%{_libdir}/pkgconfig/*.pc
%{_includedir}/plymouth-1
%files scripts
%{_sbindir}/plymouth-set-default-theme
%{_libexecdir}/plymouth/plymouth-update-initrd
%{_libexecdir}/plymouth/plymouth-generate-initrd
%{_libexecdir}/plymouth/plymouth-populate-initrd
%files plugin-label
%{_libdir}/plymouth/label-freetype.so
%files plugin-fade-throbber
%{_libdir}/plymouth/fade-throbber.so
%files theme-fade-in
%{_datadir}/plymouth/themes/fade-in
%files plugin-script
%{_libdir}/plymouth/script.so
%files theme-script
%{_datadir}/plymouth/themes/script
%files theme-spinfinity
%{_datadir}/plymouth/themes/spinfinity
%files theme-bgrt
%{_datadir}/plymouth/themes/bgrt
%{_datadir}/plymouth/themes/spinner
%files plugin-space-flares
%{_libdir}/plymouth/space-flares.so
%files theme-solar
%{_datadir}/plymouth/themes/solar
%files plugin-two-step
%{_libdir}/plymouth/two-step.so
%files plugin-tribar
%{_libdir}/plymouth/tribar.so
%files theme-tribar
%{_datadir}/plymouth/themes/tribar
%files theme-charge
%{_datadir}/plymouth/themes/charge
%files theme-glow
%{_datadir}/plymouth/themes/glow
%files system-theme