mirror of
https://github.com/ceph/ceph
synced 2025-03-25 11:48:05 +00:00
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:
commit
ff9712b249
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user