From 73c6c2c307c8bcaac51aa94b1af518955f35d1b8 Mon Sep 17 00:00:00 2001 From: Milind Changire Date: Tue, 13 Sep 2016 14:21:29 +0530 Subject: build: add systemd dependency Installs break with glusterfs getting installed before systemd installation. This patch adds a dependency for systemd appropriately for Fedora and RHEL platforms for glusterfs-server and glusterfs-events packages. Change-Id: Ica18f82a5e37c7755f0d386ce2ac6c70e8082815 BUG: 1375181 Signed-off-by: Milind Changire Reviewed-on: http://review.gluster.org/15469 Reviewed-by: Niels de Vos Smoke: Gluster Build System NetBSD-regression: NetBSD Build System CentOS-regression: Gluster Build System Reviewed-by: Kaleb KEITHLEY --- glusterfs.spec.in | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'glusterfs.spec.in') diff --git a/glusterfs.spec.in b/glusterfs.spec.in index 19988db0910..10dd67eabd7 100644 --- a/glusterfs.spec.in +++ b/glusterfs.spec.in @@ -530,7 +530,7 @@ Requires: psmisc Requires: lvm2 Requires: nfs-utils %if ( 0%{?_with_systemd:1} ) -Requires(post): systemd-units +Requires(post): systemd-units, systemd Requires(preun): systemd-units Requires(postun): systemd-units %else @@ -588,6 +588,9 @@ Requires: python-gluster = %{version}-%{release} %if ( 0%{?rhel} && 0%{?rhel} <= 6 ) Requires: python-argparse %endif +%if ( 0%{?_with_systemd:1} ) +Requires(post): systemd +%endif %description events GlusterFS Events -- cgit