plymouth/plymouth.spec

231 lines
7.2 KiB
RPMSpec
Raw Normal View History

2020-01-07 10:34:23 +08:00
# commit date: 20191013
%global commit a4517f16f0e9dde9ad0bc4c1755275b9809772d1
%global shortcommit a4517f1
2019-12-28 09:27:13 +08:00
Name: plymouth
2020-01-07 10:34:23 +08:00
Version: 0.9.4
Release: 1
2019-12-28 09:27:13 +08:00
License: GPLv2+
Summary: Graphical Boot Animation and Logger
URL: https://www.freedesktop.org/wiki/Software/Plymouth
2020-01-07 10:34:23 +08:00
Source0: %{name}-%{shortcommit}.tar.xz
2019-12-28 09:27:13 +08:00
2020-01-07 10:34:23 +08:00
BuildRequires: gcc libtool libdrm-devel systemd-devel kernel-headers
BuildRequires: libpng-devel libxslt docbook-style-xsl gtk3-devel
BuildRequires: pango-devel cairo-devel gettext-devel intltool
2019-12-28 09:27:13 +08:00
Requires: system-logos findutils coreutils gzip cpio dracut
2020-01-07 10:34:23 +08:00
Provides: %{name}-system-theme %{name}-scripts %{name}-plugin-two-step
Provides: %{name}-graphics-libs %{name}-core-libs %{name}-plugin-fade-throbber
Provides: %{name}-plugin-throbgress %{name}-plugin-space-flares
Provides: %{name}-plugin-script %{name}-theme-script %{name}-plugin-label
Obsoletes: %{name}-system-theme %{name}-scripts %{name}-plugin-two-step
Obsoletes: %{name}-graphics-libs %{name}-core-libs %{name}-plugin-fade-throbber
Obsoletes: %{name}-plugin-throbgress %{name}-plugin-space-flares
Obsoletes: %{name}-plugin-script %{name}-theme-script %{name}-plugin-label
2019-12-28 09:27:13 +08:00
%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 devel
2020-01-07 10:34:23 +08:00
Summary: Libraries and headers for writing Plymouth splash plugins
2019-12-28 09:27:13 +08:00
Requires: %{name} = %{version}-%{release}
Requires: pkgconfig
%description devel
This package contains the libply and libplybootsplash libraries
and headers needed to develop 3rd party splash plugins for Plymouth.
%package theme-fade-in
Summary: Plymouth "Fade-In" theme
Requires: %{name} = %{version}-%{release}
2020-01-07 10:34:23 +08:00
%description theme-fade-in
2019-12-28 09:27:13 +08:00
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.
2020-01-07 10:34:23 +08:00
%package theme-glow
Summary: Plymouth "Glow" theme
2019-12-28 09:27:13 +08:00
Requires: %{name} = %{version}-%{release}
2020-01-07 10:34:23 +08:00
%description theme-glow
This package contains the "Glow" boot splash theme for
Plymouth. It features a corporate-looking pie chart for
boot progress followed by a glowing logo once boot finishes.
2019-12-28 09:27:13 +08:00
%package theme-solar
Summary: Plymouth "Solar" theme
Requires: %{name} = %{version}-%{release}
%description theme-solar
This package contains the "Solar" boot splash theme for
Plymouth. It features a blue flamed sun with animated solar flares.
2020-01-07 10:34:23 +08:00
%package theme-spinfinity
Summary: Plymouth "Spinfinity" theme
2019-12-28 09:27:13 +08:00
Requires: %{name} = %{version}-%{release}
2020-01-07 10:34:23 +08:00
%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.
2019-12-28 09:27:13 +08:00
%package theme-spinner
Summary: Plymouth "Spinner" theme
Requires: %{name} = %{version}-%{release}
2020-01-07 10:34:23 +08:00
%description theme-spinner
2019-12-28 09:27:13 +08:00
This package contains the "spinner" boot splash theme for
Plymouth. It features a small spinner on a dark background.
%package_help
%prep
2020-01-07 10:34:23 +08:00
%autosetup -n %{name}-%{commit} -p1
autoreconf --install --symlink -Wno-portability
2019-12-28 09:27:13 +08:00
%build
2020-01-07 10:34:23 +08:00
%configure --enable-tracing \
--disable-tests \
--with-logo=%{_datadir}/pixmaps/system-logo-white.png \
--with-background-start-color-stop=0x0073B3 \
--with-background-end-color-stop=0x00457E \
--with-background-color=0x3391cd \
--disable-gdm-transition \
--enable-systemd-integration \
--without-system-root-install \
--without-rhgb-compat-link
%make_build
2019-12-28 09:27:13 +08:00
%install
%make_install
2020-01-07 10:34:23 +08:00
%find_lang %{name}
2019-12-28 09:27:13 +08:00
%delete_la_and_a
2020-01-07 10:34:23 +08:00
%ldconfig_scriptlets core-libs
%ldconfig_scriptlets graphics-libs
2019-12-28 09:27:13 +08:00
%postun theme-fade-in
2020-01-07 10:34:23 +08:00
export PLYMOUTH_PLUGIN_PATH=%{_libdir}/plymouth/
2019-12-28 09:27:13 +08:00
if [ $1 -eq 0 ]; then
if [ "$(%{_sbindir}/plymouth-set-default-theme)" == "fade-in" ]; then
%{_sbindir}/plymouth-set-default-theme --reset
fi
fi
2020-01-07 10:34:23 +08:00
%postun theme-glow
export PLYMOUTH_PLUGIN_PATH=%{_libdir}/plymouth/
2019-12-28 09:27:13 +08:00
if [ $1 -eq 0 ]; then
2020-01-07 10:34:23 +08:00
if [ "$(%{_sbindir}/plymouth-set-default-theme)" == "glow" ]; then
2019-12-28 09:27:13 +08:00
%{_sbindir}/plymouth-set-default-theme --reset
fi
fi
%postun theme-solar
2020-01-07 10:34:23 +08:00
export PLYMOUTH_PLUGIN_PATH=%{_libdir}/plymouth/
2019-12-28 09:27:13 +08:00
if [ $1 -eq 0 ]; then
if [ "$(%{_sbindir}/plymouth-set-default-theme)" == "solar" ]; then
%{_sbindir}/plymouth-set-default-theme --reset
fi
fi
2020-01-07 10:34:23 +08:00
%postun theme-spinfinity
export PLYMOUTH_PLUGIN_PATH=%{_libdir}/plymouth/
if [ $1 -eq 0 ]; then
if [ "$(%{_sbindir}/plymouth-set-default-theme)" == "spinfinity" ]; then
%{_sbindir}/plymouth-set-default-theme --reset
2019-12-28 09:27:13 +08:00
fi
fi
2020-01-07 10:34:23 +08:00
%postun theme-spinner
export PLYMOUTH_PLUGIN_PATH=%{_libdir}/plymouth/
# On upgrades replace charge with the new bgrt default
if [ $1 -eq 2 ]; then
2019-12-28 09:27:13 +08:00
if [ "$(%{_sbindir}/plymouth-set-default-theme)" == "charge" ]; then
2020-01-07 10:34:23 +08:00
%{_sbindir}/plymouth-set-default-theme bgrt
2019-12-28 09:27:13 +08:00
fi
fi
2020-01-07 10:34:23 +08:00
%files -f %{name}.lang
2019-12-28 09:27:13 +08:00
%defattr(-,root,root)
%doc AUTHORS
2020-01-07 10:34:23 +08:00
%license COPYING
%dir %{_sysconfdir}/plymouth
2019-12-28 09:27:13 +08:00
%config(noreplace) %{_sysconfdir}/plymouth/plymouthd.conf
2020-01-07 10:34:23 +08:00
2019-12-28 09:27:13 +08:00
%{_bindir}/plymouth
%{_sbindir}/plymouthd
2020-01-07 10:34:23 +08:00
%{_sbindir}/plymouth-set-default-theme
%{_prefix}/lib/systemd/system/
2019-12-28 09:27:13 +08:00
%{_libdir}/libply.so.*
%{_libdir}/libply-splash-core.so.*
%{_libdir}/libply-boot-client.so.*
2020-01-07 10:34:23 +08:00
%{_libdir}/libply-splash-graphics.so.*
%dir %{_libdir}/plymouth
%{_libdir}/plymouth/*.so
%{_libdir}/plymouth/renderers/drm*
%{_libdir}/plymouth/renderers/frame-buffer*
%dir %{_libexecdir}/plymouth
%{_libexecdir}/plymouth/plymouth-update-initrd
%{_libexecdir}/plymouth/plymouth-generate-initrd
%{_libexecdir}/plymouth/plymouth-populate-initrd
%dir %{_datadir}/plymouth
%{_datadir}/plymouth/plymouthd.defaults
%{_datadir}/plymouth/themes/script
2019-12-28 09:27:13 +08:00
%{_datadir}/plymouth/themes/text/text.plymouth
%{_datadir}/plymouth/themes/tribar/tribar.plymouth
2020-01-07 10:34:23 +08:00
%{_datadir}/plymouth/themes/details/details.plymouth
%dir %{_localstatedir}/lib/plymouth
2019-12-28 09:27:13 +08:00
%{_localstatedir}/run/plymouth
%{_localstatedir}/spool/plymouth
%ghost %{_localstatedir}/lib/plymouth/boot-duration
%files devel
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%{_libdir}/plymouth/renderers/x11*
%{_includedir}/plymouth-1
2020-01-07 10:34:23 +08:00
%files theme-fade-in
%{_datadir}/plymouth/themes/fade-in
2019-12-28 09:27:13 +08:00
2020-01-07 10:34:23 +08:00
%files theme-glow
%{_datadir}/plymouth/themes/glow
2019-12-28 09:27:13 +08:00
%files theme-solar
2020-01-07 10:34:23 +08:00
%{_datadir}/plymouth/themes/solar
2019-12-28 09:27:13 +08:00
2020-01-07 10:34:23 +08:00
%files theme-spinfinity
%{_datadir}/plymouth/themes/spinfinity
%files theme-spinner
# bgrt is a variant of spinner with different settings in its .plymouth file
%{_datadir}/plymouth/themes/bgrt
%{_datadir}/plymouth/themes/spinner
2019-12-28 09:27:13 +08:00
%files help
%defattr(-,root,root)
%doc README
%{_mandir}/man?/*
%changelog
2020-01-07 10:34:23 +08:00
* Mon Jan 6 2020 openEuler Buildteam <buildteam@openeuler.org> - 0.9.4-1
- update to 0.9.4
2019-12-28 09:27:13 +08:00
* Fri Dec 20 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.9.3-16
- description change
* Thu Sep 19 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.9.3-15
- Package init