[packages/AppStream] - allow building without systemd
hawk
hawk at pld-linux.org
Tue Apr 23 20:18:50 CEST 2024
commit f663c8889e1850b53517bb8085b15dead29eb540
Author: Marcin Krol <hawk at tld-linux.org>
Date: Tue Apr 23 20:01:36 2024 +0200
- allow building without systemd
AppStream.spec | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/AppStream.spec b/AppStream.spec
index 7479dc3..52f3383 100644
--- a/AppStream.spec
+++ b/AppStream.spec
@@ -7,6 +7,7 @@
%bcond_without qt5 # Qt5 library (libAppStreamQt5)
%bcond_without qt6 # Qt6 library (libAppStreamQt)
%bcond_without static_libs # static libraries
+%bcond_without systemd # systemd
%bcond_without vala # Vala API (VAPI)
%if %{without qt}
@@ -47,7 +48,7 @@ BuildRequires: python3 >= 1:3
BuildRequires: rpm-build >= 4.6
BuildRequires: rpmbuild(macros) >= 1.750
BuildRequires: sed >= 4
-BuildRequires: systemd-devel >= 1:209
+%{?with_systemd:BuildRequires: systemd-devel >= 1:209}
BuildRequires: tar >= 1:1.22
%{?with_vala:BuildRequires: vala}
BuildRequires: xmlto
@@ -288,6 +289,7 @@ Dane ITS AppStream metainfo dla narzędzi gettext.
%{?with_qt:-Dqt=true} \
%{?with_qt:-Dqt-versions="[%{?with_qt5:'5'%{?with_qt6:,}}%{?with_qt6:'6'}]"} \
-Dstemming=true \
+ %{!?with_systemd:-Dsystemd=false} \
%{?with_vala:-Dvapi=true}
%ninja_build -C build
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/AppStream.git/commitdiff/f663c8889e1850b53517bb8085b15dead29eb540
More information about the pld-cvs-commit
mailing list