plymouth/plymouth.spec

276 lines
8.3 KiB
RPMSpec
Raw Normal View History

2020-01-07 10:34:23 +08:00
# commit date: 20191013
2019-12-28 09:27:13 +08:00
%if %{?openEuler:1}0
%bcond_without graphics
%else
%bcond_with graphics
%endif
2019-12-28 09:27:13 +08:00
Name: plymouth
2020-08-03 17:05:39 +08:00
Version: 0.9.5
Release: 4
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-09-07 16:01:29 +08:00
Source0: https://gitlab.freedesktop.org/plymouth/plymouth/-/archive/0.9.5/plymouth-0.9.5.tar.gz
2019-12-28 09:27:13 +08:00
Patch9000: carry-xattr-when-copying-files-to-initramfs.patch
BuildRequires: gcc libtool systemd-devel kernel-headers
BuildRequires: libxslt docbook-style-xsl gtk3-devel
BuildRequires: gettext-devel intltool
%if %{with graphics}
BuildRequires: libdrm-devel libpng-devel pango-devel cairo-devel
Requires: system-logos
%endif
Requires: findutils coreutils gzip cpio dracut
2019-12-28 09:27:13 +08:00
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-08-03 17:05:39 +08:00
%autosetup -n %{name}-%{version} -p1
2020-01-07 10:34:23 +08:00
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 \
%if %{without graphics}
--disable-drm \
--disable-pango \
--without-udev \
%endif
2020-01-07 10:34:23 +08:00
--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-13 10:00:01 +08:00
%ldconfig_scriptlets
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
%if %{?openEuler:1}0
2020-08-03 17:05:39 +08:00
%dir %{_sysconfdir}/logrotate.d
%{_sysconfdir}/logrotate.d/bootlog
%else
%exclude %{_sysconfdir}/logrotate.d/bootlog
%endif
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
%if %{with graphics}
2020-01-07 10:34:23 +08:00
%{_libdir}/plymouth/renderers/drm*
%endif
2020-01-07 10:34:23 +08:00
%{_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
* Fri Jun 17 2022 gaihuiying <eaglegai@163.com> - 0.9.5-4
- Type:bugfix
- CVE:NA
- SUG:NA
- DESC:add macros to control if need libdrm, pango, libpng and if need to exclude bootlog
* Thu Dec 17 2020 openEuler Buildteam <buildteam@openeuler.org> - 0.9.5-3
- carry xattr when copying files to initramfs
2020-09-07 16:01:29 +08:00
* Mon Sep 07 2020 lunankun <lunankun@huawei.com> - 0.9.5-2
- Type:bugfix
- Id:NA
- SUG:NA
- DESC:fix source0 url
2022-05-10 15:16:37 +08:00
* Mon Aug 03 2020 yuboyun <yuboyun@huawei.com> - 0.9.5-1
2020-08-03 17:05:39 +08:00
- Type:NA
- Id:NA
- SUG:NA
- DESC:update to 0.9.5
2020-01-13 10:00:01 +08:00
* Mon Jan 13 2020 openEuler Buildteam <buildteam@openeuler.org> - 0.9.4-2
- optimize spec
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