Accepting request 486364 from filesystems:ceph:luminous
12.0.1 OBS-URL: https://build.opensuse.org/request/show/486364 OBS-URL: https://build.opensuse.org/package/show/filesystems:ceph/ceph?expand=0&rev=78
This commit is contained in:
32
ceph.spec
32
ceph.spec
@@ -69,7 +69,7 @@
|
||||
# main package definition
|
||||
#################################################################################
|
||||
Name: ceph
|
||||
Version: 12.0.0+git.1489432599.165c23f
|
||||
Version: 12.0.1+git.1491557762.4e47e9f
|
||||
Release: 0
|
||||
Summary: User space components of the Ceph file system
|
||||
License: LGPL-2.1 and CC-BY-SA-1.0 and GPL-2.0 and BSL-1.0 and GPL-2.0-with-autoconf-exception and BSD-3-Clause and MIT
|
||||
@@ -796,6 +796,17 @@ export CXXFLAGS="$RPM_OPT_FLAGS"
|
||||
|
||||
env | sort
|
||||
|
||||
%if %{with lowmem_builder}
|
||||
%if 0%{?jobs} > 8
|
||||
%define _smp_mflags -j8
|
||||
%endif
|
||||
%endif
|
||||
|
||||
# unlimit _smp_mflags in system macro if not set above
|
||||
%define _smp_ncpus_max 0
|
||||
# extract the number of processors for use with cmake
|
||||
%define _smp_ncpus %(echo %{_smp_mflags} | sed 's/-j//')
|
||||
|
||||
mkdir build
|
||||
cd build
|
||||
cmake .. \
|
||||
@@ -834,8 +845,9 @@ cmake .. \
|
||||
%endif
|
||||
$CEPH_EXTRA_CMAKE_ARGS \
|
||||
%if 0%{with ocf}
|
||||
-DWITH_OCF=ON
|
||||
-DWITH_OCF=ON \
|
||||
%endif
|
||||
-DBOOST_J=%{_smp_ncpus}
|
||||
|
||||
# Parallel build settings ...
|
||||
PARALLEL_BUILD=%{?_smp_mflags}
|
||||
@@ -1228,11 +1240,11 @@ fi
|
||||
%post mon
|
||||
%if 0%{?suse_version}
|
||||
if [ $1 -eq 1 ] ; then
|
||||
/usr/bin/systemctl preset ceph-create-keys@\*.service ceph-mon@\*.service ceph-mon.target >/dev/null 2>&1 || :
|
||||
/usr/bin/systemctl preset ceph-mon@\*.service ceph-mon.target >/dev/null 2>&1 || :
|
||||
fi
|
||||
%endif
|
||||
%if 0%{?fedora} || 0%{?rhel}
|
||||
%systemd_post ceph-create-keys@\*.service ceph-mon@\*.service ceph-mon.target
|
||||
%systemd_post ceph-mon@\*.service ceph-mon.target
|
||||
%endif
|
||||
if [ $1 -eq 1 ] ; then
|
||||
/usr/bin/systemctl start ceph-mon.target >/dev/null 2>&1 || :
|
||||
@@ -1240,20 +1252,20 @@ fi
|
||||
|
||||
%preun mon
|
||||
%if 0%{?suse_version}
|
||||
%service_del_preun ceph-create-keys@\*.service ceph-mon@\*.service ceph-mon.target
|
||||
%service_del_preun ceph-mon@\*.service ceph-mon.target
|
||||
%endif
|
||||
%if 0%{?fedora} || 0%{?rhel}
|
||||
%systemd_preun ceph-create-keys@\*.service ceph-mon@\*.service ceph-mon.target
|
||||
%systemd_preun ceph-mon@\*.service ceph-mon.target
|
||||
%endif
|
||||
|
||||
%postun mon
|
||||
test -n "$FIRST_ARG" || FIRST_ARG=$1
|
||||
%if 0%{?suse_version}
|
||||
DISABLE_RESTART_ON_UPDATE="yes"
|
||||
%service_del_postun ceph-create-keys@\*.service ceph-mon@\*.service ceph-mon.target
|
||||
%service_del_postun ceph-mon@\*.service ceph-mon.target
|
||||
%endif
|
||||
%if 0%{?fedora} || 0%{?rhel}
|
||||
%systemd_postun ceph-create-keys@\*.service ceph-mon@\*.service ceph-mon.target
|
||||
%systemd_postun ceph-mon@\*.service ceph-mon.target
|
||||
%endif
|
||||
if [ $FIRST_ARG -ge 1 ] ; then
|
||||
# Restart on upgrade, but only if "CEPH_AUTO_RESTART_ON_UPGRADE" is set to
|
||||
@@ -1263,7 +1275,7 @@ if [ $FIRST_ARG -ge 1 ] ; then
|
||||
source $SYSCONF_CEPH
|
||||
fi
|
||||
if [ "X$CEPH_AUTO_RESTART_ON_UPGRADE" = "Xyes" ] ; then
|
||||
/usr/bin/systemctl try-restart ceph-create-keys@\*.service ceph-mon@\*.service > /dev/null 2>&1 || :
|
||||
/usr/bin/systemctl try-restart ceph-mon@\*.service > /dev/null 2>&1 || :
|
||||
fi
|
||||
fi
|
||||
|
||||
@@ -1391,7 +1403,7 @@ fi
|
||||
|
||||
%files osd
|
||||
%{_bindir}/ceph-clsinfo
|
||||
%{_bindir}/ceph-bluefs-tool
|
||||
%{_bindir}/ceph-bluestore-tool
|
||||
%{_bindir}/ceph-objectstore-tool
|
||||
%{_bindir}/ceph-osd
|
||||
%{_sbindir}/ceph-disk
|
||||
|
Reference in New Issue
Block a user