From a32f8defaf60956644c606ebd235ca323c84e9b3 Mon Sep 17 00:00:00 2001 From: Nathan Cutler Date: Thu, 2 Jul 2015 17:15:35 +0200 Subject: [PATCH] ceph.spec.in: make systemd a BuildRequires as well as a Requires Factory and Tumbleweed builds attempt to run systemd-tmpfiles -- probably because they run %post -- and were failing with "command not found". Signed-off-by: Nathan Cutler (cherry picked from commit fa9d84913f4289f211f4e97950f9c6538db77a67) --- ceph.spec.in | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ceph.spec.in b/ceph.spec.in index 6e1ff86de9726..0dc82db95191c 100644 --- a/ceph.spec.in +++ b/ceph.spec.in @@ -74,8 +74,10 @@ Requires: hdparm Requires: cryptsetup Requires(post): binutils # We require this to be present for %%{_tmpfilesdir} +# systemd package must be installed in build environment for systemd-tmpfiles to work %if 0%{?_with_systemd} Requires: systemd +BuildRequires: systemd %endif %if 0%{with cephfs_java} BuildRequires: sharutils -- 2.39.5