summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile.am5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index 60c14d4..90d12ce 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -8,9 +8,14 @@ CLEANFILES = *~ gluster-block.spec
EXTRA_DIST = autogen.sh README.md COPYING-GPLV2 COPYING-LGPLV3
+if USE_SYSTEMD
+RPM_WITH_FLAGS = --with systemd
+endif
+
rpms: prep
rpmbuild --define '_topdir $(abs_top_builddir)/build/rpmbuild' \
--define '_sourcedir $(abs_top_builddir)' \
+ $(RPM_WITH_FLAGS) \
-ba gluster-block.spec
srpm: prep