From 4b8af9a41e7c357d68b686cf45135a41b58e08cf Mon Sep 17 00:00:00 2001 From: Prasanna Kumar Kalever Date: Fri, 3 Mar 2017 15:15:59 +0530 Subject: spec: conditionally enable with_systemd flag Change-Id: I614b19873bd54786f780d767cf84b93f21d6afc7 Signed-off-by: Prasanna Kumar Kalever --- gluster-block.spec.in | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/gluster-block.spec.in b/gluster-block.spec.in index 8092f68..af840bc 100644 --- a/gluster-block.spec.in +++ b/gluster-block.spec.in @@ -1,4 +1,15 @@ +##----------------------------------------------------------------------------- +## All %%global definitions should be placed here and keep them sorted +## +%if ( 0%{?fedora} ) || ( 0%{?rhel} && 0%{?rhel} > 6 ) +%global _with_systemd true +%endif + + +##----------------------------------------------------------------------------- +## All package definitions should be placed here +## Summary: Gluster block storage utility Name: @PACKAGE_NAME@ Version: @PACKAGE_VERSION@ @@ -44,6 +55,9 @@ rm -rf ${RPM_BUILD_ROOT} %endif %changelog +* Mon Mar 6 2017 Prasanna Kumar Kalever +- conditionally enable with_systemd flag + * Mon Feb 27 2017 Prasanna Kumar Kalever - add INSTALL -- cgit