python-ceph should be fixed to depend on python-rados, python-rbd or
python-cephfs instead.
-%if 0%{?opensuse} || 0%{?suse_version}
-%debug_package
-%endif
-
#################################################################################
# common
#################################################################################
--with-rgw-user=root \
--with-rgw-group=root \
%endif
-%if 0%{?opensuse} || 0%{?suse_version}
+%if 0%{?suse_version}
--with-systemd-libexec-dir=/usr/lib/ceph/ \
--with-rgw-user=wwwrun \
--with-rgw-group=www \
%pre
%if 0%{?_with_systemd}
- %if 0%{?opensuse} || 0%{?suse_version}
+ %if 0%{?suse_version}
# service_add_pre and friends don't work with parameterized systemd service
# instances, only with single services or targets, so we always pass
# ceph.target to these macros
%post
/sbin/ldconfig
%if 0%{?_with_systemd}
- %if 0%{?opensuse} || 0%{?suse_version}
+ %if 0%{?suse_version}
%service_add_post ceph.target
%endif
%else
%preun
%if 0%{?_with_systemd}
- %if 0%{?opensuse} || 0%{?suse_version}
+ %if 0%{?suse_version}
%service_del_preun ceph.target
%endif
# Need a special case here when removing the RPM to disable specific
fi
fi
%else
- %if 0%{?opensuse} || 0%{?suse_version}
- %stop_on_removal ceph
- %endif
%if 0%{?rhel} || 0%{?fedora}
if [ $1 = 0 ] ; then
/sbin/service ceph stop >/dev/null 2>&1
%post radosgw
/sbin/ldconfig
-%if 0%{?opensuse} || 0%{?suse_version}
+%if 0%{?suse_version}
# TODO: find out what exactly this systemd-tmpfiles inovcation is for
systemd-tmpfiles --create /%{_tmpfilesdir}/ceph-rgw.conf
# explicit systemctl daemon-reload (that's the only relevant bit of