From e317e7efdf2049e99f855aa6d26dc371596a83ff Mon Sep 17 00:00:00 2001 From: eaglegai Date: Fri, 17 Jun 2022 14:14:04 +0800 Subject: [PATCH] add macros to control if need libdrm, pango, libpng and if need to exclude bootlog --- plymouth.spec | 37 ++++++++++++++++++++++++++++++++----- 1 file changed, 32 insertions(+), 5 deletions(-) diff --git a/plymouth.spec b/plymouth.spec index 7bf757f..d20290a 100644 --- a/plymouth.spec +++ b/plymouth.spec @@ -1,8 +1,14 @@ # commit date: 20191013 +%if %{?openEuler:1}0 +%bcond_without graphics +%else +%bcond_with graphics +%endif + Name: plymouth Version: 0.9.5 -Release: 3 +Release: 4 License: GPLv2+ Summary: Graphical Boot Animation and Logger URL: https://www.freedesktop.org/wiki/Software/Plymouth @@ -10,10 +16,14 @@ Source0: https://gitlab.freedesktop.org/plymouth/plymouth/-/archive/0.9.5 Patch9000: carry-xattr-when-copying-files-to-initramfs.patch -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 -Requires: system-logos findutils coreutils gzip cpio dracut +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 Provides: %{name}-system-theme %{name}-scripts %{name}-plugin-two-step Provides: %{name}-graphics-libs %{name}-core-libs %{name}-plugin-fade-throbber @@ -98,6 +108,11 @@ autoreconf --install --symlink -Wno-portability --disable-gdm-transition \ --enable-systemd-integration \ --without-system-root-install \ +%if %{without graphics} + --disable-drm \ + --disable-pango \ + --without-udev \ +%endif --without-rhgb-compat-link %make_build @@ -157,8 +172,12 @@ fi %license COPYING %dir %{_sysconfdir}/plymouth %config(noreplace) %{_sysconfdir}/plymouth/plymouthd.conf +%if %{?openEuler:1}0 %dir %{_sysconfdir}/logrotate.d %{_sysconfdir}/logrotate.d/bootlog +%else +%exclude %{_sysconfdir}/logrotate.d/bootlog +%endif %{_bindir}/plymouth %{_sbindir}/plymouthd @@ -171,7 +190,9 @@ fi %{_libdir}/libply-splash-graphics.so.* %dir %{_libdir}/plymouth %{_libdir}/plymouth/*.so +%if %{with graphics} %{_libdir}/plymouth/renderers/drm* +%endif %{_libdir}/plymouth/renderers/frame-buffer* %dir %{_libexecdir}/plymouth @@ -220,6 +241,12 @@ fi %{_mandir}/man?/* %changelog +* Fri Jun 17 2022 gaihuiying - 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 - 0.9.5-3 - carry xattr when copying files to initramfs