[packages/libqb] - allow building on systems without systemd
hawk
hawk at pld-linux.org
Thu Apr 4 01:47:23 CEST 2024
commit c2c741a9b858974133740d9efa862eaf4e5c7a0d
Author: Marcin Krol <hawk at tld-linux.org>
Date: Wed Apr 3 23:49:08 2024 +0200
- allow building on systems without systemd
libqb.spec | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/libqb.spec b/libqb.spec
index 3530252..08f3981 100644
--- a/libqb.spec
+++ b/libqb.spec
@@ -1,6 +1,7 @@
#
# Conditional build:
%bcond_without static_libs # static library
+%bcond_without systemd # systemd
%bcond_with tests # "make check" call
#
Summary: libqb - high performance client server reusable features
@@ -19,7 +20,7 @@ BuildRequires: doxygen
BuildRequires: glib2-devel >= 2.0
BuildRequires: libxml2-devel >= 2.0
BuildRequires: pkgconfig
-BuildRequires: systemd-devel >= 1:209
+%{?with_systemd:BuildRequires: systemd-devel >= 1:209}
BuildRequires: tar >= 1:1.22
BuildRequires: xz
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -64,7 +65,8 @@ Statyczna biblioteka libqb.
%build
%configure \
--disable-silent-rules \
- %{!?with_static_libs:--disable-static}
+ %{!?with_static_libs:--disable-static} \
+ %{!?with_systemd:--disable-systemd-journal}
%{__make}
%if %{with tests}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libqb.git/commitdiff/c2c741a9b858974133740d9efa862eaf4e5c7a0d
More information about the pld-cvs-commit
mailing list