Douglas Schilling Landgraf has uploaded a new change for review.

Change subject: vdsm.spec: Adding with_systemd macro
......................................................................

vdsm.spec: Adding with_systemd macro

This patch adds the macro with_systemd which can be used
to validate if the system uses Systemd.

Change-Id: Ibcd8567868e16453ed6633f143a6b1fff8e9c454
Signed-off-by: Douglas Schilling Landgraf <dougsl...@redhat.com>
---
M vdsm.spec.in
1 file changed, 8 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/86/12086/1

diff --git a/vdsm.spec.in b/vdsm.spec.in
index 5544e9d..447d24e 100644
--- a/vdsm.spec.in
+++ b/vdsm.spec.in
@@ -17,6 +17,11 @@
 %global _polkitdir %{_localstatedir}/lib/polkit-1/localauthority/10-vendor.d
 %endif
 
+# Systemd macro 
+%if 0%{?fedora} >= 15
+%global with_systemd
+%endif
+
 # Default to skipping autoreconf.  Distros can change just this one line
 # (or provide a command-line override) if they backport any patches that
 # touch configure.ac or Makefile.am.
@@ -63,6 +68,9 @@
 %if !0%{?rhel}
 BuildRequires: pyflakes
 BuildRequires: python-pep8
+%endif
+
+%if 0%{?with_systemd}
 BuildRequires: systemd-units
 %endif
 


--
To view, visit http://gerrit.ovirt.org/12086
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ibcd8567868e16453ed6633f143a6b1fff8e9c454
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Douglas Schilling Landgraf <dougsl...@redhat.com>
_______________________________________________
vdsm-patches mailing list
vdsm-patches@lists.fedorahosted.org
https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches

Reply via email to