From: Marcin Krol Date: Fri, 19 Mar 2021 18:40:50 +0000 (+0100) Subject: - make actual use of systemd bcond and disable plugin if requested X-Git-Tag: auto/th/rpm-4.16.1.2-9~2 X-Git-Url: http://git.pld-linux.org/?p=packages%2Frpm.git;a=commitdiff_plain;h=749834f - make actual use of systemd bcond and disable plugin if requested --- diff --git a/rpm.spec b/rpm.spec index 2a82561..414b142 100644 --- a/rpm.spec +++ b/rpm.spec @@ -664,6 +664,7 @@ awk -f %{SOURCE6} %{SOURCE5} --enable-bdb-ro \ --enable-ndb \ %{!?with_plugins:--disable-plugins} \ + %{!?with_systemd:--disable-inhibit-plugin} \ --disable-silent-rules \ --enable-sqlite \ --enable-zstd \ @@ -1074,10 +1075,12 @@ find %{_rpmlibdir} -name '*-linux' -type l | xargs rm -f %attr(755,root,root) %{_libdir}/rpm-plugins/syslog.so %{_mandir}/man8/rpm-plugin-syslog.8* +%if %{with systemd} %files plugin-systemd-inhibit %defattr(644,root,root,755) %attr(755,root,root) %{_libdir}/rpm-plugins/systemd_inhibit.so %{_mandir}/man8/rpm-plugin-systemd-inhibit.8* +%endif %files plugin-ima %defattr(644,root,root,755)