]> git.pld-linux.org Git - packages/czmq.git/commitdiff
- allow building without systemd master
authorMarcin Krol <hawk@tld-linux.org>
Tue, 2 Apr 2024 00:10:01 +0000 (02:10 +0200)
committerMarcin Krol <hawk@tld-linux.org>
Tue, 2 Apr 2024 00:10:01 +0000 (02:10 +0200)
czmq.spec

index 5c989396bd554c6dd578b4bab909a9e8f45f7d7f..d4eba51701693a71d14f981338419ff41672303f 100644 (file)
--- a/czmq.spec
+++ b/czmq.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:       High-level C binding for 0MQ
 Summary(pl.UTF-8):     Wysokopoziomowe wiązania C dla 0MQ
@@ -33,11 +34,11 @@ BuildRequires:      python3-setuptools
 %endif
 BuildRequires: rpm-pythonprov
 BuildRequires: rpmbuild(macros) >= 1.714
-BuildRequires: systemd-devel >= 1:200
+%{?with_systemd:BuildRequires: systemd-devel >= 1:200}
 BuildRequires: xmlto
 BuildRequires: zeromq-devel >= 4
 Requires:      curl-libs >= 7.28.0
-Requires:      systemd-libs >= 1:200
+%{?with_systemd:Requires:      systemd-libs >= 1:200}
 Requires:      zeromq >= 4
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -56,7 +57,7 @@ Requires:     curl-devel >= 7.28.0
 Requires:      libmicrohttpd-devel
 Requires:      libuuid-devel
 Requires:      lz4-devel
-Requires:      systemd-devel >= 1:200
+%{?with_systemd:Requires:      systemd-devel >= 1:200}
 Requires:      zeromq-devel >= 4
 
 %description devel
@@ -116,7 +117,8 @@ Wiązania Pythona 3 do CZMQ - wysokopoziomowego wiązania C do 0MQ.
        --enable-bindings-python \
        --enable-drafts \
        --disable-silent-rules \
-       --includedir=%{_includedir}/czmq
+       --includedir=%{_includedir}/czmq \
+       %{!?with_systemd:--with-libsystemd=no}
 %{__make}
 
 cd bindings/python
This page took 0.09536 seconds and 4 git commands to generate.