summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElan Ruusamäe2013-02-17 00:21:05 (GMT)
committerElan Ruusamäe2013-02-17 00:21:05 (GMT)
commitdff27893e1fc98050b1bf87668481a2d329c7344 (patch)
tree0da80799b896141f8f3b8aa6915ad4e059645077
parent2ca837d7bc62833915190d7f37f7d7dff9d9c179 (diff)
downloadmate-power-manager-dff27893e1fc98050b1bf87668481a2d329c7344.zip
mate-power-manager-dff27893e1fc98050b1bf87668481a2d329c7344.tar.gz
allow building without systemd support
-rw-r--r--mate-power-manager.spec9
1 files changed, 8 insertions, 1 deletions
diff --git a/mate-power-manager.spec b/mate-power-manager.spec
index 13f2623..d739c4e 100644
--- a/mate-power-manager.spec
+++ b/mate-power-manager.spec
@@ -1,3 +1,9 @@
+# TODO
+# - it should not require systemd at runtime even if compiled with systemd
+#
+# Conditional build:
+%bcond_with systemd # without systemd inhibit
+
Summary: MATE power management service
Name: mate-power-manager
Version: 1.5.1
@@ -26,7 +32,7 @@ BuildRequires: mate-doc-utils
BuildRequires: mate-panel-devel
BuildRequires: popt-devel
BuildRequires: rpmbuild(find_lang) >= 1.36
-BuildRequires: systemd-devel >= 1:195
+%{?with_systemd:BuildRequires: systemd-devel >= 1:195}
BuildRequires: tar >= 1:1.22
BuildRequires: upower-devel
BuildRequires: xz
@@ -53,6 +59,7 @@ NOCONFIGURE=1 ./autogen.sh
--disable-silent-rules \
--disable-static \
--disable-scrollkeeper \
+ %{!?with_systemd:--without-systemdinhibit} \
--enable-applets
%{__make}