]>
Commit | Line | Data |
---|---|---|
7eb37361 | 1 | # TODO |
4d0be99b | 2 | # - integrate with geninitrd |
ce7477b6 | 3 | # - pldize recent update (r1.18) |
ac730aad JR |
4 | # - verify if systemd services have to be installed for targets, |
5 | # and remove the symlinks if not | |
73566194 JR |
6 | # |
7 | # Conditional build: | |
8 | %bcond_without drm_intel # disable building with libdrm_intel support | |
9 | %bcond_without drm_radeon # disable building with libdrm_radeon support | |
10 | %bcond_with drm_nouveau # enable building with libdrm_nouveau support | |
11 | %bcond_without kms # disable building with libkms support | |
1a851e30 | 12 | |
74f487bf | 13 | Summary: Graphical Boot Animation and Logger |
95b39a2c | 14 | Summary(pl.UTF-8): Graficzna animacja i logowanie startu systemu |
74f487bf | 15 | Name: plymouth |
0fe451a5 | 16 | Version: 0.8.8 |
0be1f6b6 | 17 | Release: 8 |
74f487bf PZ |
18 | License: GPL v2+ |
19 | Group: Base | |
ee1af6f8 | 20 | Source0: http://www.freedesktop.org/software/plymouth/releases/%{name}-%{version}.tar.bz2 |
0fe451a5 | 21 | # Source0-md5: 38f5e613e5ab17806b950cee2d0d0d4e |
4f13623f PZ |
22 | Source1: %{name}-logo.png |
23 | # Source1-md5: 6b38a868585adfd3a96a4ad16973c1f8 | |
3ff323a5 | 24 | Source2: %{name}.tmpfiles |
a234bf88 ER |
25 | Source3: charge.%{name} |
26 | Source4: boot-duration | |
27 | Source5: %{name}-set-default-plugin | |
28 | Source6: %{name}-update-initrd | |
ac730aad JR |
29 | Source7: systemd-ask-password-plymouth.path |
30 | Source8: systemd-ask-password-plymouth.service | |
0b628c8e | 31 | Patch0: text-colors.patch |
1a851e30 | 32 | Patch1: path-udevadm.patch |
3b6dc651 | 33 | Patch2: %{name}-restore-suspend.patch |
7eb37361 | 34 | URL: http://www.freedesktop.org/wiki/Software/Plymouth |
74f487bf | 35 | BuildRequires: cairo-devel |
95b39a2c | 36 | BuildRequires: gtk+2-devel >= 2:2.12.0 |
73566194 | 37 | %if %{with drm_intel} || %{with drm_radeon} || %{with drm_nouveau} || %{with kms} |
7eb37361 | 38 | BuildRequires: libdrm-devel |
73566194 | 39 | %endif |
3b6dc651 | 40 | BuildRequires: xorg-lib-libpciaccess-devel |
0b628c8e | 41 | BuildRequires: libpng-devel >= 2:1.2.16 |
7eb37361 | 42 | BuildRequires: pango-devel >= 1:1.21.0 |
09775552 | 43 | BuildRequires: pkgconfig |
a234bf88 | 44 | Requires: %{name}-graphics-libs = %{version}-%{release} |
95b39a2c | 45 | Requires(post): %{name}-scripts = %{version}-%{release} |
c925bae7 | 46 | Requires: /etc/os-release |
ac730aad | 47 | Requires: systemd-units |
eab8ea45 | 48 | Obsoletes: plymouth-gdm-hooks |
a234bf88 | 49 | Obsoletes: plymouth-utils |
ac730aad | 50 | Obsoletes: systemd-plymouth |
74f487bf PZ |
51 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
52 | ||
53 | %description | |
54 | Plymouth provides an attractive graphical boot animation in place of | |
55 | the text messages that normally get shown. Text messages are instead | |
56 | redirected to a log file for viewing after boot. | |
57 | ||
95b39a2c JB |
58 | %description -l pl.UTF-8 |
59 | Plymouth zapewnia atrakcyjną animację w trakcie startu systemu zamiast | |
60 | zwykle wyświetlanych komunikatów tekstowych. Komunikaty tekstowe | |
61 | zamiast tego są przekierowywane do logu, który można obejrzeć po | |
62 | uruchomieniu systemu. | |
63 | ||
8f26705c JB |
64 | %package core-libs |
65 | Summary: Plymouth core libraries | |
66 | Summary(pl.UTF-8): Podstawowe biblioteki Plymouth | |
95b39a2c | 67 | Group: Libraries |
8f26705c | 68 | Conflicts: plymouth-libs < 0.8.4-0.20120319.1 |
74f487bf | 69 | |
8f26705c JB |
70 | %description core-libs |
71 | This package contains the libply and libply-splash-core libraries used | |
74f487bf PZ |
72 | by Plymouth. |
73 | ||
8f26705c JB |
74 | %description core-libs -l pl.UTF-8 |
75 | Ten pakiet zawiera biblioteki libply i libply-splash-core | |
76 | wykorzystywane przez Plymouth. | |
77 | ||
78 | %package graphics-libs | |
79 | Summary: Plymouth graphics libraries | |
80 | Summary(pl.UTF-8): Biblioteki graficzne Plymouth | |
81 | Group: Development/Libraries | |
82 | Requires: %{name}-core-libs = %{version}-%{release} | |
83 | Provides: %{name}-graphics-libs = %{version}-%{release} | |
84 | Obsoletes: plymouth-libs < %{version}-%{release} | |
85 | Conflicts: plymouth-libs < 0.8.4-0.20120319.1 | |
86 | ||
87 | %description graphics-libs | |
88 | This package contains the libply-splash-graphics library used by | |
89 | graphical Plymouth splashes. | |
90 | ||
91 | %description graphics-libs -l pl.UTF-8 | |
92 | Ten pakiet zawiera bibliotekę libply-splash-graphics wykorzystywaną | |
93 | przez graficzne ekrany Plymouth. | |
95b39a2c | 94 | |
74f487bf | 95 | %package devel |
95b39a2c JB |
96 | Summary: Header files for writing Plymouth splash plugins |
97 | Summary(pl.UTF-8): Pliki nagłówkowe do tworzenia wtyczek graficznych Plymouth | |
74f487bf | 98 | Group: Development/Libraries |
a234bf88 | 99 | Requires: %{name}-graphics-libs = %{version}-%{release} |
74f487bf PZ |
100 | |
101 | %description devel | |
95b39a2c JB |
102 | This package contains the header files for libply and libplybootsplash |
103 | libraries needed to develop 3rd party splash plugins for Plymouth. | |
104 | ||
105 | %description devel -l pl.UTF-8 | |
106 | Ten pakiet zawiera pliki nagłówkowe bibliotek libply i | |
107 | libplybootsplash, potrzebne do tworzenia wtyczek graficznych Plymouth. | |
74f487bf | 108 | |
0be1f6b6 JR |
109 | %package static |
110 | Summary: Static libraries for writing Plymouth splash plugins | |
111 | Summary(pl.UTF-8): Statyczne biblioteki do tworzenia wtyczek graficznych Plymouth | |
112 | Group: Development/Libraries | |
113 | Requires: %{name}-devel = %{version}-%{release} | |
114 | ||
115 | %description static | |
116 | This package contains the static libraries used to develop 3rd party | |
117 | splash plugins for Plymouth. | |
118 | ||
119 | %description static -l pl.UTF-8 | |
120 | Ten pakiet zawiera statyczne biblioteki, przydatne do tworzenia | |
121 | wtyczek graficznych Plymouth. | |
122 | ||
74f487bf PZ |
123 | %package scripts |
124 | Summary: Plymouth related scripts | |
95b39a2c | 125 | Summary(pl.UTF-8): Skrypty pomocnicze do Plymouth |
74f487bf | 126 | Group: Applications/System |
95b39a2c | 127 | Requires: %{name} = %{version}-%{release} |
a234bf88 ER |
128 | Requires: coreutils |
129 | Requires: cpio | |
130 | #Requires: dracut | |
131 | Requires: findutils | |
132 | Requires: gzip | |
74f487bf PZ |
133 | |
134 | %description scripts | |
135 | This package contains scripts that help integrate Plymouth with the | |
136 | system. | |
137 | ||
95b39a2c JB |
138 | %description scripts -l pl.UTF-8 |
139 | Ten pakiet zawiera skrypty pomagające zintegrować Plymouth z systemem. | |
140 | ||
8f26705c JB |
141 | %package plugin-fade-throbber |
142 | Summary: Plymouth "Fade-Throbber" plugin | |
143 | Summary(pl.UTF-8): Wtyczka Plymouth "Fade-Throbber" | |
144 | Group: Base | |
145 | Requires: %{name}-graphics-libs = %{version}-%{release} | |
146 | ||
147 | %description plugin-fade-throbber | |
148 | This package contains the "Fade-Throbber" boot splash plugin for | |
149 | Plymouth. It features a centered image that fades in and out while | |
150 | other images pulsate around during system boot up. | |
151 | ||
152 | %description plugin-fade-throbber -l pl.UTF-8 | |
153 | Ten pakiet zawiera wtyczkę ekranu startowego Plymouth "Fade-Throbber". | |
154 | Cechuje się ona środkowym obrazkiem, który płynnie pojawia się i | |
155 | wygasa, podczas gdy inne obrazki pulsują w trakcie startu systemu. | |
156 | ||
a234bf88 ER |
157 | %package plugin-label |
158 | Summary: Plymouth label plugin | |
8f26705c | 159 | Summary(pl.UTF-8): Wtyczka Plymouth z etykietami |
a234bf88 ER |
160 | Group: Base |
161 | Requires: %{name}-graphics-libs = %{version}-%{release} | |
162 | ||
163 | %description plugin-label | |
164 | This package contains the label control plugin for Plymouth. It | |
165 | provides the ability to render text on graphical boot splashes using | |
166 | pango and cairo. | |
167 | ||
8f26705c JB |
168 | %description plugin-label -l pl.UTF-8 |
169 | Ten pakiet zawiera wtyczkę Plymouth sterującą etykietami. Daje ona | |
170 | możliwość renderowania tekstu na graficznych ekranach startowych przy | |
171 | użyciu bibliotek pango i cairo. | |
a234bf88 | 172 | |
8f26705c JB |
173 | %package plugin-script |
174 | Summary: Plymouth "script" plugin | |
175 | Summary(pl.UTF-8): Wtyczka Plymouth "script" | |
a234bf88 ER |
176 | Group: Base |
177 | Requires: %{name}-graphics-libs = %{version}-%{release} | |
a234bf88 | 178 | |
8f26705c JB |
179 | %description plugin-script |
180 | This package contains the "script" boot splash plugin for Plymouth. It | |
181 | features an extensible, scriptable boot splash language that | |
182 | simplifies the process of designing custom boot splash themes. | |
a234bf88 | 183 | |
8f26705c JB |
184 | %description plugin-script -l pl.UTF-8 |
185 | Ten pakiet zawiera wtyczkę ekranu startowego Plymouth "script". | |
186 | Odznacza się ona rozszerzalnym, skryptowym językiem ekranu startowego, | |
187 | upraszczającym proces projektowania własnych motywów ekranów | |
188 | startowych. | |
a234bf88 ER |
189 | |
190 | %package plugin-space-flares | |
191 | Summary: Plymouth "space-flares" plugin | |
8f26705c | 192 | Summary(pl.UTF-8): Wtyczka Plymouth "space-flares" |
a234bf88 ER |
193 | Group: Base |
194 | Requires: %{name}-graphics-libs = %{version}-%{release} | |
195 | Requires: %{name}-plugin-label = %{version}-%{release} | |
196 | ||
197 | %description plugin-space-flares | |
198 | This package contains the "space-flares" boot splash plugin for | |
199 | Plymouth. It features a corner image with animated flares. | |
200 | ||
8f26705c JB |
201 | %description plugin-space-flares -l pl.UTF-8 |
202 | Ten pakiet zawiera wtyczkę ekranu startowego Plymouth "space-flares". | |
203 | Odznacza się ona umieszczonym w rogu obrazkiem z animowanymi | |
204 | promieniami. | |
a234bf88 ER |
205 | |
206 | %package plugin-two-step | |
207 | Summary: Plymouth "two-step" plugin | |
8f26705c | 208 | Summary(pl.UTF-8): Wtyczka Plymouth "two-step" |
a234bf88 ER |
209 | Group: Base |
210 | Requires: %{name}-graphics-libs = %{version}-%{release} | |
211 | Requires: %{name}-plugin-label = %{version}-%{release} | |
212 | ||
213 | %description plugin-two-step | |
214 | This package contains the "two-step" boot splash plugin for Plymouth. | |
215 | It features a two phased boot process that starts with a progressing | |
216 | animation synced to boot time and finishes with a short, fast one-shot | |
217 | animation. | |
218 | ||
8f26705c JB |
219 | %description plugin-two-step -l pl.UTF-8 |
220 | Ten pakeit zawiera wtyczkę ekranu startowego Plymouth "two-step". | |
221 | Odznacza się ona dwuetapowym procesem startu, rozpoczynającym się | |
222 | postępującą animacją synchronizowaną z czasem uruchamiania, a kończy | |
223 | krótką, jednorazową animacją. | |
224 | ||
225 | %package plugin-throbgress | |
226 | Summary: Plymouth "Throbgress" plugin | |
227 | Summary(pl.UTF-8): Wtyczka Plymouth "Throbgress" | |
228 | Group: Base | |
229 | Requires: %{name}-graphics-libs = %{version}-%{release} | |
230 | Requires: %{name}-plugin-label = %{version}-%{release} | |
231 | ||
232 | %description plugin-throbgress | |
233 | This package contains the "throbgress" boot splash plugin for | |
234 | Plymouth. It features a centered logo and animated spinner that spins | |
235 | repeatedly while a progress bar advances at the bottom of the screen. | |
236 | ||
237 | %description plugin-throbgress -l pl.UTF-8 | |
238 | Ten pakiet zawiera wtyczkę ekranu startowego "Throbgress" do Plymouth. | |
239 | Cechuje się ona umieszczonym pośrodku logiem oraz animowanym kręcącym | |
240 | się kółkiem, podczas gdy pasek postępu przesuwa się na dole ekranu. | |
241 | ||
242 | %package system-theme | |
243 | Summary: Plymouth default theme | |
244 | Summary(pl.UTF-8): Domyślny motyw Plymouth | |
245 | Group: Base | |
246 | Requires: %{name}(system-theme) = %{version}-%{release} | |
247 | Provides: %{name}-system-plugin = %{version}-%{release} | |
248 | Obsoletes: plymouth-system-plugin < %{version}-%{release} | |
8f26705c JB |
249 | |
250 | %description system-theme | |
251 | This metapackage tracks the current distribution default theme. | |
252 | ||
253 | %description system-theme -l pl.UTF-8 | |
254 | Ten metapakiet śledzi domyślny motyw dystrybucji. | |
255 | ||
a234bf88 | 256 | %package theme-charge |
8f26705c JB |
257 | Summary: Plymouth "Charge" theme |
258 | Summary(pl.UTF-8): Motyw Plymouth "Charge" | |
a234bf88 ER |
259 | Group: Base |
260 | Requires: %{name}-plugin-two-step = %{version}-%{release} | |
261 | Requires(post): %{name}-scripts = %{version}-%{release} | |
262 | Provides: %{name}(system-theme) = %{version}-%{release} | |
263 | ||
264 | %description theme-charge | |
265 | This package contains the "charge" boot splash theme for Plymouth. It | |
266 | features the shadowy hull of a Fedora logo charge up and and finally | |
267 | burst into full form. | |
268 | ||
8f26705c JB |
269 | %description theme-charge -l pl.UTF-8 |
270 | Ten pakiet zawiera motyw ekranu startowego Plymouth "Charge". Odznacza | |
271 | się on cieniowaną łupiną loga Fedory, która rośnie, a ostatecznie | |
272 | wybucha do pełnej postaci. | |
273 | ||
274 | %package theme-fade-in | |
275 | Summary: Plymouth "Fade-In" theme | |
276 | Summary(pl.UTF-8): Motyw Plymouth "Fade in" | |
a234bf88 | 277 | Group: Base |
8f26705c JB |
278 | Requires(post): %{name}-scripts = %{version}-%{release} |
279 | Requires: %{name}-plugin-fade-throbber = %{version}-%{release} | |
280 | Obsoletes: plymouth-plugin-fade-in | |
a234bf88 | 281 | |
8f26705c JB |
282 | %description theme-fade-in |
283 | This package contains the "Fade-In" boot splash theme for Plymouth. It | |
284 | features a centered logo that fades in and out while stars twinkle | |
285 | around the logo during system boot up. | |
286 | ||
287 | %description theme-fade-in -l pl.UTF-8 | |
288 | Ten pakiet zawiera motyw ekranu startowego Plymouth "Fade-In". | |
289 | Odznacza się on umieszczonym pośrodku logiem, które w trakcie startu | |
290 | systemu płynnie pojawia się i wygasa, podczas gdy wokół loga migoczą | |
291 | gwiazdy. | |
a234bf88 ER |
292 | |
293 | %package theme-script | |
8f26705c JB |
294 | Summary: Plymouth "Script" theme |
295 | Summary(pl.UTF-8): Motyw Plymouth "Script" | |
a234bf88 | 296 | Group: Base |
8f26705c | 297 | Requires(post): %{name}-scripts = %{version}-%{release} |
a234bf88 | 298 | Requires: %{name}-plugin-script = %{version}-%{release} |
a234bf88 ER |
299 | |
300 | %description theme-script | |
301 | This package contains the "script" boot splash theme for Plymouth. It | |
302 | it is a simple example theme the uses the "script" plugin. | |
303 | ||
8f26705c JB |
304 | %description theme-script -l pl.UTF-8 |
305 | Ten pakiet zawiera motyw ekranu startowego Plymouth "Script". Jest to | |
306 | prosty przykład wykorzystujący wtyczkę "script". | |
307 | ||
308 | %package theme-solar | |
309 | Summary: Plymouth "Solar" theme | |
310 | Summary(pl.UTF-8): Motyw Plymouth "Solar" | |
311 | Group: Base | |
312 | Requires(post): %{name}-scripts = %{version}-%{release} | |
313 | Requires: %{name}-plugin-space-flares = %{version}-%{release} | |
314 | Obsoletes: plymouth-plugin-solar | |
315 | ||
316 | %description theme-solar | |
317 | This package contains the "Solar" boot splash theme for Plymouth. It | |
318 | features a blue flamed sun with animated solar flares. | |
319 | ||
320 | %description theme-solar -l pl.UTF-8 | |
321 | Ten pakiet zawiera motyw ekranu startowego Plymouth "Solar". Odznacza | |
322 | się on słońcem w niebieskich płomieniach z animowanymi promieniami | |
323 | słonecznymi. | |
324 | ||
325 | %package theme-spinfinity | |
326 | Summary: Plymouth "Spinfinity" theme | |
327 | Summary(pl.UTF-8): Motyw Plymouth "Spinfinity" | |
328 | Group: Base | |
329 | Requires(post): %{name}-scripts = %{version}-%{release} | |
330 | Requires: %{name}-plugin-throbgress = %{version}-%{release} | |
331 | Obsoletes: plymouth-plugin-spinfinity | |
332 | ||
333 | %description theme-spinfinity | |
334 | This package contains the "Spinfinity" boot splash theme for Plymouth. | |
335 | It features a centered logo and animated spinner that spins in the | |
336 | shape of an infinity sign. | |
337 | ||
338 | %description theme-spinfinity -l pl.UTF-8 | |
339 | Ten pakiet zawiera motyw ekranu startowego Plymouth "Spinfinity". | |
340 | Odznacza się on umieszczonym pośrodku logiem i animowanym kółkiem | |
341 | kręcącym się po kształcie znaku nieskończoności. | |
342 | ||
a234bf88 ER |
343 | %package theme-spinner |
344 | Summary: Plymouth "Spinner" theme | |
8f26705c | 345 | Summary(pl.UTF-8): Motyw Plymouth "Spinner" |
a234bf88 | 346 | Group: Base |
a234bf88 | 347 | Requires(post): %{name}-scripts = %{version}-%{release} |
8f26705c | 348 | Requires: %{name}-plugin-two-step = %{version}-%{release} |
a234bf88 ER |
349 | |
350 | %description theme-spinner | |
351 | This package contains the "spinner" boot splash theme for Plymouth. It | |
352 | features a small spinner on a dark background. | |
353 | ||
8f26705c JB |
354 | %description theme-spinner -l pl.UTF-8 |
355 | Ten pakiet zawiera motyw ekranu startowego Plymouth "Spinner". | |
356 | Odznacza się on małym kółkiem kręcącym się na ciemnym tle. | |
357 | ||
74f487bf PZ |
358 | %prep |
359 | %setup -q | |
ee1af6f8 | 360 | %patch0 -p1 |
1a851e30 | 361 | %patch1 -p1 |
3b6dc651 | 362 | %patch2 -p1 |
74f487bf | 363 | |
a234bf88 ER |
364 | # Change the default theme |
365 | sed -i -e 's/fade-in/charge/g' src/plymouthd.defaults | |
366 | ||
74f487bf | 367 | %build |
74f487bf | 368 | %configure \ |
73566194 JR |
369 | %{__enable_disable drm_intel libdrm_intel} \ |
370 | %{__enable_disable drm_radeon libdrm_radeon} \ | |
371 | %{__enable_disable drm_nouveau libdrm_nouveau} \ | |
372 | %{__enable_disable kms libkms} \ | |
95b39a2c | 373 | --disable-silent-rules \ |
74f487bf | 374 | --disable-tests \ |
a7161eec | 375 | --disable-gdm-transition \ |
95b39a2c JB |
376 | --enable-systemd-integration \ |
377 | --enable-tracing \ | |
ef9b3715 | 378 | --without-rhgb-compat-link \ |
c925bae7 JR |
379 | --with-background-start-color-stop=0x009431 \ |
380 | --with-background-end-color-stop=0x006300 \ | |
381 | --with-background-color=0x00c663 \ | |
95b39a2c | 382 | --with-logo=%{_pixmapsdir}/plymouth-logo.png \ |
c925bae7 | 383 | --with-release-file=/etc/os-release \ |
74f487bf PZ |
384 | --with-system-root-install |
385 | ||
386 | %{__make} | |
387 | ||
388 | %install | |
389 | rm -rf $RPM_BUILD_ROOT | |
61d42f3e | 390 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir},%{_pixmapsdir},%{systemdtmpfilesdir}} |
ac730aad | 391 | |
74f487bf PZ |
392 | %{__make} install \ |
393 | DESTDIR=$RPM_BUILD_ROOT | |
394 | ||
0be1f6b6 | 395 | %{__mv} $RPM_BUILD_ROOT/%{_lib}/lib*.a $RPM_BUILD_ROOT%{_libdir} |
61d42f3e JR |
396 | ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/libply.so.*.*.*) $RPM_BUILD_ROOT%{_libdir}/libply.so |
397 | ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/libply-splash-core.so.*.*.*) $RPM_BUILD_ROOT%{_libdir}/libply-splash-core.so | |
398 | %{__rm} $RPM_BUILD_ROOT/%{_lib}/libply{,-splash-core}.so | |
399 | ||
a234bf88 ER |
400 | install -d $RPM_BUILD_ROOT%{_localstatedir}/lib/plymouth |
401 | cp -p %{SOURCE4} $RPM_BUILD_ROOT%{_datadir}/plymouth/default-boot-duration | |
402 | > $RPM_BUILD_ROOT%{_localstatedir}/lib/plymouth/boot-duration | |
403 | ||
404 | # FC: Add charge, our new default | |
405 | install -d $RPM_BUILD_ROOT%{_datadir}/plymouth/themes/charge | |
406 | cp %{SOURCE3} $RPM_BUILD_ROOT%{_datadir}/plymouth/themes/charge | |
407 | cp $RPM_BUILD_ROOT%{_datadir}/plymouth/themes/glow/{box,bullet,entry,lock}.png $RPM_BUILD_ROOT%{_datadir}/plymouth/themes/charge | |
408 | ||
a234bf88 | 409 | # FC: Drop glow, it's not very Fedora-y |
8f26705c | 410 | %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/plymouth/themes/glow |
a234bf88 ER |
411 | |
412 | # FC: Override plymouth-update-initrd to work dracut or mkinitrd | |
413 | cp -p %{SOURCE6} $RPM_BUILD_ROOT%{_libdir}/plymouth/plymouth-update-initrd | |
414 | ||
415 | # FC: Add compat script for upgrades | |
416 | install -p %{SOURCE5} $RPM_BUILD_ROOT%{_sbindir} | |
417 | ||
61d42f3e | 418 | %{__rm} $RPM_BUILD_ROOT{/%{_lib},%{_libdir}}/*.la \ |
0be1f6b6 JR |
419 | $RPM_BUILD_ROOT%{_libdir}/plymouth/*.{a,la} \ |
420 | $RPM_BUILD_ROOT%{_libdir}/plymouth/renderers/*.{a,la} | |
74f487bf PZ |
421 | |
422 | # Temporary symlink until rc.sysinit is fixed | |
95b39a2c | 423 | ln -sf /bin/plymouth $RPM_BUILD_ROOT%{_bindir}/plymouth |
74f487bf PZ |
424 | |
425 | install -d $RPM_BUILD_ROOT%{_localstatedir}/lib/plymouth | |
eab8ea45 | 426 | |
a234bf88 ER |
427 | cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_pixmapsdir}/plymouth-logo.png |
428 | cp -p %{SOURCE2} $RPM_BUILD_ROOT%{systemdtmpfilesdir}/%{name}.conf | |
74f487bf | 429 | |
ac730aad JR |
430 | cp -p %{SOURCE7} $RPM_BUILD_ROOT%{systemdunitdir}/systemd-ask-password-plymouth.path |
431 | cp -p %{SOURCE8} $RPM_BUILD_ROOT%{systemdunitdir}/systemd-ask-password-plymouth.service | |
432 | ||
433 | # install plymouth services for targets | |
434 | # http://cgit.freedesktop.org/systemd/systemd/commit/?id=26cbf29c52a36b6ad9d1ccc16d8f7adccefeddca | |
435 | install -d $RPM_BUILD_ROOT%{systemdunitdir}/{halt,kexec,poweroff,reboot,sysinit,multi-user}.target.wants | |
436 | ln -sf ../plymouth-start.service $RPM_BUILD_ROOT%{systemdunitdir}/sysinit.target.wants/plymouth-start.service | |
437 | ln -sf ../plymouth-read-write.service $RPM_BUILD_ROOT%{systemdunitdir}/sysinit.target.wants/plymouth-read-write.service | |
438 | ln -sf ../plymouth-quit.service $RPM_BUILD_ROOT%{systemdunitdir}/multi-user.target.wants/plymouth-quit.service | |
439 | ln -sf ../plymouth-quit-wait.service $RPM_BUILD_ROOT%{systemdunitdir}/multi-user.target.wants/plymouth-quit-wait.service | |
440 | ln -sf ../plymouth-reboot.service $RPM_BUILD_ROOT%{systemdunitdir}/reboot.target.wants/plymouth-reboot.service | |
441 | ln -sf ../plymouth-kexec.service $RPM_BUILD_ROOT%{systemdunitdir}/kexec.target.wants/plymouth-kexec.service | |
442 | ln -sf ../plymouth-poweroff.service $RPM_BUILD_ROOT%{systemdunitdir}/poweroff.target.wants/plymouth-poweroff.service | |
443 | ln -sf ../plymouth-halt.service $RPM_BUILD_ROOT%{systemdunitdir}/halt.target.wants/plymouth-halt.service | |
444 | ||
74f487bf PZ |
445 | %clean |
446 | rm -rf $RPM_BUILD_ROOT | |
447 | ||
9e3b126a JR |
448 | %post |
449 | %systemd_reload | |
450 | ||
74f487bf PZ |
451 | %postun |
452 | if [ $1 -eq 0 ]; then | |
7eb37361 | 453 | rm -f %{_libdir}/plymouth/default.so |
74f487bf | 454 | fi |
9e3b126a | 455 | %systemd_reload |
74f487bf | 456 | |
a234bf88 ER |
457 | %post core-libs -p /sbin/ldconfig |
458 | %postun core-libs -p /sbin/ldconfig | |
459 | %post graphics-libs -p /sbin/ldconfig | |
460 | %postun graphics-libs -p /sbin/ldconfig | |
74f487bf | 461 | |
74f487bf PZ |
462 | %files |
463 | %defattr(644,root,root,755) | |
95b39a2c | 464 | %doc AUTHORS README TODO |
8f26705c | 465 | %attr(755,root,root) %{_bindir}/plymouth |
b7ea056a | 466 | %dir %{_sysconfdir}/plymouth |
7eb37361 ER |
467 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/plymouth/plymouthd.conf |
468 | %{_mandir}/man8/plymouth.8* | |
61d42f3e JR |
469 | %attr(755,root,root) /bin/plymouth |
470 | %attr(755,root,root) /sbin/plymouthd | |
4d0be99b | 471 | %attr(755,root,root) %{_libdir}/plymouth/details.so |
4d0be99b | 472 | %attr(755,root,root) %{_libdir}/plymouth/text.so |
a234bf88 ER |
473 | %attr(755,root,root) %{_libdir}/plymouth/renderers/drm.so |
474 | %attr(755,root,root) %{_libdir}/plymouth/renderers/frame-buffer.so | |
8f26705c JB |
475 | %dir %{_datadir}/plymouth |
476 | %dir %{_datadir}/plymouth/themes | |
477 | %dir %{_datadir}/plymouth/themes/details | |
478 | %dir %{_datadir}/plymouth/themes/text | |
479 | %{_datadir}/plymouth/plymouthd.defaults | |
480 | %{_datadir}/plymouth/default-boot-duration | |
a234bf88 ER |
481 | %{_datadir}/plymouth/themes/details/details.plymouth |
482 | %{_datadir}/plymouth/themes/text/text.plymouth | |
8f26705c | 483 | %{_pixmapsdir}/plymouth-logo.png |
a234bf88 | 484 | %{systemdtmpfilesdir}/%{name}.conf |
8f26705c JB |
485 | %dir %{_localstatedir}/lib/plymouth |
486 | %ghost %{_localstatedir}/lib/plymouth/boot-duration | |
74f487bf PZ |
487 | %{_localstatedir}/run/plymouth |
488 | %{_localstatedir}/spool/plymouth | |
ac730aad JR |
489 | |
490 | %{systemdunitdir}/plymouth-halt.service | |
491 | %{systemdunitdir}/plymouth-kexec.service | |
492 | %{systemdunitdir}/plymouth-poweroff.service | |
493 | %{systemdunitdir}/plymouth-quit-wait.service | |
494 | %{systemdunitdir}/plymouth-quit.service | |
495 | %{systemdunitdir}/plymouth-read-write.service | |
496 | %{systemdunitdir}/plymouth-reboot.service | |
497 | %{systemdunitdir}/plymouth-start.service | |
0fe451a5 | 498 | %{systemdunitdir}/plymouth-switch-root.service |
ac730aad JR |
499 | %{systemdunitdir}/systemd-ask-password-plymouth.path |
500 | %{systemdunitdir}/systemd-ask-password-plymouth.service | |
501 | %{systemdunitdir}/halt.target.wants/plymouth-halt.service | |
7f89b38c | 502 | %dir %{systemdunitdir}/initrd-switch-root.target.wants |
0fe451a5 | 503 | %{systemdunitdir}/initrd-switch-root.target.wants/plymouth-switch-root.service |
ac730aad JR |
504 | %{systemdunitdir}/kexec.target.wants/plymouth-kexec.service |
505 | %{systemdunitdir}/multi-user.target.wants/plymouth-quit.service | |
506 | %{systemdunitdir}/multi-user.target.wants/plymouth-quit-wait.service | |
507 | %{systemdunitdir}/poweroff.target.wants/plymouth-poweroff.service | |
508 | %{systemdunitdir}/reboot.target.wants/plymouth-reboot.service | |
509 | %{systemdunitdir}/sysinit.target.wants/plymouth-read-write.service | |
510 | %{systemdunitdir}/sysinit.target.wants/plymouth-start.service | |
74f487bf | 511 | |
a234bf88 | 512 | %files core-libs |
74f487bf | 513 | %defattr(644,root,root,755) |
61d42f3e JR |
514 | %attr(755,root,root) /%{_lib}/libply.so.*.*.* |
515 | %attr(755,root,root) %ghost /%{_lib}/libply.so.2 | |
516 | %attr(755,root,root) /%{_lib}/libply-splash-core.so.*.*.* | |
517 | %attr(755,root,root) %ghost /%{_lib}/libply-splash-core.so.2 | |
7eb37361 ER |
518 | %attr(755,root,root) %{_libdir}/libply-boot-client.so.*.*.* |
519 | %attr(755,root,root) %ghost %{_libdir}/libply-boot-client.so.2 | |
a234bf88 | 520 | %dir %{_libdir}/plymouth |
8f26705c | 521 | %dir %{_libdir}/plymouth/renderers |
a234bf88 ER |
522 | |
523 | %files graphics-libs | |
524 | %defattr(644,root,root,755) | |
7eb37361 ER |
525 | %attr(755,root,root) %{_libdir}/libply-splash-graphics.so.*.*.* |
526 | %attr(755,root,root) %ghost %{_libdir}/libply-splash-graphics.so.2 | |
7eb37361 | 527 | %attr(755,root,root) %{_libdir}/plymouth/renderers/x11.so |
74f487bf | 528 | |
95b39a2c JB |
529 | %files devel |
530 | %defattr(644,root,root,755) | |
61d42f3e | 531 | %attr(755,root,root) %{_libdir}/libply.so |
95b39a2c | 532 | %attr(755,root,root) %{_libdir}/libply-boot-client.so |
61d42f3e | 533 | %attr(755,root,root) %{_libdir}/libply-splash-core.so |
95b39a2c JB |
534 | %attr(755,root,root) %{_libdir}/libply-splash-graphics.so |
535 | %{_includedir}/plymouth-1 | |
536 | %{_pkgconfigdir}/ply-boot-client.pc | |
537 | %{_pkgconfigdir}/ply-splash-core.pc | |
538 | %{_pkgconfigdir}/ply-splash-graphics.pc | |
539 | ||
0be1f6b6 JR |
540 | %files static |
541 | %defattr(644,root,root,755) | |
542 | %attr(755,root,root) %{_libdir}/libply.a | |
543 | %attr(755,root,root) %{_libdir}/libply-boot-client.a | |
544 | %attr(755,root,root) %{_libdir}/libply-splash-core.a | |
545 | %attr(755,root,root) %{_libdir}/libply-splash-graphics.a | |
546 | ||
74f487bf PZ |
547 | %files scripts |
548 | %defattr(644,root,root,755) | |
a234bf88 ER |
549 | %attr(755,root,root) %{_sbindir}/plymouth-set-default-plugin |
550 | %attr(755,root,root) %{_sbindir}/plymouth-set-default-theme | |
551 | %attr(755,root,root) %{_libdir}/plymouth/plymouth-generate-initrd | |
552 | %attr(755,root,root) %{_libdir}/plymouth/plymouth-populate-initrd | |
553 | %attr(755,root,root) %{_libdir}/plymouth/plymouth-update-initrd | |
554 | ||
8f26705c JB |
555 | %files plugin-fade-throbber |
556 | %defattr(644,root,root,755) | |
557 | %attr(755,root,root) %{_libdir}/plymouth/fade-throbber.so | |
558 | ||
a234bf88 ER |
559 | %files plugin-label |
560 | %defattr(644,root,root,755) | |
561 | %attr(755,root,root) %{_libdir}/plymouth/label.so | |
562 | ||
8f26705c | 563 | %files plugin-script |
a234bf88 | 564 | %defattr(644,root,root,755) |
8f26705c JB |
565 | %attr(755,root,root) %{_libdir}/plymouth/script.so |
566 | ||
567 | %files plugin-space-flares | |
568 | %defattr(644,root,root,755) | |
569 | %attr(755,root,root) %{_libdir}/plymouth/space-flares.so | |
570 | ||
571 | %files plugin-throbgress | |
572 | %defattr(644,root,root,755) | |
573 | %attr(755,root,root) %{_libdir}/plymouth/throbgress.so | |
574 | ||
575 | %files plugin-two-step | |
576 | %defattr(644,root,root,755) | |
577 | %attr(755,root,root) %{_libdir}/plymouth/two-step.so | |
578 | ||
579 | %files system-theme | |
580 | %defattr(644,root,root,755) | |
581 | ||
582 | %files theme-charge | |
583 | %defattr(644,root,root,755) | |
584 | %dir %{_datadir}/plymouth/themes/charge | |
585 | %{_datadir}/plymouth/themes/charge/*.png | |
586 | %{_datadir}/plymouth/themes/charge/charge.plymouth | |
a234bf88 ER |
587 | |
588 | %files theme-fade-in | |
589 | %defattr(644,root,root,755) | |
590 | %dir %{_datadir}/plymouth/themes/fade-in | |
591 | %{_datadir}/plymouth/themes/fade-in/bullet.png | |
592 | %{_datadir}/plymouth/themes/fade-in/entry.png | |
593 | %{_datadir}/plymouth/themes/fade-in/lock.png | |
594 | %{_datadir}/plymouth/themes/fade-in/star.png | |
595 | %{_datadir}/plymouth/themes/fade-in/fade-in.plymouth | |
596 | ||
597 | %files theme-spinner | |
598 | %defattr(644,root,root,755) | |
599 | %dir %{_datadir}/plymouth/themes/spinner | |
600 | %{_datadir}/plymouth/themes/spinner/*.png | |
601 | %{_datadir}/plymouth/themes/spinner/spinner.plymouth | |
602 | ||
a234bf88 ER |
603 | %files theme-spinfinity |
604 | %defattr(644,root,root,755) | |
605 | %dir %{_datadir}/plymouth/themes/spinfinity | |
606 | %{_datadir}/plymouth/themes/spinfinity/box.png | |
607 | %{_datadir}/plymouth/themes/spinfinity/bullet.png | |
608 | %{_datadir}/plymouth/themes/spinfinity/entry.png | |
609 | %{_datadir}/plymouth/themes/spinfinity/lock.png | |
610 | %{_datadir}/plymouth/themes/spinfinity/throbber-[0-3][0-9].png | |
611 | %{_datadir}/plymouth/themes/spinfinity/spinfinity.plymouth | |
612 | ||
a234bf88 ER |
613 | %files theme-solar |
614 | %defattr(644,root,root,755) | |
615 | %dir %{_datadir}/plymouth/themes/solar | |
616 | %{_datadir}/plymouth/themes/solar/*.png | |
617 | %{_datadir}/plymouth/themes/solar/solar.plymouth | |
618 | ||
a234bf88 ER |
619 | %files theme-script |
620 | %defattr(644,root,root,755) | |
621 | %dir %{_datadir}/plymouth/themes/script | |
622 | %{_datadir}/plymouth/themes/script/*.png | |
623 | %{_datadir}/plymouth/themes/script/script.script | |
624 | %{_datadir}/plymouth/themes/script/script.plymouth |