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

This commit is contained in:
eaglegai 2022-06-17 14:14:04 +08:00
parent 766e1e4b80
commit e317e7efdf

View File

@ -1,8 +1,14 @@
# commit date: 20191013 # commit date: 20191013
%if %{?openEuler:1}0
%bcond_without graphics
%else
%bcond_with graphics
%endif
Name: plymouth Name: plymouth
Version: 0.9.5 Version: 0.9.5
Release: 3 Release: 4
License: GPLv2+ License: GPLv2+
Summary: Graphical Boot Animation and Logger Summary: Graphical Boot Animation and Logger
URL: https://www.freedesktop.org/wiki/Software/Plymouth 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 Patch9000: carry-xattr-when-copying-files-to-initramfs.patch
BuildRequires: gcc libtool libdrm-devel systemd-devel kernel-headers BuildRequires: gcc libtool systemd-devel kernel-headers
BuildRequires: libpng-devel libxslt docbook-style-xsl gtk3-devel BuildRequires: libxslt docbook-style-xsl gtk3-devel
BuildRequires: pango-devel cairo-devel gettext-devel intltool BuildRequires: gettext-devel intltool
Requires: system-logos findutils coreutils gzip cpio dracut %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}-system-theme %{name}-scripts %{name}-plugin-two-step
Provides: %{name}-graphics-libs %{name}-core-libs %{name}-plugin-fade-throbber Provides: %{name}-graphics-libs %{name}-core-libs %{name}-plugin-fade-throbber
@ -98,6 +108,11 @@ autoreconf --install --symlink -Wno-portability
--disable-gdm-transition \ --disable-gdm-transition \
--enable-systemd-integration \ --enable-systemd-integration \
--without-system-root-install \ --without-system-root-install \
%if %{without graphics}
--disable-drm \
--disable-pango \
--without-udev \
%endif
--without-rhgb-compat-link --without-rhgb-compat-link
%make_build %make_build
@ -157,8 +172,12 @@ fi
%license COPYING %license COPYING
%dir %{_sysconfdir}/plymouth %dir %{_sysconfdir}/plymouth
%config(noreplace) %{_sysconfdir}/plymouth/plymouthd.conf %config(noreplace) %{_sysconfdir}/plymouth/plymouthd.conf
%if %{?openEuler:1}0
%dir %{_sysconfdir}/logrotate.d %dir %{_sysconfdir}/logrotate.d
%{_sysconfdir}/logrotate.d/bootlog %{_sysconfdir}/logrotate.d/bootlog
%else
%exclude %{_sysconfdir}/logrotate.d/bootlog
%endif
%{_bindir}/plymouth %{_bindir}/plymouth
%{_sbindir}/plymouthd %{_sbindir}/plymouthd
@ -171,7 +190,9 @@ fi
%{_libdir}/libply-splash-graphics.so.* %{_libdir}/libply-splash-graphics.so.*
%dir %{_libdir}/plymouth %dir %{_libdir}/plymouth
%{_libdir}/plymouth/*.so %{_libdir}/plymouth/*.so
%if %{with graphics}
%{_libdir}/plymouth/renderers/drm* %{_libdir}/plymouth/renderers/drm*
%endif
%{_libdir}/plymouth/renderers/frame-buffer* %{_libdir}/plymouth/renderers/frame-buffer*
%dir %{_libexecdir}/plymouth %dir %{_libexecdir}/plymouth
@ -220,6 +241,12 @@ fi
%{_mandir}/man?/* %{_mandir}/man?/*
%changelog %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 * Thu Dec 17 2020 openEuler Buildteam <buildteam@openeuler.org> - 0.9.5-3
- carry xattr when copying files to initramfs - carry xattr when copying files to initramfs