From c5cf81dd91b5fceab2125e8cb435b2691f152e71 Mon Sep 17 00:00:00 2001 From: Ken Dreyer Date: Wed, 25 Mar 2015 12:16:03 -0600 Subject: [PATCH] ceph.spec.in: fix _with_systemd conditional The RPM conditional needs a "?" in the event that it is not defined. --- ceph.spec.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ceph.spec.in b/ceph.spec.in index 0af78f2d8527..1d9b8ba350fd 100644 --- a/ceph.spec.in +++ b/ceph.spec.in @@ -47,7 +47,7 @@ Requires: hdparm Requires: cryptsetup Requires(post): binutils # We require this to be present for %%{_tmpfilesdir} -%if 0%{_with_systemd} +%if 0%{?_with_systemd} Requires: systemd %endif BuildRequires: gcc-c++ @@ -485,7 +485,7 @@ install -D src/init-ceph $RPM_BUILD_ROOT%{_initrddir}/ceph install -D src/init-radosgw.sysv $RPM_BUILD_ROOT%{_initrddir}/ceph-radosgw install -D src/init-rbdmap $RPM_BUILD_ROOT%{_initrddir}/rbdmap install -D src/rbdmap $RPM_BUILD_ROOT%{_sysconfdir}/ceph/rbdmap -%if 0%{_with_systemd} +%if 0%{?_with_systemd} install -m 0644 -D systemd/ceph.tmpfiles.d $RPM_BUILD_ROOT%{_tmpfilesdir}/%{name}.conf %endif mkdir -p $RPM_BUILD_ROOT%{_sbindir} @@ -585,7 +585,7 @@ fi %{_bindir}/ceph-debugpack %{_bindir}/ceph-coverage %{_initrddir}/ceph -%if 0%{_with_systemd} +%if 0%{?_with_systemd} %{_tmpfilesdir}/%{name}.conf %endif %{_sbindir}/ceph-disk -- 2.47.3