From: Nathan Cutler Date: Wed, 13 May 2015 12:57:48 +0000 (+0200) Subject: ceph.spec.in: include SUSE in _with_systemd X-Git-Tag: v9.0.1~1^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=67b73401fe819977d45b15c032ff7e79855c0b9d;p=ceph.git ceph.spec.in: include SUSE in _with_systemd 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 (cherry picked from commit 61303656faa913880008e6a6a1725d2fd7002c1f) --- diff --git a/ceph.spec.in b/ceph.spec.in index 7ccd122bbe17..e3a681d3605f 100644 --- a/ceph.spec.in +++ b/ceph.spec.in @@ -5,12 +5,12 @@ %{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")} %endif -# 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