]> git.pld-linux.org Git - packages/open-iscsi.git/commitdiff
- allow building on systems without systemd master
authorMarcin Krol <hawk@tld-linux.org>
Thu, 20 Jul 2023 15:49:37 +0000 (17:49 +0200)
committerMarcin Krol <hawk@tld-linux.org>
Thu, 20 Jul 2023 15:49:37 +0000 (17:49 +0200)
open-iscsi.spec

index a03e927c36bffb912d5c56ff1612f2c77fc5b0ac..7196df46e3c62fe85bfab27367da6360ba4c458e 100644 (file)
@@ -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
 
This page took 0.183472 seconds and 4 git commands to generate.