]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph.spec.in: include SUSE in _with_systemd
authorNathan Cutler <ncutler@suse.cz>
Wed, 13 May 2015 12:57:48 +0000 (14:57 +0200)
committerNathan Cutler <ncutler@suse.com>
Tue, 27 Oct 2015 10:24:16 +0000 (11:24 +0100)
The master specfile newly defines a _with_systemd variable that should be true
for the set of distros that are using systemd. Since this set of distros
includes SUSE/openSUSE (at least for the more recent versions where ceph is
supported), this commit sets _with_systemdto true on SUSE/openSUSE.

http://tracker.ceph.com/issues/11610 Fixes: #11610

Signed-off-by: Nathan Cutler <ncutler@suse.cz>
(cherry picked from commit 61303656faa913880008e6a6a1725d2fd7002c1f)

Conflicts:
ceph.spec.in
            _udevrulesdir definition has been added -> trivial resolution

ceph.spec.in

index 6779e65c0c478962978e1bba2a6df612283e90ec..b882552275b6863159db8ec11da02fbb117aea7a 100644 (file)
@@ -8,12 +8,12 @@
 
 %{!?_udevrulesdir: %global _udevrulesdir /lib/udev/rules.d}
 
-# Use systemd files on RHEL 7 and above.
+# Use systemd files on RHEL 7 and above and in SUSE/openSUSE.
 # Note: We don't install unit files for the services yet. For now,
 # 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%{?fedora} || 0%{?rhel} >= 7
+%if 0%{?fedora} || 0%{?rhel} >= 7 || 0%{?suse_version}
   %global _with_systemd 1
 %endif