commit a8caebbe0f74058c6b7a60acc2309f7af0e8ba82 Author: Marcin Krol <h...@tld-linux.org> Date: Thu Jul 20 17:49:37 2023 +0200
- allow building on systems without systemd open-iscsi.spec | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) --- diff --git a/open-iscsi.spec b/open-iscsi.spec index a03e927..7196df4 100644 --- a/open-iscsi.spec +++ b/open-iscsi.spec @@ -2,6 +2,7 @@ # Conditional build: %bcond_without python2 # CPython 2.x module %bcond_without python3 # CPython 3.x module +%bcond_without systemd # systemd Summary: iSCSI - SCSI over IP Summary(pl.UTF-8): iSCSI - SCSI po IP @@ -153,12 +154,13 @@ cd iscsiuio %{__autoconf} %{__autoheader} %{__automake} -%configure +%configure \ + %{!?with_systemd:--without-systemd} cd .. %{__make} \ CC="%{__cc}" \ - OPTFLAGS="%{rpmcflags} %{rpmcppflags}" \ + OPTFLAGS="%{rpmcflags} %{rpmcppflags} %{!?with_systemd:-DNO_SYSTEMD}" \ SED=sed \ KSUBLEVEL=0 ================================================================ ---- gitweb: http://git.pld-linux.org/gitweb.cgi/packages/open-iscsi.git/commitdiff/a8caebbe0f74058c6b7a60acc2309f7af0e8ba82 _______________________________________________ pld-cvs-commit mailing list pld-cvs-commit@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit