commit dff27893e1fc98050b1bf87668481a2d329c7344
Author: Elan Ruusamäe <[email protected]>
Date:   Sun Feb 17 02:21:05 2013 +0200

    allow building without systemd support

 mate-power-manager.spec | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
---
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}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/mate-power-manager.git/commitdiff/dff27893e1fc98050b1bf87668481a2d329c7344

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to