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