Skip to content

Commit

Permalink
Merge pull request #6692 from SUSE/wip-13860
Browse files Browse the repository at this point in the history
ceph.spec.in: add BuildRequires: systemd

Reviewed-by: Ken Dreyer <kdreyer@redhat.com>
  • Loading branch information
ktdreyer committed Dec 15, 2015
2 parents 9180a92 + 014e2f0 commit ff9712b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ceph.spec.in
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit ff9712b

Please sign in to comment.