commit 749834ffae4fab8d2aa0549ab9a5e6a924bcef87 Author: Marcin Krol <h...@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 _______________________________________________ pld-cvs-commit mailing list pld-cvs-commit@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit