]> git.pld-linux.org Git - packages/mate-power-manager.git/commitdiff
allow building without systemd support
authorElan Ruusamäe <glen@delfi.ee>
Sun, 17 Feb 2013 00:21:05 +0000 (02:21 +0200)
committerElan Ruusamäe <glen@delfi.ee>
Sun, 17 Feb 2013 00:21:05 +0000 (02:21 +0200)
mate-power-manager.spec

index 13f26239c3d2ef8e81aa319bc0a98e1222893280..d739c4ec6e098f7c1981e5e389a20aa9d22f1ab5 100644 (file)
@@ -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}
This page took 0.08732 seconds and 4 git commands to generate.