!23 add macros to control if need libdrm, pango, libpng and if need to exclude bootlog

From: @eaglegai 
Reviewed-by: @yanan-rock 
Signed-off-by: @yanan-rock
This commit is contained in:
openeuler-ci-bot 2022-07-07 12:09:09 +00:00 committed by Gitee
commit cbbc011da3
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -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 <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