]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph.spec.in: set _with_systemd on RHEL 7 and Fedora
authorKen Dreyer <kdreyer@redhat.com>
Thu, 9 Apr 2015 17:10:52 +0000 (11:10 -0600)
committerNathan Cutler <ncutler@suse.com>
Tue, 27 Oct 2015 10:24:16 +0000 (11:24 +0100)
Commit 71a5090bca049a43e30a7f0cf99141950ef9c5dd added a "_with_systemd"
conditional to the RPMs, but I erred with the version comparison
operator, so this only applied to RHEL 8+, not RHEL 7+.

Adjust the conditional so that it will really apply to RHEL 7+. While
we're here, add Fedora as well.

Signed-off-by: Ken Dreyer <kdreyer@redhat.com>
Reported-by: Boris Ranto <branto@redhat.com>
(cherry picked from commit aa88364f30e2d2f254ade185a83ba263b48e2a73)

ceph.spec.in

index 3788241915c7748f64b2a01816b9bf6b0f1f71b4..6779e65c0c478962978e1bba2a6df612283e90ec 100644 (file)
@@ -13,7 +13,7 @@
 # the _with_systemd variable only implies that we'll install
 # /etc/tmpfiles.d/ceph.conf in order to set up the socket directory in
 # /var/run/ceph.
-%if 0%{?rhel} > 7
+%if 0%{?fedora} || 0%{?rhel} >= 7
   %global _with_systemd 1
 %endif