diff --git a/plymouth.spec b/plymouth.spec index 00b6435..8391a74 100644 --- a/plymouth.spec +++ b/plymouth.spec @@ -21,6 +21,8 @@ %define plymouth_libdir %{_libdir} %define plymouth_initrd_file /boot/initrd-plymouth.img +%define with_systemd 0 + Name: plymouth #Version: %{tarversion}_git%{patchversion} Version: 0.8.5.1 @@ -311,6 +313,7 @@ This package contains the "script" boot splash theme for Plymouth. It it is a simple example theme the uses the "script" plugin. +%if with_systemd %package systemd Summary: systemd integration for Plymouth Group: System/Base @@ -321,6 +324,7 @@ Provides: systemd-plymouth = 44.10.2 %description systemd This package contains the service files for the systemd integration +%endif %prep %setup -q @@ -359,6 +363,9 @@ make %{?_smp_mflags} rm -f %{buildroot}/%{_bindir}/rhgb-client rm -f %{buildroot}%{_prefix}/lib/plymouth/plymouth-generate-initrd rm -f %{buildroot}%{_prefix}/lib/plymouth/plymouth-populate-initrd +%if ! with_systemd +rm -f %{buildroot}/lib/systemd +%endif #Link the plymouth client binary also to /bin until the move to /usr is completed mkdir %{buildroot}/bin @@ -632,8 +639,10 @@ fi %{_datadir}/plymouth/logo.png %{_datadir}/plymouth/themes/openSUSE/ +%if with_systemd %files systemd %defattr(-, root, root) /lib/systemd/system/* +%endif %changelog