Accepting request 929713 from filesystems:ceph:pacific
bsc#1191751 OBS-URL: https://build.opensuse.org/request/show/929713 OBS-URL: https://build.opensuse.org/package/show/filesystems:ceph/ceph?expand=0&rev=310
This commit is contained in:
34
ceph.spec
34
ceph.spec
@@ -127,7 +127,7 @@
|
||||
# main package definition
|
||||
#################################################################################
|
||||
Name: ceph
|
||||
Version: 16.2.6.45+g8fda9838398
|
||||
Version: 16.2.6.462+g5fefbbf8888
|
||||
Release: 0%{?dist}
|
||||
%if 0%{?fedora} || 0%{?rhel}
|
||||
Epoch: 2
|
||||
@@ -143,7 +143,7 @@ License: LGPL-2.1 and LGPL-3.0 and CC-BY-SA-3.0 and GPL-2.0 and BSL-1.0 and BSD-
|
||||
Group: System/Filesystems
|
||||
%endif
|
||||
URL: http://ceph.com/
|
||||
Source0: %{?_remote_tarball_prefix}ceph-16.2.6-45-g8fda9838398.tar.bz2
|
||||
Source0: %{?_remote_tarball_prefix}ceph-16.2.6-462-g5fefbbf8888.tar.bz2
|
||||
%if 0%{?suse_version}
|
||||
# _insert_obs_source_lines_here
|
||||
ExclusiveArch: x86_64 aarch64 ppc64le s390x
|
||||
@@ -1211,7 +1211,7 @@ This package provides Ceph default alerts for Prometheus.
|
||||
# common
|
||||
#################################################################################
|
||||
%prep
|
||||
%autosetup -p1 -n ceph-16.2.6-45-g8fda9838398
|
||||
%autosetup -p1 -n ceph-16.2.6-462-g5fefbbf8888
|
||||
|
||||
%build
|
||||
# LTO can be enabled as soon as the following GCC bug is fixed:
|
||||
@@ -2395,13 +2395,21 @@ if diff ${FILE_CONTEXT} ${FILE_CONTEXT}.pre > /dev/null 2>&1; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# Stop ceph.target while relabeling if CEPH_AUTO_RESTART_ON_UPGRADE=yes
|
||||
SYSCONF_CEPH=%{_sysconfdir}/sysconfig/ceph
|
||||
if [ -f $SYSCONF_CEPH -a -r $SYSCONF_CEPH ] ; then
|
||||
source $SYSCONF_CEPH
|
||||
fi
|
||||
|
||||
# Check whether the daemons are running
|
||||
/usr/bin/systemctl status ceph.target > /dev/null 2>&1
|
||||
STATUS=$?
|
||||
|
||||
# Stop the daemons if they were running
|
||||
if test $STATUS -eq 0; then
|
||||
/usr/bin/systemctl stop ceph.target > /dev/null 2>&1
|
||||
if [ "X$CEPH_AUTO_RESTART_ON_UPGRADE" = "Xyes" ] ; then
|
||||
/usr/bin/systemctl stop ceph.target > /dev/null 2>&1
|
||||
fi
|
||||
fi
|
||||
|
||||
# Relabel the files fix for first package install
|
||||
@@ -2413,7 +2421,9 @@ rm -f ${FILE_CONTEXT}.pre
|
||||
|
||||
# Start the daemons iff they were running before
|
||||
if test $STATUS -eq 0; then
|
||||
/usr/bin/systemctl start ceph.target > /dev/null 2>&1 || :
|
||||
if [ "X$CEPH_AUTO_RESTART_ON_UPGRADE" = "Xyes" ] ; then
|
||||
/usr/bin/systemctl start ceph.target > /dev/null 2>&1 || :
|
||||
fi
|
||||
fi
|
||||
exit 0
|
||||
|
||||
@@ -2433,13 +2443,21 @@ if [ $1 -eq 0 ]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# Stop ceph.target while relabeling if CEPH_AUTO_RESTART_ON_UPGRADE=yes
|
||||
SYSCONF_CEPH=%{_sysconfdir}/sysconfig/ceph
|
||||
if [ -f $SYSCONF_CEPH -a -r $SYSCONF_CEPH ] ; then
|
||||
source $SYSCONF_CEPH
|
||||
fi
|
||||
|
||||
# Check whether the daemons are running
|
||||
/usr/bin/systemctl status ceph.target > /dev/null 2>&1
|
||||
STATUS=$?
|
||||
|
||||
# Stop the daemons if they were running
|
||||
if test $STATUS -eq 0; then
|
||||
/usr/bin/systemctl stop ceph.target > /dev/null 2>&1
|
||||
if [ "X$CEPH_AUTO_RESTART_ON_UPGRADE" = "Xyes" ] ; then
|
||||
/usr/bin/systemctl stop ceph.target > /dev/null 2>&1
|
||||
fi
|
||||
fi
|
||||
|
||||
/usr/sbin/fixfiles -C ${FILE_CONTEXT}.pre restore 2> /dev/null
|
||||
@@ -2449,7 +2467,9 @@ if [ $1 -eq 0 ]; then
|
||||
|
||||
# Start the daemons if they were running before
|
||||
if test $STATUS -eq 0; then
|
||||
/usr/bin/systemctl start ceph.target > /dev/null 2>&1 || :
|
||||
if [ "X$CEPH_AUTO_RESTART_ON_UPGRADE" = "Xyes" ] ; then
|
||||
/usr/bin/systemctl start ceph.target > /dev/null 2>&1 || :
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
exit 0
|
||||
|
Reference in New Issue
Block a user