summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcin Krol2024-04-23 18:01:36 (GMT)
committerMarcin Krol2024-04-23 18:01:36 (GMT)
commitf663c8889e1850b53517bb8085b15dead29eb540 (patch)
tree54e9106efe6a09960e31df8dff3974612061c8cd
parent7ff20fd16ce3bb0336fd11b5b207ff5484b9df86 (diff)
downloadAppStream-f663c8889e1850b53517bb8085b15dead29eb540.zip
AppStream-f663c8889e1850b53517bb8085b15dead29eb540.tar.gz
- allow building without systemd
-rw-r--r--AppStream.spec4
1 files changed, 3 insertions, 1 deletions
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