- make actual use of systemd bcond and disable plugin if requested
authorMarcin Krol <hawk@tld-linux.org>
Fri, 19 Mar 2021 18:40:50 +0000 (19:40 +0100)
committerMarcin Krol <hawk@tld-linux.org>
Fri, 19 Mar 2021 18:40:50 +0000 (19:40 +0100)
rpm.spec

index 2a82561223b3558eab4da21cd2e87e8cdb0edb53..414b142ea728f3a6e36980bb193d594c7e90d0ec 100644 (file)
--- 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)
This page took 0.121184 seconds and 4 git commands to generate.