From 58a376a080c80698a6c243b1dfe948c60ae16ac2 Mon Sep 17 00:00:00 2001 From: Niels de Vos Date: Thu, 23 Feb 2017 12:40:01 +0100 Subject: build: pass "--with systemd" to rpmbuild if needed In case ./configure detects that the environment is using systemd, the "make install" step will copy the gluster-block.service file to the right location. However, the RPMs do not include this file by default, so adding a "--with systemd" to rpmbuild/mock is needed (until there is some form of auto-detection in the .spec). Change-Id: Id64fa664f5b2a3d3c4675b2ad7a54d415a54281a Signed-off-by: Niels de Vos --- Makefile.am | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Makefile.am') 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 -- cgit