forked from pool/plymouth
Accepting request 822130 from home:qzhao:branches:Base:System
Update to version plymouth-0.9.5+git20200709+ab986a9: main: Don't bail out of load_settings if Theme is missing; main: switch log file when switching mode; two-step: Center message text within labels if labels are centered; Add CI pipeline for Plymouth; Apply suggestion to .gitlab-ci.yml; configure: bump to 0.9.6; configure: quiet a warning; po: drop intltool usage; docs: fix man page cross-reference; Rename 'percent_done' to 'fraction_done' OBS-URL: https://build.opensuse.org/request/show/822130 OBS-URL: https://build.opensuse.org/package/show/Base:System/plymouth?expand=0&rev=264
This commit is contained in:
583
plymouth.spec
583
plymouth.spec
@@ -16,56 +16,43 @@
|
||||
#
|
||||
|
||||
|
||||
# plymouth's X11 renderer adds many GTK3 packages to the build cycle,
|
||||
# it is not used in the production environment.
|
||||
%bcond_with x11_renderer
|
||||
%bcond_with fedora_theme
|
||||
|
||||
%global soversion 5
|
||||
%define plymouthdaemon_execdir %{_sbindir}
|
||||
%define plymouthclient_execdir %{_bindir}
|
||||
%define plymouth_libdir %{_libdir}
|
||||
%define plymouth_initrd_file /boot/initrd-plymouth.img
|
||||
%global git_version 20200709+ab986a9
|
||||
%global so_version 5
|
||||
|
||||
Name: plymouth
|
||||
Version: 0.9.5+git20190908+3abfab2
|
||||
Version: 0.9.5+git%{git_version}
|
||||
Release: 0
|
||||
Summary: Graphical Boot Animation and Logger
|
||||
License: GPL-2.0-or-later
|
||||
Group: System/Base
|
||||
URL: http://www.freedesktop.org/wiki/Software/Plymouth
|
||||
|
||||
URL: https://www.freedesktop.org/wiki/Software/Plymouth
|
||||
Source0: %{name}-%{version}.tar.xz
|
||||
Source1: boot-duration
|
||||
# PATCH-FIX-OPENSUSE plymouth-dracut-path.patch tittiatcoke@gmail.com -- Prefix is /usr/sbin and /usr/bin
|
||||
Patch0: plymouth-dracut-path.patch
|
||||
# PATCH-FIX-OPENSUSE plymouth-some-greenish-openSUSE-colors.patch bnc#886148 fcrozat@suse.com -- To use suse colors in tribar.
|
||||
Patch1: plymouth-some-greenish-openSUSE-colors.patch
|
||||
# PATCH-FIX-OPENSUSE plymouth-correct-runtime-dir.patch tittiatcoke@gmail.com -- Make sure the runtime directory is /run and not /var/run
|
||||
Patch2: plymouth-correct-runtime-dir.patch
|
||||
# PATCH-FIX-UPSTREAM plymouth-manpages.patch bnc#871419 idoenmez@suse.de -- Fix man page installation
|
||||
Patch3: plymouth-manpages.patch
|
||||
# PATCH-FIX-OPENSUSE plymouth-avoid-umount-hanging-shutdown.patch bnc#1105688, bnc#1129386, bnc#1134660 qzhao@opensuse.org -- Drop grantpt() to avoid system failed to unmount /var during shutdown.
|
||||
Patch4: plymouth-avoid-umount-hanging-shutdown.patch
|
||||
|
||||
Patch0: plymouth-some-greenish-openSUSE-colors.patch
|
||||
# PATCH-FIX-OPENSUSE plymouth-manpages.patch bnc#871419 idoenmez@suse.de -- Fix man page installation
|
||||
Patch1: plymouth-manpages.patch
|
||||
# PATCH-FIX-OPENSUSE plymouth-disable-fedora-logo.patch qzhao@opensuse.org -- Disable the fedora logo reference which is not in openSUSE.
|
||||
Patch2: plymouth-disable-fedora-logo.patch
|
||||
# PATCH-FIX-OPENSUSE plymouth-disable-fedora-bizcom-theme.patch qzhao@opensuse.org -- Disable to compile fedora related themes.
|
||||
Patch3: plymouth-disable-fedora-bizcom-theme.patch
|
||||
# PATCH-FIX-OPENSUSE plymouth-ignore-serial-console.patch qzhao@opensuse.org bnc#1164123 -- Don't output in serial console for openQA need to take serial in the test, and yast-installation prgram has a feature to install system through it.
|
||||
Patch4: plymouth-ignore-serial-console.patch
|
||||
# PATCH-FIX-UPSTREAM 0001-Add-label-ft-plugin.patch boo#959986 fvogt@suse.com -- add ability to output text in initrd needed for encryption.
|
||||
Patch1000: 0001-Add-label-ft-plugin.patch
|
||||
# PATCH-FIX-UPSTREAM 0002-Install-label-ft-plugin-into-initrd-if-available.patch boo#959986 fvogt@suse.com -- add ability to output text in initrd needed for encryption.
|
||||
Patch1001: 0002-Install-label-ft-plugin-into-initrd-if-available.patch
|
||||
# PATCH-FIX-UPSTREAM 0003-fix_null_deref.patch boo#959986 fvogt@suse.com -- add ability to output text in initrd needed for encryption.
|
||||
Patch1002: 0003-fix_null_deref.patch
|
||||
|
||||
BuildRequires: automake
|
||||
BuildRequires: docbook-xsl-stylesheets
|
||||
BuildRequires: gcc
|
||||
BuildRequires: git
|
||||
BuildRequires: kernel-headers
|
||||
BuildRequires: intltool
|
||||
BuildRequires: libtool
|
||||
BuildRequires: libxslt
|
||||
BuildRequires: module-init-tools
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: suse-module-tools
|
||||
# needed for systemd-tty-ask-password-agent
|
||||
BuildRequires: intltool
|
||||
BuildRequires: update-desktop-files
|
||||
BuildRequires: xz
|
||||
BuildRequires: pkgconfig(cairo)
|
||||
@@ -78,15 +65,18 @@ BuildRequires: pkgconfig(systemd) >= 186
|
||||
%if %{with x11_renderer}
|
||||
BuildRequires: pkgconfig(gtk+-3.0) >= 3.14.0
|
||||
%endif
|
||||
|
||||
%if 0%{suse_version} >= 1550
|
||||
# regenerate_initrd_post moved to rpm-config-SUSE:initrd.macros
|
||||
BuildRequires: rpm-config-SUSE >= 0.g11
|
||||
%else
|
||||
BuildRequires: suse-module-tools
|
||||
%endif
|
||||
Recommends: %{name}-lang
|
||||
Requires: %{name}-branding
|
||||
Requires: gnu-unifont-bitmap-fonts
|
||||
Requires: systemd >= 186
|
||||
Requires(post): coreutils
|
||||
Requires(post): plymouth-scripts = %{version}
|
||||
Requires(postun): coreutils
|
||||
Recommends: plymouth-plugin-label-ft
|
||||
Suggests: plymouth-plugin-label
|
||||
Provides: bootsplash = 3.5
|
||||
Obsoletes: bootsplash < 3.5
|
||||
@@ -99,36 +89,50 @@ place of the text messages that normally get shown. Text
|
||||
messages are instead redirected to a log file for viewing
|
||||
after boot.
|
||||
|
||||
%package -n libply-boot-client%{soversion}
|
||||
%package -n plymouth-branding-upstream
|
||||
Summary: Plymouth core library
|
||||
Group: System/Base
|
||||
Requires: %{name} = %{version}
|
||||
Provides: %{name}-branding = %{version}
|
||||
Conflicts: otherproviders(%{name}-branding)
|
||||
Supplements: packageand(%{name}:branding-upstream)
|
||||
BuildArch: noarch
|
||||
|
||||
%description -n plymouth-branding-upstream
|
||||
Plymouth provides an attractive graphical boot animation in
|
||||
place of the text messages that normally get shown. This
|
||||
package provides the upstream default configuration for plymouth.
|
||||
|
||||
%package -n libply-boot-client%{so_version}
|
||||
Summary: Plymouth core library
|
||||
Group: Development/Libraries/C and C++
|
||||
|
||||
%description -n libply-boot-client%{soversion}
|
||||
%description -n libply-boot-client%{so_version}
|
||||
This package contains the libply-boot-client library used by Plymouth.
|
||||
|
||||
%package -n libply-splash-core%{soversion}
|
||||
%package -n libply-splash-core%{so_version}
|
||||
Summary: Plymouth core library
|
||||
Group: Development/Libraries/C and C++
|
||||
|
||||
%description -n libply-splash-core%{soversion}
|
||||
%description -n libply-splash-core%{so_version}
|
||||
This package contains the libply-splash-core library
|
||||
used by graphical Plymouth splashes.
|
||||
|
||||
%package -n libply-splash-graphics%{soversion}
|
||||
%package -n libply-splash-graphics%{so_version}
|
||||
Summary: Plymouth graphics libraries
|
||||
Group: Development/Libraries/C and C++
|
||||
BuildRequires: libpng-devel
|
||||
|
||||
%description -n libply-splash-graphics%{soversion}
|
||||
%description -n libply-splash-graphics%{so_version}
|
||||
This package contains the libply-splash-graphics library
|
||||
used by graphical Plymouth splashes.
|
||||
|
||||
%package -n libply%{soversion}
|
||||
%package -n libply%{so_version}
|
||||
Summary: Plymouth core library
|
||||
Group: Development/Libraries/C and C++
|
||||
Requires: libply-boot-client%{soversion} = %{version}
|
||||
Requires: libply-boot-client%{so_version} = %{version}
|
||||
|
||||
%description -n libply%{soversion}
|
||||
%description -n libply%{so_version}
|
||||
This package contains the libply library used by Plymouth.
|
||||
|
||||
%package devel
|
||||
@@ -138,10 +142,10 @@ Requires: %{name} = %{version}
|
||||
%if %{with x11_renderer}
|
||||
Requires: %{name}-x11-renderer = %{version}
|
||||
%endif
|
||||
Requires: libply%{soversion} = %{version}
|
||||
Requires: libply-boot-client%{soversion} = %{version}
|
||||
Requires: libply-splash-core%{soversion} = %{version}
|
||||
Requires: libply-splash-graphics%{soversion} = %{version}
|
||||
Requires: libply%{so_version} = %{version}
|
||||
Requires: libply-boot-client%{so_version} = %{version}
|
||||
Requires: libply-splash-core%{so_version} = %{version}
|
||||
Requires: libply-splash-graphics%{so_version} = %{version}
|
||||
Requires: pkgconfig
|
||||
|
||||
%description devel
|
||||
@@ -157,24 +161,15 @@ Supplements: packageand(plymouth:dracut)
|
||||
%description dracut
|
||||
This package contains utilities that integrate dracut with Plymouth
|
||||
|
||||
%package x11-renderer
|
||||
Summary: Plymouth X11 renderer
|
||||
Group: System/Base
|
||||
Requires: %{name} = %{version}
|
||||
|
||||
%description x11-renderer
|
||||
This package provides the X11 renderer which allows to test plymouth
|
||||
behavior on environments with a valid DISPLAY.
|
||||
|
||||
%package scripts
|
||||
Summary: Plymouth related scripts
|
||||
Group: System/Base
|
||||
Requires: coreutils
|
||||
Requires: cpio
|
||||
Requires: awk
|
||||
Requires: dracut
|
||||
Requires: findutils
|
||||
Requires: gzip
|
||||
Requires: grep
|
||||
Requires: sed
|
||||
Requires(pre): %{name} = %{version}
|
||||
BuildArch: noarch
|
||||
|
||||
%description scripts
|
||||
This package contains scripts that help integrate Plymouth with
|
||||
@@ -183,7 +178,7 @@ the system.
|
||||
%package plugin-label
|
||||
Summary: Plymouth label plugin
|
||||
Group: System/Base
|
||||
Requires: libply-splash-graphics%{soversion} = %{version}
|
||||
Requires: libply-splash-graphics%{so_version} = %{version}
|
||||
|
||||
%description plugin-label
|
||||
This package contains the label control plugin for
|
||||
@@ -194,71 +189,19 @@ graphical boot splashes using pango and cairo.
|
||||
Summary: Plymouth FreeType label plugin
|
||||
Group: System/Base
|
||||
Requires: fontconfig
|
||||
Requires: libply-splash-graphics%{soversion} = %{version}
|
||||
Requires: libply-splash-graphics%{so_version} = %{version}
|
||||
|
||||
%description plugin-label-ft
|
||||
This package contains the label control plugin for
|
||||
Plymouth. It provides the ability to render text on
|
||||
graphical boot splashes using FreeTyoe
|
||||
|
||||
%package plugin-fade-throbber
|
||||
Summary: Plymouth "Fade-Throbber" plugin
|
||||
Group: System/Base
|
||||
Requires: libply%{soversion} = %{version}
|
||||
Requires: libply-splash-core%{soversion} = %{version}
|
||||
Requires: libply-splash-graphics%{soversion} = %{version}
|
||||
|
||||
%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-throbgress
|
||||
Summary: Plymouth "Throbgress" plugin
|
||||
Group: System/Base
|
||||
Requires: %{name}-plugin-label = %{version}
|
||||
Requires: libply%{soversion} = %{version}
|
||||
Requires: libply-splash-core%{soversion} = %{version}
|
||||
Requires: libply-splash-graphics%{soversion} = %{version}
|
||||
|
||||
%description plugin-throbgress
|
||||
This package contains the "throbgress" boot splash plugin for
|
||||
Plymouth. It features a centered logo and animated spinner that
|
||||
spins repeatedly while a progress bar advances at the bottom of
|
||||
the screen.
|
||||
|
||||
%package plugin-space-flares
|
||||
Summary: Plymouth "space-flares" plugin
|
||||
Group: System/Base
|
||||
Requires: %{name}-plugin-label = %{version}
|
||||
Requires: libply%{soversion} = %{version}
|
||||
Requires: libply-splash-core%{soversion} = %{version}
|
||||
Requires: libply-splash-graphics%{soversion} = %{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-two-step
|
||||
Summary: Plymouth "two-step" plugin
|
||||
Group: System/Base
|
||||
Requires: libply%{soversion} = %{version}
|
||||
Requires: libply-splash-core%{soversion} = %{version}
|
||||
Requires: libply-splash-graphics%{soversion} = %{version}
|
||||
Requires: plymouth-plugin-label = %{version}
|
||||
|
||||
%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.
|
||||
graphical boot splashes using FreeType
|
||||
|
||||
%package plugin-script
|
||||
Summary: Plymouth "script" plugin
|
||||
Group: System/Base
|
||||
Requires: libply%{soversion} = %{version}
|
||||
Requires: libply-splash-core%{soversion} = %{version}
|
||||
Requires: libply-splash-graphics%{soversion} = %{version}
|
||||
Requires: libply%{so_version} = %{version}
|
||||
Requires: libply-splash-core%{so_version} = %{version}
|
||||
Requires: libply-splash-graphics%{so_version} = %{version}
|
||||
|
||||
%description plugin-script
|
||||
This package contains the "script" boot splash plugin for
|
||||
@@ -269,9 +212,9 @@ boot splash themes.
|
||||
%package plugin-tribar
|
||||
Summary: Plymouth "script" plugin
|
||||
Group: System/Base
|
||||
Requires: libply%{soversion} = %{version}
|
||||
Requires: libply-splash-core%{soversion} = %{version}
|
||||
Requires: libply-splash-graphics%{soversion} = %{version}
|
||||
Requires: libply%{so_version} = %{version}
|
||||
Requires: libply-splash-core%{so_version} = %{version}
|
||||
Requires: libply-splash-graphics%{so_version} = %{version}
|
||||
|
||||
%description plugin-tribar
|
||||
This package contains the "tribar" boot splash plugin for
|
||||
@@ -279,23 +222,48 @@ Plymouth. It features an extensible, scriptable boot splash
|
||||
language that simplifies the process of designing custom
|
||||
boot splash themes.
|
||||
|
||||
%package theme-fade-in
|
||||
Summary: Plymouth "Fade-In" theme
|
||||
%package plugin-two-step
|
||||
Summary: Plymouth "two-step" plugin
|
||||
Group: System/Base
|
||||
Requires: %{name}-plugin-fade-throbber = %{version}
|
||||
Requires: libply%{so_version} = %{version}
|
||||
Requires: libply-splash-core%{so_version} = %{version}
|
||||
Requires: libply-splash-graphics%{so_version} = %{version}
|
||||
Requires: plymouth-plugin-label = %{version}
|
||||
|
||||
%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 theme-bgrt
|
||||
Summary: Plymouth "bgrt" theme
|
||||
Group: System/Base
|
||||
Requires: %{name}-plugin-two-step = %{version}
|
||||
Requires: %{name}-theme-spinner = %{version}
|
||||
Requires(post): %{name}-scripts
|
||||
BuildArch: noarch
|
||||
|
||||
%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.
|
||||
%description theme-bgrt
|
||||
This package contains the "bgrt" boot splash theme for
|
||||
Plymouth.
|
||||
|
||||
%package theme-script
|
||||
Summary: Plymouth "Script" theme
|
||||
Group: System/Base
|
||||
Requires: %{name}-plugin-script = %{version}
|
||||
Requires(post): %{name}-scripts
|
||||
BuildArch: noarch
|
||||
|
||||
%description theme-script
|
||||
This package contains the "script" boot splash theme for
|
||||
Plymouth. It is a simple example theme the uses the "script"
|
||||
plugin.
|
||||
|
||||
%package theme-spinfinity
|
||||
Summary: Plymouth "Spinfinity" theme
|
||||
Group: System/Base
|
||||
Requires: %{name}-plugin-throbgress = %{version}
|
||||
Requires: %{name}-plugin-two-step = %{version}
|
||||
Requires(post): %{name}-scripts
|
||||
Requires(pre): %{name}
|
||||
BuildArch: noarch
|
||||
@@ -316,17 +284,6 @@ BuildArch: noarch
|
||||
This package contains the "spinner" boot splash theme for
|
||||
Plymouth.
|
||||
|
||||
%package theme-solar
|
||||
Summary: Plymouth "Solar" theme
|
||||
Group: System/Base
|
||||
Requires: %{name}-plugin-space-flares = %{version}
|
||||
Requires(post): %{name}-scripts
|
||||
BuildArch: noarch
|
||||
|
||||
%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-tribar
|
||||
Summary: Plymouth "Tribar" theme
|
||||
Group: System/Base
|
||||
@@ -338,42 +295,82 @@ BuildArch: noarch
|
||||
This package contains the "Tribar" boot splash theme for
|
||||
Plymouth
|
||||
|
||||
%package theme-script
|
||||
Summary: Plymouth "Script" theme
|
||||
%if %{with x11_renderer}
|
||||
%package x11-renderer
|
||||
Summary: Plymouth X11 renderer
|
||||
Group: System/Base
|
||||
Requires: %{name}-plugin-script = %{version}
|
||||
Requires: %{name} = %{version}
|
||||
|
||||
%description x11-renderer
|
||||
This package provides the X11 renderer which allows to test Plymouth
|
||||
behavior on environments with a valid DISPLAY.
|
||||
%endif
|
||||
|
||||
%if %{with fedora_theme}
|
||||
%package plugin-fade-throbber
|
||||
Summary: Plymouth "Fade-Throbber" plugin
|
||||
Group: System/Base
|
||||
Requires: libply%{so_version} = %{version}
|
||||
Requires: libply-splash-core%{so_version} = %{version}
|
||||
Requires: libply-splash-graphics%{so_version} = %{version}
|
||||
|
||||
%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 theme-fade-in
|
||||
Summary: Plymouth "Fade-In" theme
|
||||
Group: System/Base
|
||||
Requires: %{name}-plugin-fade-throbber = %{version}
|
||||
Requires: plymouth-plugin-label = %{version}
|
||||
Requires(post): %{name}-scripts
|
||||
BuildArch: noarch
|
||||
|
||||
%description theme-script
|
||||
This package contains the "script" boot splash theme for
|
||||
Plymouth. It is a simple example theme the uses the "script"
|
||||
plugin.
|
||||
%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-bgrt
|
||||
Summary: Plymouth "bgrt" theme
|
||||
# Uses images from spinner theme
|
||||
%package theme-glow
|
||||
Summary: Plymouth "glow" theme
|
||||
Group: System/Base
|
||||
Requires: %{name}-plugin-two-step = %{version}
|
||||
Requires: %{name}-theme-spinner = %{version}
|
||||
Requires: %{name}-plugin-tribar = %{version}
|
||||
Requires(post): %{name}-scripts
|
||||
BuildArch: noarch
|
||||
|
||||
%description theme-bgrt
|
||||
This package contains the "bgrt" boot splash theme for
|
||||
Plymouth.
|
||||
%description theme-glow
|
||||
This package contains the "glow" boot splash theme for
|
||||
Plymouth
|
||||
|
||||
%package plugin-space-flares
|
||||
Summary: Plymouth "space-flares" plugin
|
||||
Group: System/Base
|
||||
Requires: %{name}-plugin-label = %{version}
|
||||
Requires: libply%{so_version} = %{version}
|
||||
Requires: libply-splash-core%{so_version} = %{version}
|
||||
Requires: libply-splash-graphics%{so_version} = %{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 theme-solar
|
||||
Summary: Plymouth "Solar" theme
|
||||
Group: System/Base
|
||||
Requires: %{name}-plugin-space-flares = %{version}
|
||||
Requires(post): %{name}-scripts
|
||||
BuildArch: noarch
|
||||
|
||||
%description theme-solar
|
||||
This package contains the "Solar" boot splash theme for
|
||||
Plymouth. It features a blue flamed sun with animated solar flares.
|
||||
%endif
|
||||
|
||||
%prep
|
||||
%autosetup -S git
|
||||
autoreconf -ivf -Wno-portabilty
|
||||
# replace builddate with patch0date
|
||||
sed -i "s/__DATE__/\"$(stat -c %%y %{_sourcedir}/%{name}.changes)\"/" src/main.c
|
||||
# Change the default theme
|
||||
%if 0%{?is_opensuse}
|
||||
sed -i -e 's/spinner/bgrt/g' src/plymouthd.defaults
|
||||
%else
|
||||
sed -i -e 's/spinner/SLE/g' src/plymouthd.defaults
|
||||
%endif
|
||||
%setup -q
|
||||
%autopatch -p1
|
||||
autoreconf -ivf
|
||||
|
||||
%build
|
||||
%configure \
|
||||
@@ -381,13 +378,7 @@ sed -i -e 's/spinner/SLE/g' src/plymouthd.defaults
|
||||
--enable-tracing \
|
||||
--disable-silent-rules \
|
||||
--disable-static \
|
||||
--disable-gdm-transition \
|
||||
--disable-upstart-monitoring \
|
||||
--disable-tests \
|
||||
--disable-libkms \
|
||||
%if %{without x11_renderer}
|
||||
--disable-gtk \
|
||||
%endif
|
||||
--with-release-file=%{_sysconfdir}/os-release \
|
||||
--with-boot-tty=/dev/tty7 \
|
||||
--with-shutdown-tty=/dev/tty1 \
|
||||
@@ -395,34 +386,36 @@ sed -i -e 's/spinner/SLE/g' src/plymouthd.defaults
|
||||
--with-background-end-color-stop=0x4EA65C \
|
||||
--with-background-color=0x3391cd \
|
||||
--without-rhgb-compat-link \
|
||||
--without-system-root-install
|
||||
--without-logo \
|
||||
--without-system-root-install \
|
||||
%if %{without x11_renderer}
|
||||
--disable-gtk
|
||||
%endif
|
||||
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
%make_install
|
||||
rm -f %{buildroot}/%{_bindir}/rhgb-client
|
||||
|
||||
#Link the plymouth client binary also to /bin until the move to /usr is completed
|
||||
mkdir %{buildroot}/bin
|
||||
(cd %{buildroot}/bin; ln -s ..%{_bindir}/plymouth)
|
||||
|
||||
# Glow isn't quite ready for primetime
|
||||
rm -rf %{buildroot}%{_datadir}/plymouth/glow/
|
||||
rm -rf %{buildroot}%{_datadir}/plymouth/themes/glow/
|
||||
rm -f %{buildroot}%{_libdir}/plymouth/glow.so
|
||||
|
||||
find %{buildroot} -type f -name "*.la" -delete -print
|
||||
|
||||
# Create necessary directories:
|
||||
mkdir -p %{buildroot}%{_localstatedir}/lib/plymouth
|
||||
mkdir -p %{buildroot}/run/plymouth
|
||||
mkdir -p %{buildroot}%{_localstatedir}/log
|
||||
touch %{buildroot}%{_localstatedir}/log/boot.log
|
||||
touch %{buildroot}%{_localstatedir}/spool/plymouth/boot.log
|
||||
cp $RPM_SOURCE_DIR/boot-duration %{buildroot}%{_datadir}/plymouth/default-boot-duration
|
||||
cp $RPM_SOURCE_DIR/boot-duration %{buildroot}%{_localstatedir}/lib/plymouth
|
||||
|
||||
# Copy upstream's default config file to system and change release settings:
|
||||
cp %{buildroot}/%{_datadir}/plymouth/plymouthd.defaults %{buildroot}/%{_sysconfdir}/plymouth/plymouthd.conf
|
||||
|
||||
# Link the plymouth client binary to /bin to fit display and emergency service requirement:
|
||||
mkdir %{buildroot}/bin
|
||||
(cd %{buildroot}/bin; ln -s ..%{_bindir}/plymouth)
|
||||
|
||||
# Create boot-duration file for recording boot info:
|
||||
touch %{buildroot}%{_datadir}/plymouth/default-boot-duration
|
||||
touch %{buildroot}%{_localstatedir}/lib/plymouth
|
||||
|
||||
# Remove temp files which produced during the compilation:
|
||||
find $RPM_BUILD_ROOT -name '*.la' -delete
|
||||
|
||||
%post
|
||||
%{?regenerate_initrd_post}
|
||||
if [ ! -e /.buildenv ]; then
|
||||
@@ -441,26 +434,29 @@ fi
|
||||
%posttrans
|
||||
%{?regenerate_initrd_posttrans}
|
||||
|
||||
%post -n libply-boot-client%{soversion} -p /sbin/ldconfig
|
||||
%postun -n libply-boot-client%{soversion} -p /sbin/ldconfig
|
||||
%post -n libply-splash-core%{soversion} -p /sbin/ldconfig
|
||||
%postun -n libply-splash-core%{soversion} -p /sbin/ldconfig
|
||||
%post -n libply-splash-graphics%{soversion} -p /sbin/ldconfig
|
||||
%postun -n libply-splash-graphics%{soversion} -p /sbin/ldconfig
|
||||
%post -n libply%{soversion} -p /sbin/ldconfig
|
||||
%postun -n libply%{soversion} -p /sbin/ldconfig
|
||||
%post theme-spinfinity
|
||||
if [ $1 -eq 1 ]; then
|
||||
set -x
|
||||
export LIB=%{_libdir}
|
||||
OTHEME="$(%{_sbindir}/plymouth-set-default-theme)"
|
||||
if [ "$OTHEME" = "text" ]; then
|
||||
if [ ! -e /.buildenv ]; then
|
||||
%{_sbindir}/plymouth-set-default-theme -R spinfinity
|
||||
else
|
||||
%{_sbindir}/plymouth-set-default-theme spinfinity
|
||||
fi
|
||||
fi
|
||||
%post -n libply-boot-client%{so_version} -p /sbin/ldconfig
|
||||
%postun -n libply-boot-client%{so_version} -p /sbin/ldconfig
|
||||
%post -n libply-splash-core%{so_version} -p /sbin/ldconfig
|
||||
%postun -n libply-splash-core%{so_version} -p /sbin/ldconfig
|
||||
%post -n libply-splash-graphics%{so_version} -p /sbin/ldconfig
|
||||
%postun -n libply-splash-graphics%{so_version} -p /sbin/ldconfig
|
||||
%post -n libply%{so_version} -p /sbin/ldconfig
|
||||
%postun -n libply%{so_version} -p /sbin/ldconfig
|
||||
|
||||
%postun theme-bgrt
|
||||
if [ $1 -eq 0 ]; then
|
||||
export LIB=%{_libdir}
|
||||
if [ "$(%{_sbindir}/plymouth-set-default-theme)" = "bgrt" ]; then
|
||||
%{_sbindir}/plymouth-set-default-theme -R --reset
|
||||
fi
|
||||
fi
|
||||
|
||||
%postun theme-script
|
||||
if [ $1 -eq 0 ]; then
|
||||
export LIB=%{_libdir}
|
||||
if [ "$(%{_sbindir}/plymouth-set-default-theme)" = "script" ]; then
|
||||
%{_sbindir}/plymouth-set-default-theme -R --reset
|
||||
fi
|
||||
fi
|
||||
|
||||
%postun theme-spinfinity
|
||||
@@ -471,20 +467,23 @@ if [ $1 -eq 0 ]; then
|
||||
fi
|
||||
fi
|
||||
|
||||
%post theme-fade-in
|
||||
if [ $1 -eq 1 ]; then
|
||||
set -x
|
||||
export LIB=%{_libdir}
|
||||
OTHEME="$(%{_sbindir}/plymouth-set-default-theme)"
|
||||
if [ "$OTHEME" = "text" ]; then
|
||||
if [ ! -e /.buildenv ]; then
|
||||
%{_sbindir}/plymouth-set-default-theme -R fade-in
|
||||
else
|
||||
%{_sbindir}/plymouth-set-default-theme fade-in
|
||||
fi
|
||||
fi
|
||||
%postun theme-spinner
|
||||
if [ $1 -eq 0 ]; then
|
||||
export LIB=%{_libdir}
|
||||
if [ "$(%{_sbindir}/plymouth-set-default-theme)" = "spinner" ]; then
|
||||
%{_sbindir}/plymouth-set-default-theme -R --reset
|
||||
fi
|
||||
fi
|
||||
|
||||
%postun theme-tribar
|
||||
if [ $1 -eq 0 ]; then
|
||||
export LIB=%{_libdir}
|
||||
if [ "$(%{_sbindir}/plymouth-set-default-theme)" = "tribar" ]; then
|
||||
%{_sbindir}/plymouth-set-default-theme -R --reset
|
||||
fi
|
||||
fi
|
||||
|
||||
%if %{with fedora_theme}
|
||||
%postun theme-fade-in
|
||||
if [ $1 -eq 0 ]; then
|
||||
export LIB=%{_libdir}
|
||||
@@ -493,18 +492,12 @@ if [ $1 -eq 0 ]; then
|
||||
fi
|
||||
fi
|
||||
|
||||
%post theme-solar
|
||||
if [ $1 -eq 1 ]; then
|
||||
set -x
|
||||
export LIB=%{_libdir}
|
||||
OTHEME="$(%{_sbindir}/plymouth-set-default-theme)"
|
||||
if [ "$OTHEME" = "text" ]; then
|
||||
if [ ! -e /.buildenv ]; then
|
||||
%{_sbindir}/plymouth-set-default-theme -R solar
|
||||
else
|
||||
%{_sbindir}/plymouth-set-default-theme solar
|
||||
fi
|
||||
fi
|
||||
%postun theme-glow
|
||||
if [ $1 -eq 0 ]; then
|
||||
export LIB=%{_libdir}
|
||||
if [ "$(%{_sbindir}/plymouth-set-default-theme)" = "glow" ]; then
|
||||
%{_sbindir}/plymouth-set-default-theme -R --reset
|
||||
fi
|
||||
fi
|
||||
|
||||
%postun theme-solar
|
||||
@@ -514,10 +507,9 @@ if [ $1 -eq 0 ]; then
|
||||
%{_sbindir}/plymouth-set-default-theme -R --reset
|
||||
fi
|
||||
fi
|
||||
%endif
|
||||
|
||||
%files
|
||||
%license COPYING
|
||||
%doc AUTHORS NEWS README
|
||||
%dir %{_datadir}/plymouth
|
||||
%dir %{_datadir}/plymouth/themes
|
||||
%dir %{_datadir}/plymouth/themes/details
|
||||
@@ -526,10 +518,10 @@ fi
|
||||
%dir %{_libdir}/plymouth
|
||||
%dir %{_libdir}/plymouth/renderers
|
||||
%dir %{_sysconfdir}/plymouth
|
||||
%config(noreplace) %{_sysconfdir}/plymouth/plymouthd.conf
|
||||
%{plymouthdaemon_execdir}/plymouthd
|
||||
%{plymouthclient_execdir}/plymouth
|
||||
/bin/plymouth
|
||||
%{_bindir}/plymouth
|
||||
%{_sbindir}/plymouthd
|
||||
%config(noreplace) %{_sysconfdir}/logrotate.d/bootlog
|
||||
%{_libdir}/plymouth/details.so
|
||||
%{_libdir}/plymouth/text.so
|
||||
%{_libdir}/plymouth/renderers/drm*
|
||||
@@ -538,22 +530,26 @@ fi
|
||||
%{_datadir}/plymouth/themes/details/details.plymouth
|
||||
%{_datadir}/plymouth/themes/text/text.plymouth
|
||||
%{_datadir}/plymouth/plymouthd.defaults
|
||||
%{_datadir}/plymouth/bizcom.png
|
||||
%ghost /run/plymouth
|
||||
%{_localstatedir}/spool/plymouth
|
||||
%{_mandir}/man?/*
|
||||
%ghost %{_localstatedir}/lib/plymouth/boot-duration
|
||||
%{_unitdir}/*
|
||||
%ghost /run/plymouth
|
||||
%ghost %{_localstatedir}/lib/plymouth/boot-duration
|
||||
%ghost %{_localstatedir}/log/boot.log
|
||||
%{_mandir}/man?/*
|
||||
%doc AUTHORS NEWS README
|
||||
%license COPYING
|
||||
/usr/share/locale/
|
||||
|
||||
%files branding-upstream
|
||||
%config(noreplace) %{_sysconfdir}/plymouth/plymouthd.conf
|
||||
|
||||
%files dracut
|
||||
%{_libexecdir}/plymouth/plymouth-populate-initrd
|
||||
%{_libexecdir}/plymouth/plymouth-generate-initrd
|
||||
|
||||
%files devel
|
||||
%{plymouth_libdir}/libply.so
|
||||
%{plymouth_libdir}/libply-splash-core.so
|
||||
%{_libdir}/libply.so
|
||||
%{_libdir}/libply-splash-core.so
|
||||
%{_libdir}/libply-boot-client.so
|
||||
%{_libdir}/libply-splash-graphics.so
|
||||
%{_libdir}/pkgconfig/ply-splash-core.pc
|
||||
@@ -561,90 +557,81 @@ fi
|
||||
%{_libdir}/pkgconfig/ply-boot-client.pc
|
||||
%{_includedir}/plymouth-1
|
||||
|
||||
%files -n libply-boot-client%{soversion}
|
||||
%{_libdir}/libply-boot-client.so.%{soversion}*
|
||||
%files -n libply-boot-client%{so_version}
|
||||
%{_libdir}/libply-boot-client.so.%{so_version}*
|
||||
|
||||
%files -n libply-splash-core%{soversion}
|
||||
%{plymouth_libdir}/libply-splash-core.so.%{soversion}*
|
||||
%files -n libply-splash-core%{so_version}
|
||||
%{_libdir}/libply-splash-core.so.%{so_version}*
|
||||
|
||||
%files -n libply-splash-graphics%{soversion}
|
||||
%{_libdir}/libply-splash-graphics.so.%{soversion}*
|
||||
%files -n libply-splash-graphics%{so_version}
|
||||
%{_libdir}/libply-splash-graphics.so.%{so_version}*
|
||||
|
||||
%files -n libply%{soversion}
|
||||
%{plymouth_libdir}/libply.so.%{soversion}*
|
||||
%files -n libply%{so_version}
|
||||
%{_libdir}/libply.so.%{so_version}*
|
||||
|
||||
%files scripts
|
||||
%dir %{_libexecdir}/plymouth
|
||||
%{_sbindir}/plymouth-set-default-theme
|
||||
%{_libexecdir}/plymouth/plymouth-update-initrd
|
||||
|
||||
%if %{with x11_renderer}
|
||||
%files x11-renderer
|
||||
%{_libdir}/plymouth/renderers/x11*
|
||||
%endif
|
||||
|
||||
%files plugin-label
|
||||
%{_libdir}/plymouth/label.so
|
||||
|
||||
%files plugin-label-ft
|
||||
%{_libdir}/plymouth/label-ft.so
|
||||
|
||||
%files plugin-script
|
||||
%{_libdir}/plymouth/script.so
|
||||
|
||||
%files plugin-tribar
|
||||
%{_libdir}/plymouth/tribar.so
|
||||
|
||||
%files plugin-two-step
|
||||
%{_libdir}/plymouth/two-step.so
|
||||
|
||||
%files theme-bgrt
|
||||
%dir %{_datadir}/plymouth/themes/bgrt
|
||||
%{_datadir}/plymouth/themes/bgrt/*
|
||||
|
||||
%files theme-script
|
||||
%dir %{_datadir}/plymouth/themes/script/
|
||||
%{_datadir}/plymouth/themes/script/*
|
||||
|
||||
%files theme-spinfinity
|
||||
%dir %{_datadir}/plymouth/themes/spinfinity
|
||||
%{_datadir}/plymouth/themes/spinfinity/*
|
||||
|
||||
%files theme-spinner
|
||||
%dir %{_datadir}/plymouth/themes/spinner
|
||||
%{_datadir}/plymouth/themes/spinner/*
|
||||
|
||||
%files theme-tribar
|
||||
%dir %{_datadir}/plymouth/themes/tribar
|
||||
%{_datadir}/plymouth/themes/tribar/*
|
||||
|
||||
%if %{with x11_renderer}
|
||||
%files x11-renderer
|
||||
%{_libdir}/plymouth/renderers/x11*
|
||||
%endif
|
||||
|
||||
%if %{with fedora_theme}
|
||||
%files plugin-fade-throbber
|
||||
%{_libdir}/plymouth/fade-throbber.so
|
||||
|
||||
%files theme-fade-in
|
||||
%dir %{_datadir}/plymouth/themes/fade-in
|
||||
%{_datadir}/plymouth/themes/fade-in/bullet.png
|
||||
%{_datadir}/plymouth/themes/fade-in/entry.png
|
||||
%{_datadir}/plymouth/themes/fade-in/lock.png
|
||||
%{_datadir}/plymouth/themes/fade-in/star.png
|
||||
%{_datadir}/plymouth/themes/fade-in/fade-in.plymouth
|
||||
%{_datadir}/plymouth/themes/fade-in/*
|
||||
|
||||
%files plugin-throbgress
|
||||
%{_libdir}/plymouth/throbgress.so
|
||||
|
||||
%files theme-spinfinity
|
||||
%dir %{_datadir}/plymouth/themes/spinfinity
|
||||
%{_datadir}/plymouth/themes/spinfinity/box.png
|
||||
%{_datadir}/plymouth/themes/spinfinity/bullet.png
|
||||
%{_datadir}/plymouth/themes/spinfinity/entry.png
|
||||
%{_datadir}/plymouth/themes/spinfinity/lock.png
|
||||
%{_datadir}/plymouth/themes/spinfinity/throbber-[0-3][0-9].png
|
||||
%{_datadir}/plymouth/themes/spinfinity/spinfinity.plymouth
|
||||
%files theme-glow
|
||||
%dir %{_datadir}/plymouth/themes/glow
|
||||
%{_datadir}/plymouth/themes/glow/*
|
||||
|
||||
%files plugin-space-flares
|
||||
%{_libdir}/plymouth/space-flares.so
|
||||
|
||||
%files theme-spinner
|
||||
%dir %{_datadir}/plymouth/themes/spinner
|
||||
%{_datadir}/plymouth/themes/spinner/*.*
|
||||
|
||||
%files theme-solar
|
||||
%dir %{_datadir}/plymouth/themes/solar
|
||||
%{_datadir}/plymouth/themes/solar/*.png
|
||||
%{_datadir}/plymouth/themes/solar/solar.plymouth
|
||||
|
||||
%files theme-tribar
|
||||
%dir %{_datadir}/plymouth/themes/tribar
|
||||
%{_datadir}/plymouth/themes/tribar/*.*
|
||||
|
||||
%files plugin-two-step
|
||||
%{_libdir}/plymouth/two-step.so
|
||||
|
||||
%files plugin-tribar
|
||||
%{_libdir}/plymouth/tribar.so
|
||||
|
||||
%files plugin-script
|
||||
%{_libdir}/plymouth/script.so
|
||||
|
||||
%files theme-script
|
||||
%dir %{_datadir}/plymouth/themes/script/
|
||||
%{_datadir}/plymouth/themes/script/*.png
|
||||
%{_datadir}/plymouth/themes/script/script.script
|
||||
%{_datadir}/plymouth/themes/script/script.plymouth
|
||||
|
||||
%files theme-bgrt
|
||||
%dir %{_datadir}/plymouth/themes/bgrt
|
||||
%{_datadir}/plymouth/themes/bgrt/*.*
|
||||
%{_datadir}/plymouth/themes/solar/*
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user