Merge pull request #6692 from SUSE/wip-13860

ceph.spec.in: add BuildRequires: systemd

Reviewed-by: Ken Dreyer <kdreyer@redhat.com>
This commit is contained in:
Ken Dreyer 2015-12-15 08:27:58 -07:00
commit ff9712b249

View File

@ -43,6 +43,7 @@ restorecon -R /var/log/ceph > /dev/null 2>&1;
# /var/run/ceph.
%if 0%{?fedora} || 0%{?rhel} >= 7 || 0%{?suse_version} >= 1210
%global _with_systemd 1
%{!?tmpfiles_create: %global tmpfiles_create systemd-tmpfiles --create}
%endif
# LTTng-UST enabled on Fedora, RHEL 6, and SLES 12
@ -138,6 +139,7 @@ BuildRequires: yasm
%if 0%{?_with_systemd}
BuildRequires: pkgconfig(systemd)
BuildRequires: systemd-rpm-macros
BuildRequires: systemd
%{?systemd_requires}
%endif
PreReq: %fillup_prereq
@ -939,7 +941,7 @@ exit 0
%post -n ceph-common
%if 0%{?_with_systemd}
systemd-tmpfiles --create --prefix=/run/ceph
%tmpfiles_create %{_tmpfilesdir}/ceph-common.conf
%endif
%postun -n ceph-common