Migrate Factory to kraken
OBS-URL: https://build.opensuse.org/package/show/filesystems:ceph/ceph?expand=0&rev=60
This commit is contained in:
349
ceph.spec
349
ceph.spec
@@ -20,7 +20,12 @@
|
||||
%endif
|
||||
%bcond_with make_check
|
||||
%bcond_with xio
|
||||
%ifnarch s390 s390x
|
||||
%bcond_without tcmalloc
|
||||
%else
|
||||
# no gperftools/tcmalloc on s390(x)
|
||||
%bcond_with tcmalloc
|
||||
%endif
|
||||
%bcond_with lowmem_builder
|
||||
%bcond_with minimal_debugging_information
|
||||
%if 0%{?fedora} || 0%{?rhel}
|
||||
@@ -51,6 +56,7 @@
|
||||
|
||||
%{!?_udevrulesdir: %global _udevrulesdir /lib/udev/rules.d}
|
||||
%{!?tmpfiles_create: %global tmpfiles_create systemd-tmpfiles --create}
|
||||
%{!?python3_pkgversion: %global python3_pkgversion 3}
|
||||
|
||||
# unify libexec for all targets
|
||||
%global _libexecdir %{_exec_prefix}/lib
|
||||
@@ -60,7 +66,7 @@
|
||||
# common
|
||||
#################################################################################
|
||||
Name: ceph
|
||||
Version: 10.2.2+git.1471622341.b446b70
|
||||
Version: 11.0.0+git.1472202104.8999301
|
||||
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
|
||||
@@ -69,10 +75,14 @@ Group: System/Filesystems
|
||||
%endif
|
||||
URL: http://ceph.com/
|
||||
Source0: %{name}-%{version}.tar.bz2
|
||||
Source99: ceph-rpmlintrc
|
||||
Source99: ceph-rpmlintrc
|
||||
%if 0%{?suse_version}
|
||||
%if 0%{?is_opensuse}
|
||||
ExclusiveArch: x86_64 aarch64 ppc64 ppc64le
|
||||
%else
|
||||
ExclusiveArch: x86_64 aarch64
|
||||
%endif
|
||||
%endif
|
||||
#################################################################################
|
||||
# dependencies that apply across all distro families
|
||||
#################################################################################
|
||||
@@ -95,9 +105,14 @@ BuildRequires: cryptsetup
|
||||
BuildRequires: fuse-devel
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: gdbm
|
||||
%if 0%{with tcmalloc}
|
||||
BuildRequires: gperftools-devel
|
||||
%endif
|
||||
BuildRequires: hdparm
|
||||
BuildRequires: jq
|
||||
BuildRequires: leveldb-devel > 1.2
|
||||
BuildRequires: libaio-devel
|
||||
BuildRequires: libatomic_ops-devel
|
||||
BuildRequires: libblkid-devel >= 2.17
|
||||
BuildRequires: libcurl-devel
|
||||
BuildRequires: libudev-devel
|
||||
@@ -134,13 +149,9 @@ BuildRequires: systemd
|
||||
PreReq: %fillup_prereq
|
||||
BuildRequires: net-tools
|
||||
BuildRequires: libbz2-devel
|
||||
%if 0%{with tcmalloc}
|
||||
BuildRequires: gperftools-devel
|
||||
%endif
|
||||
BuildRequires: btrfsprogs
|
||||
BuildRequires: mozilla-nss-devel
|
||||
BuildRequires: keyutils-devel
|
||||
BuildRequires: libatomic-ops-devel
|
||||
BuildRequires: libopenssl-devel
|
||||
BuildRequires: lsb-release
|
||||
BuildRequires: openldap2-devel
|
||||
@@ -152,13 +163,21 @@ BuildRequires: boost-random
|
||||
BuildRequires: btrfs-progs
|
||||
BuildRequires: nss-devel
|
||||
BuildRequires: keyutils-libs-devel
|
||||
BuildRequires: libatomic_ops-devel
|
||||
BuildRequires: gperftools-devel
|
||||
BuildRequires: openldap-devel
|
||||
BuildRequires: openssl-devel
|
||||
BuildRequires: redhat-lsb-core
|
||||
BuildRequires: Cython
|
||||
%endif
|
||||
# python34-... for RHEL, python3-... for all other supported distros
|
||||
%if 0%{?rhel}
|
||||
BuildRequires: python34-devel
|
||||
BuildRequires: python34-setuptools
|
||||
BuildRequires: python34-Cython
|
||||
%else
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3-setuptools
|
||||
BuildRequires: python3-Cython
|
||||
%endif
|
||||
# lttng and babeltrace for rbd-replay-prep
|
||||
%if %{with lttng}
|
||||
%if 0%{?fedora} || 0%{?rhel}
|
||||
@@ -213,7 +232,6 @@ Requires: python-setuptools
|
||||
Requires: grep
|
||||
Requires: xfsprogs
|
||||
Requires: logrotate
|
||||
Requires: parted
|
||||
Requires: util-linux
|
||||
Requires: hdparm
|
||||
Requires: cryptsetup
|
||||
@@ -322,12 +340,6 @@ Requires: librados2 = %{version}-%{release}
|
||||
Requires: librgw2 = %{version}-%{release}
|
||||
%if 0%{?rhel} || 0%{?fedora}
|
||||
Requires: mailcap
|
||||
# python-flask for powerdns
|
||||
Requires: python-flask
|
||||
%endif
|
||||
%if 0%{?suse_version}
|
||||
# python-Flask for powerdns
|
||||
Requires: python-Flask
|
||||
%endif
|
||||
%description radosgw
|
||||
RADOS is a distributed object store used by the Ceph distributed
|
||||
@@ -359,6 +371,7 @@ Requires: gdisk
|
||||
%if 0%{?suse_version}
|
||||
Requires: gptfdisk
|
||||
%endif
|
||||
Requires: parted
|
||||
%description osd
|
||||
ceph-osd is the object storage daemon for the Ceph distributed file
|
||||
system. It is responsible for storing objects on a local file system
|
||||
@@ -411,13 +424,23 @@ This package contains libraries and headers needed to develop programs
|
||||
that use RADOS gateway client library.
|
||||
|
||||
%package -n python-rados
|
||||
Summary: Python libraries for the RADOS object store
|
||||
Summary: Python 2 libraries for the RADOS object store
|
||||
Group: System Environment/Libraries
|
||||
License: LGPL-2.0
|
||||
Requires: librados2 = %{version}-%{release}
|
||||
Obsoletes: python-ceph < %{version}-%{release}
|
||||
%description -n python-rados
|
||||
This package contains Python libraries for interacting with Cephs RADOS
|
||||
This package contains Python 2 libraries for interacting with Cephs RADOS
|
||||
object store.
|
||||
|
||||
%package -n python%{python3_pkgversion}-rados
|
||||
Summary: Python 3 libraries for the RADOS object store
|
||||
Group: System Environment/Libraries
|
||||
License: LGPL-2.0
|
||||
Requires: python%{python3_pkgversion}
|
||||
Requires: librados2 = %{epoch}:%{version}-%{release}
|
||||
%description -n python%{python3_pkgversion}-rados
|
||||
This package contains Python 3 libraries for interacting with Cephs RADOS
|
||||
object store.
|
||||
|
||||
%package -n libradosstriper1
|
||||
@@ -471,14 +494,24 @@ This package contains libraries and headers needed to develop programs
|
||||
that use RADOS block device.
|
||||
|
||||
%package -n python-rbd
|
||||
Summary: Python libraries for the RADOS block device
|
||||
Summary: Python 2 libraries for the RADOS block device
|
||||
Group: System Environment/Libraries
|
||||
License: LGPL-2.0
|
||||
Requires: librbd1 = %{version}-%{release}
|
||||
Requires: python-rados = %{version}-%{release}
|
||||
Obsoletes: python-ceph < %{version}-%{release}
|
||||
%description -n python-rbd
|
||||
This package contains Python libraries for interacting with Cephs RADOS
|
||||
This package contains Python 2 libraries for interacting with Cephs RADOS
|
||||
block device.
|
||||
|
||||
%package -n python%{python3_pkgversion}-rbd
|
||||
Summary: Python 3 libraries for the RADOS block device
|
||||
Group: System Environment/Libraries
|
||||
License: LGPL-2.0
|
||||
Requires: librbd1 = %{epoch}:%{version}-%{release}
|
||||
Requires: python%{python3_pkgversion}-rados = %{epoch}:%{version}-%{release}
|
||||
%description -n python%{python3_pkgversion}-rbd
|
||||
This package contains Python 3 libraries for interacting with Cephs RADOS
|
||||
block device.
|
||||
|
||||
%package -n libcephfs1
|
||||
@@ -509,16 +542,36 @@ This package contains libraries and headers needed to develop programs
|
||||
that use Cephs distributed file system.
|
||||
|
||||
%package -n python-cephfs
|
||||
Summary: Python libraries for Ceph distributed file system
|
||||
Summary: Python 2 libraries for Ceph distributed file system
|
||||
Group: System Environment/Libraries
|
||||
License: LGPL-2.0
|
||||
Requires: libcephfs1 = %{version}-%{release}
|
||||
Requires: python-rados = %{version}-%{release}
|
||||
Obsoletes: python-ceph < %{version}-%{release}
|
||||
%description -n python-cephfs
|
||||
This package contains Python libraries for interacting with Cephs distributed
|
||||
This package contains Python 2 libraries for interacting with Cephs distributed
|
||||
file system.
|
||||
|
||||
%package -n python%{python3_pkgversion}-cephfs
|
||||
Summary: Python 3 libraries for Ceph distributed file system
|
||||
Group: System Environment/Libraries
|
||||
License: LGPL-2.0
|
||||
Requires: libcephfs1 = %{epoch}:%{version}-%{release}
|
||||
Requires: python%{python3_pkgversion}-rados = %{epoch}:%{version}-%{release}
|
||||
%description -n python%{python3_pkgversion}-cephfs
|
||||
This package contains Python 3 libraries for interacting with Cephs distributed
|
||||
file system.
|
||||
|
||||
%package -n python%{python3_pkgversion}-ceph-argparse
|
||||
Summary: Python 3 utility libraries for Ceph CLI
|
||||
Group: System Environment/Libraries
|
||||
License: LGPL-2.0
|
||||
%description -n python%{python3_pkgversion}-ceph-argparse
|
||||
This package contains types and routines for Python 3 used by the Ceph CLI as
|
||||
well as the RESTful interface. These have to do with querying the daemons for
|
||||
command-description information, validating user command input against those
|
||||
descriptions, and submitting the command to the appropriate daemon.
|
||||
|
||||
%if 0%{with ceph_test_package}
|
||||
%package -n ceph-test
|
||||
Summary: Ceph benchmarks and test tools
|
||||
@@ -584,11 +637,26 @@ populated file-systems.
|
||||
|
||||
%endif
|
||||
|
||||
%package -n python-ceph-compat
|
||||
Summary: Compatibility package for Cephs python libraries
|
||||
Group: System Environment/Libraries
|
||||
License: LGPL-2.0
|
||||
Obsoletes: python-ceph
|
||||
Requires: python-rados = %{epoch}:%{version}-%{release}
|
||||
Requires: python-rbd = %{epoch}:%{version}-%{release}
|
||||
Requires: python-cephfs = %{epoch}:%{version}-%{release}
|
||||
Provides: python-ceph
|
||||
%description -n python-ceph-compat
|
||||
This is a compatibility package to accommodate python-ceph split into
|
||||
python-rados, python-rbd and python-cephfs. Packages still depending on
|
||||
python-ceph should be fixed to depend on python-rados, python-rbd or
|
||||
python-cephfs instead.
|
||||
|
||||
#################################################################################
|
||||
# common
|
||||
#################################################################################
|
||||
%prep
|
||||
%setup -q
|
||||
%autosetup -p1
|
||||
|
||||
%build
|
||||
%if 0%{with cephfs_java}
|
||||
@@ -598,8 +666,6 @@ for i in /usr/{lib64,lib}/jvm/java/include{,/linux}; do
|
||||
done
|
||||
%endif
|
||||
|
||||
./autogen.sh
|
||||
|
||||
%if %{with lowmem_builder}
|
||||
RPM_OPT_FLAGS="$RPM_OPT_FLAGS --param ggc-min-expand=20 --param ggc-min-heapsize=32768"
|
||||
%endif
|
||||
@@ -608,44 +674,48 @@ RPM_OPT_FLAGS="`echo $RPM_OPT_FLAGS | sed -e 's/^-g /-g1 /g' -e 's/ -g / -g1 /g'
|
||||
%endif
|
||||
export RPM_OPT_FLAGS=`echo $RPM_OPT_FLAGS | sed -e 's/i386/i486/'`
|
||||
|
||||
%{configure} CPPFLAGS="$java_inc" \
|
||||
--prefix=/usr \
|
||||
--libexecdir=%{_libexecdir} \
|
||||
--localstatedir=%{_localstatedir} \
|
||||
--sysconfdir=%{_sysconfdir} \
|
||||
--disable-static \
|
||||
export CPPFLAGS="$java_inc"
|
||||
export CFLAGS="$RPM_OPT_FLAGS"
|
||||
export CXXFLAGS="$RPM_OPT_FLAGS"
|
||||
|
||||
mkdir build
|
||||
cd build
|
||||
cmake .. \
|
||||
-DCMAKE_INSTALL_PREFIX=%{_prefix} \
|
||||
-DCMAKE_INSTALL_LIBDIR=%{_libdir} \
|
||||
-DCMAKE_INSTALL_LIBEXECDIR=%{_libexecdir} \
|
||||
-DCMAKE_INSTALL_LOCALSTATEDIR=%{_localstatedir} \
|
||||
-DCMAKE_INSTALL_SYSCONFDIR=%{_sysconfdir} \
|
||||
-DCMAKE_INSTALL_MANDIR=%{_mandir} \
|
||||
-DCMAKE_INSTALL_DOCDIR=%{_docdir}/ceph \
|
||||
-DWITH_MANPAGE=ON \
|
||||
-DWITH_SYSTEMD=ON \
|
||||
%if 0%{?rhel} && ! 0%{?centos}
|
||||
--enable-subman \
|
||||
%endif
|
||||
--with-systemdsystemunitdir=%_unitdir \
|
||||
--docdir=%{_docdir}/ceph \
|
||||
--with-man-pages \
|
||||
--mandir="%_mandir" \
|
||||
--with-nss \
|
||||
--without-cryptopp \
|
||||
--with-debug \
|
||||
%if 0%{without ceph_test_package}
|
||||
--without-tests \
|
||||
%endif
|
||||
%if 0%{with cephfs_java}
|
||||
--enable-cephfs-java \
|
||||
-DWITH_SUBMAN=ON \
|
||||
%endif
|
||||
%if 0%{with xio}
|
||||
--enable-xio \
|
||||
-DWITH_XIO=ON \
|
||||
%endif
|
||||
%if 0%{without ceph_test_package}
|
||||
-DWITH_TESTS=OFF \
|
||||
%endif
|
||||
%if 0%{with cephfs_java}
|
||||
-DWITH_CEPHFS_JAVA=ON \
|
||||
%endif
|
||||
%if 0%{with selinux}
|
||||
--with-selinux \
|
||||
-DWITH_SELINUX=ON \
|
||||
%endif
|
||||
--with-librocksdb-static=check \
|
||||
--with-radosgw \
|
||||
%if %{without lttng}
|
||||
--without-lttng \
|
||||
--without-babeltrace \
|
||||
%if %{with lttng}
|
||||
-DWITH_LTTNG=ON \
|
||||
-DHAVE_BABELTRACE=ON \
|
||||
%else
|
||||
-DWITH_LTTNG=OFF \
|
||||
-DHAVE_BABELTRACE=OFF \
|
||||
%endif
|
||||
$CEPH_EXTRA_CMAKE_ARGS \
|
||||
%if 0%{with ocf}
|
||||
-DWITH_OCF=ON
|
||||
%endif
|
||||
$CEPH_EXTRA_CONFIGURE_ARGS \
|
||||
%{?_with_ocf} \
|
||||
%{?_with_tcmalloc} \
|
||||
CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS"
|
||||
|
||||
# Parallel build settings ...
|
||||
PARALLEL_BUILD=%{?_smp_mflags}
|
||||
@@ -676,16 +746,23 @@ fi
|
||||
|
||||
make "$PARALLEL_BUILD"
|
||||
|
||||
|
||||
%if 0%{with make_check}
|
||||
%check
|
||||
# run in-tree unittests
|
||||
make CHECK_ULIMIT=false %{?_smp_mflags} check
|
||||
cd build
|
||||
ctest %{?_smp_mflags}
|
||||
|
||||
%endif
|
||||
|
||||
|
||||
|
||||
%install
|
||||
pushd build
|
||||
make DESTDIR=%{buildroot} install
|
||||
find %{buildroot} -type f -name "*.la" -exec rm -f {} ';'
|
||||
find %{buildroot} -type f -name "*.a" -exec rm -f {} ';'
|
||||
# we have dropped sysvinit bits
|
||||
rm -f %{buildroot}/%{_sysconfdir}/init.d/ceph
|
||||
popd
|
||||
install -D src/etc-rbdmap %{buildroot}%{_sysconfdir}/ceph/rbdmap
|
||||
%if 0%{?fedora} || 0%{?rhel}
|
||||
install -m 0644 -D etc/sysconfig/ceph %{buildroot}%{_sysconfdir}/sysconfig/ceph
|
||||
@@ -711,6 +788,7 @@ ln -sf %{_sbindir}/mount.ceph %{buildroot}/sbin/mount.ceph
|
||||
|
||||
# udev rules
|
||||
install -m 0644 -D udev/50-rbd.rules %{buildroot}%{_udevrulesdir}/50-rbd.rules
|
||||
install -m 0644 -D udev/60-ceph-by-parttypeuuid.rules %{buildroot}%{_udevrulesdir}/60-ceph-by-parttypeuuid.rules
|
||||
install -m 0644 -D udev/95-ceph-osd.rules %{buildroot}%{_udevrulesdir}/95-ceph-osd.rules
|
||||
|
||||
#set up placeholder directories
|
||||
@@ -726,11 +804,6 @@ mkdir -p %{buildroot}%{_localstatedir}/lib/ceph/bootstrap-osd
|
||||
mkdir -p %{buildroot}%{_localstatedir}/lib/ceph/bootstrap-mds
|
||||
mkdir -p %{buildroot}%{_localstatedir}/lib/ceph/bootstrap-rgw
|
||||
|
||||
# hack to reduce disk space usage in OBS
|
||||
%if 0%{?is_opensuse}
|
||||
rm -rf .* * 2>/dev/null | :
|
||||
%endif
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}
|
||||
|
||||
@@ -751,17 +824,13 @@ rm -rf %{buildroot}
|
||||
%{_bindir}/ceph-run
|
||||
%{_bindir}/ceph-dencoder
|
||||
%{_bindir}/ceph-detect-init
|
||||
%{_bindir}/cephfs
|
||||
%{_unitdir}/ceph-create-keys@.service
|
||||
%{_bindir}/cephfs-data-scan
|
||||
%{_bindir}/cephfs-journal-tool
|
||||
%{_bindir}/cephfs-table-tool
|
||||
%{_libexecdir}/systemd/system-preset/50-ceph.preset
|
||||
%{_sbindir}/ceph-create-keys
|
||||
%{_sbindir}/rcceph
|
||||
%{_sbindir}/mount.ceph
|
||||
%if 0%{?suse_version}
|
||||
/sbin/mount.ceph
|
||||
%endif
|
||||
%dir %{_libexecdir}/ceph
|
||||
%{_libexecdir}/ceph/ceph_common.sh
|
||||
%dir %{_libdir}/rados-classes
|
||||
@@ -795,8 +864,6 @@ rm -rf %{buildroot}
|
||||
%{_mandir}/man8/crushtool.8*
|
||||
%{_mandir}/man8/osdmaptool.8*
|
||||
%{_mandir}/man8/monmaptool.8*
|
||||
%{_mandir}/man8/cephfs.8*
|
||||
%{_mandir}/man8/mount.ceph.8*
|
||||
#set up placeholder directories
|
||||
%attr(750,ceph,ceph) %dir %{_localstatedir}/lib/ceph/tmp
|
||||
%attr(750,ceph,ceph) %dir %{_localstatedir}/lib/ceph/bootstrap-osd
|
||||
@@ -807,14 +874,16 @@ rm -rf %{buildroot}
|
||||
/sbin/ldconfig
|
||||
%if 0%{?suse_version}
|
||||
%fillup_only
|
||||
if [ $1 -ge 1 ] ; then
|
||||
if [ $1 -eq 1 ] ; then
|
||||
/usr/bin/systemctl preset ceph.target >/dev/null 2>&1 || :
|
||||
fi
|
||||
%endif
|
||||
%if 0%{?fedora} || 0%{?rhel}
|
||||
%systemd_post ceph.target
|
||||
%endif
|
||||
if [ $1 -eq 1 ] ; then
|
||||
/usr/bin/systemctl start ceph.target >/dev/null 2>&1 || :
|
||||
fi
|
||||
|
||||
%preun base
|
||||
%if 0%{?suse_version}
|
||||
@@ -834,7 +903,6 @@ DISABLE_RESTART_ON_UPDATE="yes"
|
||||
%systemd_postun ceph.target
|
||||
%endif
|
||||
|
||||
#################################################################################
|
||||
%files common
|
||||
%defattr(-,root,root,-)
|
||||
%{_bindir}/ceph
|
||||
@@ -848,6 +916,10 @@ DISABLE_RESTART_ON_UPDATE="yes"
|
||||
%{_bindir}/rbd-replay
|
||||
%{_bindir}/rbd-replay-many
|
||||
%{_bindir}/rbdmap
|
||||
%{_sbindir}/mount.ceph
|
||||
%if 0%{?suse_version}
|
||||
/sbin/mount.ceph
|
||||
%endif
|
||||
%if %{with lttng}
|
||||
%{_bindir}/rbd-replay-prep
|
||||
%endif
|
||||
@@ -861,6 +933,7 @@ DISABLE_RESTART_ON_UPDATE="yes"
|
||||
%{_mandir}/man8/ceph-syn.8*
|
||||
%{_mandir}/man8/ceph-post-file.8*
|
||||
%{_mandir}/man8/ceph.8*
|
||||
%{_mandir}/man8/mount.ceph.8*
|
||||
%{_mandir}/man8/rados.8*
|
||||
%{_mandir}/man8/rbd.8*
|
||||
%{_mandir}/man8/rbdmap.8*
|
||||
@@ -869,8 +942,8 @@ DISABLE_RESTART_ON_UPDATE="yes"
|
||||
%{_mandir}/man8/rbd-replay-prep.8*
|
||||
%dir %{_datadir}/ceph/
|
||||
%{_datadir}/ceph/known_hosts_drop.ceph.com
|
||||
%{_datadir}/ceph/id_dsa_drop.ceph.com
|
||||
%{_datadir}/ceph/id_dsa_drop.ceph.com.pub
|
||||
%{_datadir}/ceph/id_rsa_drop.ceph.com
|
||||
%{_datadir}/ceph/id_rsa_drop.ceph.com.pub
|
||||
%dir %{_sysconfdir}/ceph/
|
||||
%config %{_sysconfdir}/bash_completion.d/rados
|
||||
%config %{_sysconfdir}/bash_completion.d/rbd
|
||||
@@ -924,7 +997,6 @@ if [ "$1" -eq "0" ] ; then
|
||||
rm -rf %{_sysconfdir}/ceph
|
||||
fi
|
||||
|
||||
#################################################################################
|
||||
%files mds
|
||||
%{_bindir}/ceph-mds
|
||||
%{_mandir}/man8/ceph-mds.8*
|
||||
@@ -934,14 +1006,16 @@ fi
|
||||
|
||||
%post mds
|
||||
%if 0%{?suse_version}
|
||||
if [ $1 -ge 1 ] ; then
|
||||
if [ $1 -eq 1 ] ; then
|
||||
/usr/bin/systemctl preset ceph-mds@\*.service ceph-mds.target >/dev/null 2>&1 || :
|
||||
fi
|
||||
%endif
|
||||
%if 0%{?fedora} || 0%{?rhel}
|
||||
%systemd_post ceph-mds@\*.service ceph-mds.target
|
||||
%endif
|
||||
if [ $1 -eq 1 ] ; then
|
||||
/usr/bin/systemctl start ceph-mds.target >/dev/null 2>&1 || :
|
||||
fi
|
||||
|
||||
%preun mds
|
||||
%if 0%{?suse_version}
|
||||
@@ -972,7 +1046,6 @@ if [ $FIRST_ARG -ge 1 ] ; then
|
||||
fi
|
||||
fi
|
||||
|
||||
#################################################################################
|
||||
%files mon
|
||||
%{_bindir}/ceph-mon
|
||||
%{_bindir}/ceph-rest-api
|
||||
@@ -985,31 +1058,33 @@ fi
|
||||
|
||||
%post mon
|
||||
%if 0%{?suse_version}
|
||||
if [ $1 -ge 1 ] ; then
|
||||
/usr/bin/systemctl preset ceph-mon@\*.service ceph-mon.target >/dev/null 2>&1 || :
|
||||
if [ $1 -eq 1 ] ; then
|
||||
/usr/bin/systemctl preset ceph-create-keys@\*.service ceph-mon@\*.service ceph-mon.target >/dev/null 2>&1 || :
|
||||
fi
|
||||
%endif
|
||||
%if 0%{?fedora} || 0%{?rhel}
|
||||
%systemd_post ceph-mon@\*.service ceph-mon.target
|
||||
%systemd_post ceph-create-keys@\*.service ceph-mon@\*.service ceph-mon.target
|
||||
%endif
|
||||
if [ $1 -eq 1 ] ; then
|
||||
/usr/bin/systemctl start ceph-mon.target >/dev/null 2>&1 || :
|
||||
fi
|
||||
|
||||
%preun mon
|
||||
%if 0%{?suse_version}
|
||||
%service_del_preun ceph-mon@\*.service ceph-mon.target
|
||||
%service_del_preun ceph-create-keys@\*.service ceph-mon@\*.service ceph-mon.target
|
||||
%endif
|
||||
%if 0%{?fedora} || 0%{?rhel}
|
||||
%systemd_preun ceph-mon@\*.service ceph-mon.target
|
||||
%systemd_preun ceph-create-keys@\*.service 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-mon@\*.service ceph-mon.target
|
||||
%service_del_postun ceph-create-keys@\*.service ceph-mon@\*.service ceph-mon.target
|
||||
%endif
|
||||
%if 0%{?fedora} || 0%{?rhel}
|
||||
%systemd_postun ceph-mon@\*.service ceph-mon.target
|
||||
%systemd_postun ceph-create-keys@\*.service 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
|
||||
@@ -1019,24 +1094,21 @@ 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-mon@\*.service > /dev/null 2>&1 || :
|
||||
/usr/bin/systemctl try-restart ceph-create-keys@\*.service ceph-mon@\*.service > /dev/null 2>&1 || :
|
||||
fi
|
||||
fi
|
||||
|
||||
#################################################################################
|
||||
%files fuse
|
||||
%defattr(-,root,root,-)
|
||||
%{_bindir}/ceph-fuse
|
||||
%{_mandir}/man8/ceph-fuse.8*
|
||||
%{_sbindir}/mount.fuse.ceph
|
||||
|
||||
#################################################################################
|
||||
%files -n rbd-fuse
|
||||
%defattr(-,root,root,-)
|
||||
%{_bindir}/rbd-fuse
|
||||
%{_mandir}/man8/rbd-fuse.8*
|
||||
|
||||
#################################################################################
|
||||
%files -n rbd-mirror
|
||||
%defattr(-,root,root,-)
|
||||
%{_bindir}/rbd-mirror
|
||||
@@ -1046,14 +1118,16 @@ fi
|
||||
|
||||
%post -n rbd-mirror
|
||||
%if 0%{?suse_version}
|
||||
if [ $1 -ge 1 ] ; then
|
||||
if [ $1 -eq 1 ] ; then
|
||||
/usr/bin/systemctl preset ceph-rbd-mirror@\*.service ceph-rbd-mirror.target >/dev/null 2>&1 || :
|
||||
fi
|
||||
%endif
|
||||
%if 0%{?fedora} || 0%{?rhel}
|
||||
%systemd_post ceph-rbd-mirror@\*.service ceph-rbd-mirror.target
|
||||
%endif
|
||||
if [ $1 -eq 1 ] ; then
|
||||
/usr/bin/systemctl start ceph-rbd-mirror.target >/dev/null 2>&1 || :
|
||||
fi
|
||||
|
||||
%preun -n rbd-mirror
|
||||
%if 0%{?suse_version}
|
||||
@@ -1084,13 +1158,11 @@ if [ $FIRST_ARG -ge 1 ] ; then
|
||||
fi
|
||||
fi
|
||||
|
||||
#################################################################################
|
||||
%files -n rbd-nbd
|
||||
%defattr(-,root,root,-)
|
||||
%{_bindir}/rbd-nbd
|
||||
%{_mandir}/man8/rbd-nbd.8*
|
||||
|
||||
#################################################################################
|
||||
%files radosgw
|
||||
%defattr(-,root,root,-)
|
||||
%{_bindir}/radosgw
|
||||
@@ -1115,14 +1187,16 @@ chown ceph.ceph /var/log/ceph-radosgw
|
||||
|
||||
%post radosgw
|
||||
%if 0%{?suse_version}
|
||||
if [ $1 -ge 1 ] ; then
|
||||
if [ $1 -eq 1 ] ; then
|
||||
/usr/bin/systemctl preset ceph-radosgw@\*.service ceph-radosgw.target >/dev/null 2>&1 || :
|
||||
fi
|
||||
%endif
|
||||
%if 0%{?fedora} || 0%{?rhel}
|
||||
%systemd_post ceph-radosgw@\*.service ceph-radosgw.target
|
||||
%endif
|
||||
if [ $1 -eq 1 ] ; then
|
||||
/usr/bin/systemctl start ceph-radosgw.target >/dev/null 2>&1 || :
|
||||
fi
|
||||
|
||||
%preun radosgw
|
||||
%if 0%{?suse_version}
|
||||
@@ -1153,7 +1227,6 @@ if [ $FIRST_ARG -ge 1 ] ; then
|
||||
fi
|
||||
fi
|
||||
|
||||
#################################################################################
|
||||
%files osd
|
||||
%{_bindir}/ceph-clsinfo
|
||||
%{_bindir}/ceph-bluefs-tool
|
||||
@@ -1163,6 +1236,7 @@ fi
|
||||
%{_sbindir}/ceph-disk-udev
|
||||
%{_libexecdir}/ceph/ceph-osd-prestart.sh
|
||||
%dir %{_udevrulesdir}
|
||||
%{_udevrulesdir}/60-ceph-by-parttypeuuid.rules
|
||||
%{_udevrulesdir}/95-ceph-osd.rules
|
||||
%{_mandir}/man8/ceph-clsinfo.8*
|
||||
%{_mandir}/man8/ceph-disk.8*
|
||||
@@ -1177,14 +1251,16 @@ fi
|
||||
|
||||
%post osd
|
||||
%if 0%{?suse_version}
|
||||
if [ $1 -ge 1 ] ; then
|
||||
if [ $1 -eq 1 ] ; then
|
||||
/usr/bin/systemctl preset ceph-disk@\*.service ceph-osd@\*.service ceph-osd.target >/dev/null 2>&1 || :
|
||||
fi
|
||||
%endif
|
||||
%if 0%{?fedora} || 0%{?rhel}
|
||||
%systemd_post ceph-disk@\*.service ceph-osd@\*.service ceph-osd.target
|
||||
%endif
|
||||
if [ $1 -eq 1 ] ; then
|
||||
/usr/bin/systemctl start ceph-osd.target >/dev/null 2>&1 || :
|
||||
fi
|
||||
|
||||
%preun osd
|
||||
%if 0%{?suse_version}
|
||||
@@ -1215,7 +1291,6 @@ if [ $FIRST_ARG -ge 1 ] ; then
|
||||
fi
|
||||
fi
|
||||
|
||||
#################################################################################
|
||||
%if %{with ocf}
|
||||
|
||||
%files resource-agents
|
||||
@@ -1228,7 +1303,6 @@ fi
|
||||
|
||||
%endif
|
||||
|
||||
#################################################################################
|
||||
%files -n librados2
|
||||
%defattr(-,root,root,-)
|
||||
%{_libdir}/librados.so.*
|
||||
@@ -1236,13 +1310,10 @@ fi
|
||||
%{_libdir}/librados_tp.so.*
|
||||
%endif
|
||||
|
||||
%post -n librados2
|
||||
/sbin/ldconfig
|
||||
%post -n librados2 -p /sbin/ldconfig
|
||||
|
||||
%postun -n librados2
|
||||
/sbin/ldconfig
|
||||
%postun -n librados2 -p /sbin/ldconfig
|
||||
|
||||
#################################################################################
|
||||
%files -n librados-devel
|
||||
%defattr(-,root,root,-)
|
||||
%dir %{_includedir}/rados
|
||||
@@ -1262,24 +1333,24 @@ fi
|
||||
%{_bindir}/librados-config
|
||||
%{_mandir}/man8/librados-config.8*
|
||||
|
||||
#################################################################################
|
||||
%files -n python-rados
|
||||
%defattr(-,root,root,-)
|
||||
%{python_sitearch}/rados.so
|
||||
%{python_sitearch}/rados-*.egg-info
|
||||
|
||||
#################################################################################
|
||||
%files -n python%{python3_pkgversion}-rados
|
||||
%defattr(-,root,root,-)
|
||||
%{python3_sitearch}/rados.cpython*.so
|
||||
%{python3_sitearch}/rados-*.egg-info
|
||||
|
||||
%files -n libradosstriper1
|
||||
%defattr(-,root,root,-)
|
||||
%{_libdir}/libradosstriper.so.*
|
||||
|
||||
%post -n libradosstriper1
|
||||
/sbin/ldconfig
|
||||
%post -n libradosstriper1 -p /sbin/ldconfig
|
||||
|
||||
%postun -n libradosstriper1
|
||||
/sbin/ldconfig
|
||||
%postun -n libradosstriper1 -p /sbin/ldconfig
|
||||
|
||||
#################################################################################
|
||||
%files -n libradosstriper-devel
|
||||
%defattr(-,root,root,-)
|
||||
%dir %{_includedir}/radosstriper
|
||||
@@ -1287,7 +1358,6 @@ fi
|
||||
%{_includedir}/radosstriper/libradosstriper.hpp
|
||||
%{_libdir}/libradosstriper.so
|
||||
|
||||
#################################################################################
|
||||
%files -n librbd1
|
||||
%defattr(-,root,root,-)
|
||||
%{_libdir}/librbd.so.*
|
||||
@@ -1300,10 +1370,8 @@ fi
|
||||
mkdir -p /usr/lib64/qemu/
|
||||
ln -sf %{_libdir}/librbd.so.1 /usr/lib64/qemu/librbd.so.1
|
||||
|
||||
%postun -n librbd1
|
||||
/sbin/ldconfig
|
||||
%postun -n librbd1 -p /sbin/ldconfig
|
||||
|
||||
#################################################################################
|
||||
%files -n librbd-devel
|
||||
%defattr(-,root,root,-)
|
||||
%dir %{_includedir}/rbd
|
||||
@@ -1315,18 +1383,14 @@ ln -sf %{_libdir}/librbd.so.1 /usr/lib64/qemu/librbd.so.1
|
||||
%{_libdir}/librbd_tp.so
|
||||
%endif
|
||||
|
||||
#################################################################################
|
||||
%files -n librgw2
|
||||
%defattr(-,root,root,-)
|
||||
%{_libdir}/librgw.so.*
|
||||
|
||||
%post -n librgw2
|
||||
/sbin/ldconfig
|
||||
%post -n librgw2 -p /sbin/ldconfig
|
||||
|
||||
%postun -n librgw2
|
||||
/sbin/ldconfig
|
||||
%postun -n librgw2 -p /sbin/ldconfig
|
||||
|
||||
#################################################################################
|
||||
%files -n librgw-devel
|
||||
%defattr(-,root,root,-)
|
||||
%dir %{_includedir}/rados
|
||||
@@ -1334,38 +1398,54 @@ ln -sf %{_libdir}/librbd.so.1 /usr/lib64/qemu/librbd.so.1
|
||||
%{_includedir}/rados/rgw_file.h
|
||||
%{_libdir}/librgw.so
|
||||
|
||||
#################################################################################
|
||||
%files -n python-rbd
|
||||
%defattr(-,root,root,-)
|
||||
%{python_sitearch}/rbd.so
|
||||
%{python_sitearch}/rbd-*.egg-info
|
||||
|
||||
#################################################################################
|
||||
%files -n python%{python3_pkgversion}-rbd
|
||||
%defattr(-,root,root,-)
|
||||
%{python3_sitearch}/rbd.cpython*.so
|
||||
%{python3_sitearch}/rbd-*.egg-info
|
||||
|
||||
%files -n libcephfs1
|
||||
%defattr(-,root,root,-)
|
||||
%{_libdir}/libcephfs.so.*
|
||||
|
||||
%post -n libcephfs1
|
||||
/sbin/ldconfig
|
||||
%post -n libcephfs1 -p /sbin/ldconfig
|
||||
|
||||
%postun -n libcephfs1
|
||||
/sbin/ldconfig
|
||||
%postun -n libcephfs1 -p /sbin/ldconfig
|
||||
|
||||
#################################################################################
|
||||
%files -n libcephfs-devel
|
||||
%defattr(-,root,root,-)
|
||||
%dir %{_includedir}/cephfs
|
||||
%{_includedir}/cephfs/libcephfs.h
|
||||
%{_libdir}/libcephfs.so
|
||||
|
||||
#################################################################################
|
||||
%files -n python-cephfs
|
||||
%defattr(-,root,root,-)
|
||||
%{python_sitearch}/cephfs.so
|
||||
%{python_sitearch}/cephfs-*.egg-info
|
||||
%{python_sitelib}/ceph_volume_client.py*
|
||||
|
||||
#################################################################################
|
||||
%files -n python%{python3_pkgversion}-cephfs
|
||||
%defattr(-,root,root,-)
|
||||
%{python3_sitearch}/cephfs.cpython*.so
|
||||
%{python3_sitearch}/cephfs-*.egg-info
|
||||
%{python3_sitelib}/ceph_volume_client.py
|
||||
%if ! 0%{?suse_version}
|
||||
%{python3_sitelib}/__pycache__/ceph_volume_client.cpython*.py*
|
||||
%endif
|
||||
|
||||
%files -n python%{python3_pkgversion}-ceph-argparse
|
||||
%defattr(-,root,root,-)
|
||||
%{python3_sitelib}/ceph_argparse.py
|
||||
%{python3_sitelib}/ceph_daemon.py
|
||||
%if ! 0%{?suse_version}
|
||||
%{python3_sitelib}/__pycache__/ceph_argparse.cpython*.py*
|
||||
%{python3_sitelib}/__pycache__/ceph_daemon.cpython*.py*
|
||||
%endif
|
||||
|
||||
%if 0%{with ceph_test_package}
|
||||
%files -n ceph-test
|
||||
%defattr(-,root,root,-)
|
||||
@@ -1392,7 +1472,6 @@ ln -sf %{_libdir}/librbd.so.1 /usr/lib64/qemu/librbd.so.1
|
||||
%{_bindir}/ceph_smalliobenchfs
|
||||
%{_bindir}/ceph_smalliobenchrbd
|
||||
%{_bindir}/ceph_test_*
|
||||
%{_bindir}/librgw_file*
|
||||
%{_bindir}/ceph_tpbench
|
||||
%{_bindir}/ceph_xattr_bench
|
||||
%{_bindir}/ceph-coverage
|
||||
@@ -1405,31 +1484,25 @@ ln -sf %{_libdir}/librbd.so.1 /usr/lib64/qemu/librbd.so.1
|
||||
%{_libdir}/ceph/ceph-monstore-update-crush.sh
|
||||
%endif
|
||||
|
||||
#################################################################################
|
||||
%if 0%{with cephfs_java}
|
||||
%files -n libcephfs_jni1
|
||||
%defattr(-,root,root,-)
|
||||
%{_libdir}/libcephfs_jni.so.*
|
||||
|
||||
%post -n libcephfs_jni1
|
||||
/sbin/ldconfig
|
||||
%post -n libcephfs_jni1 -p /sbin/ldconfig
|
||||
|
||||
%postun -n libcephfs_jni1
|
||||
/sbin/ldconfig
|
||||
%postun -n libcephfs_jni1 -p /sbin/ldconfig
|
||||
|
||||
#################################################################################
|
||||
%files -n libcephfs_jni-devel
|
||||
%defattr(-,root,root,-)
|
||||
%{_libdir}/libcephfs_jni.so
|
||||
|
||||
#################################################################################
|
||||
%files -n cephfs-java
|
||||
%defattr(-,root,root,-)
|
||||
%{_javadir}/libcephfs.jar
|
||||
%{_javadir}/libcephfs-test.jar
|
||||
%endif
|
||||
|
||||
#################################################################################
|
||||
%if 0%{with selinux}
|
||||
%files selinux
|
||||
%defattr(-,root,root,-)
|
||||
@@ -1517,5 +1590,9 @@ exit 0
|
||||
|
||||
%endif # with selinux
|
||||
|
||||
%files -n python-ceph-compat
|
||||
# We need an empty %%files list for python-ceph-compat, to tell rpmbuild to
|
||||
# actually build this meta package.
|
||||
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user