[packages/rpm] - make actual use of systemd bcond and disable plugin if requested

hawk hawk at pld-linux.org
Fri Mar 19 19:41:49 CET 2021


commit 749834ffae4fab8d2aa0549ab9a5e6a924bcef87
Author: Marcin Krol <hawk at tld-linux.org>
Date:   Fri Mar 19 19:40:50 2021 +0100

    - make actual use of systemd bcond and disable plugin if requested

 rpm.spec | 3 +++
 1 file changed, 3 insertions(+)
---
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)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/rpm.git/commitdiff/749834ffae4fab8d2aa0549ab9a5e6a924bcef87



More information about the pld-cvs-commit mailing list