Accepting request 450976 from filesystems:ceph:kraken
OBS-URL: https://build.opensuse.org/request/show/450976 OBS-URL: https://build.opensuse.org/package/show/filesystems:ceph/ceph?expand=0&rev=70
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
#
|
||||
# Please submit bugfixes or comments via http://tracker.ceph.com/
|
||||
#
|
||||
%bcond_without cephfs_java
|
||||
%if 0%{?suse_version}
|
||||
%bcond_without ceph_test_package
|
||||
%else
|
||||
@@ -29,12 +30,10 @@
|
||||
%bcond_with lowmem_builder
|
||||
%bcond_with minimal_debugging_information
|
||||
%if 0%{?fedora} || 0%{?rhel}
|
||||
%bcond_without cephfs_java
|
||||
%bcond_with ocf
|
||||
%bcond_without selinux
|
||||
%endif
|
||||
%if 0%{?suse_version}
|
||||
%bcond_with cephfs_java
|
||||
%bcond_without ocf
|
||||
%if %{with ocf}
|
||||
%global _with_ocf --with-ocf
|
||||
@@ -66,7 +65,7 @@
|
||||
# common
|
||||
#################################################################################
|
||||
Name: ceph-test
|
||||
Version: 11.0.0+git.1472455009.a17726c
|
||||
Version: 11.1.0+git.1483528076.d86680e
|
||||
Release: 0
|
||||
Summary: Ceph benchmarks and test tools
|
||||
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
|
||||
@@ -74,11 +73,15 @@ License: LGPL-2.1 and CC-BY-SA-1.0 and GPL-2.0 and BSL-1.0 and GPL-2.0-with-auto
|
||||
Group: System/Filesystems
|
||||
%endif
|
||||
URL: http://ceph.com/
|
||||
%if 0%{?rhel}
|
||||
Source0: http://ceph.com/download/@TARBALL_BASENAME@.tar.bz2
|
||||
%endif
|
||||
%if ! 0%{?rhel}
|
||||
Source0: ceph-%{version}.tar.bz2
|
||||
Source97: ceph_ver_hack.sh
|
||||
Source98: README-ceph-test.txt
|
||||
Source99: ceph-rpmlintrc
|
||||
# _insert_obs_source_lines_here
|
||||
%endif
|
||||
%if 0%{?suse_version}
|
||||
%if 0%{?is_opensuse}
|
||||
ExclusiveArch: x86_64 aarch64 ppc64 ppc64le
|
||||
@@ -92,6 +95,7 @@ ExclusiveArch: x86_64 aarch64
|
||||
|
||||
|
||||
|
||||
|
||||
Requires: ceph-common
|
||||
Requires: xmlstarlet
|
||||
Requires(post): binutils
|
||||
@@ -105,6 +109,9 @@ BuildRequires: selinux-policy-devel
|
||||
BuildRequires: /usr/share/selinux/devel/policyhelp
|
||||
%endif
|
||||
BuildRequires: boost-devel
|
||||
%if ! 0%{?suse_version}
|
||||
BuildRequires: boost-python
|
||||
%endif
|
||||
BuildRequires: cmake
|
||||
BuildRequires: cryptsetup
|
||||
BuildRequires: fuse-devel
|
||||
@@ -113,7 +120,6 @@ BuildRequires: gdbm
|
||||
%if 0%{with tcmalloc}
|
||||
BuildRequires: gperftools-devel
|
||||
%endif
|
||||
BuildRequires: hdparm
|
||||
BuildRequires: jq
|
||||
BuildRequires: leveldb-devel > 1.2
|
||||
BuildRequires: libaio-devel
|
||||
@@ -222,8 +228,6 @@ This package contains Ceph benchmarks and test tools.
|
||||
%endif
|
||||
%if 0%{?suse_version}
|
||||
%endif
|
||||
%if 0%{?fedora} || 0%{?rhel}
|
||||
%endif
|
||||
%if 0%{with xio}
|
||||
%endif
|
||||
%if 0%{?suse_version}
|
||||
@@ -257,7 +261,12 @@ This package contains Ceph benchmarks and test tools.
|
||||
%if 0%{with selinux}
|
||||
%endif
|
||||
%prep
|
||||
%if 0%{?rhel}
|
||||
%autosetup -p1 -n @TARBALL_BASENAME@
|
||||
%endif
|
||||
%if ! 0%{?rhel}
|
||||
%autosetup -p1 -n ceph-%version
|
||||
%endif
|
||||
|
||||
%build
|
||||
%if 0%{with cephfs_java}
|
||||
@@ -279,6 +288,8 @@ export CPPFLAGS="$java_inc"
|
||||
export CFLAGS="$RPM_OPT_FLAGS"
|
||||
export CXXFLAGS="$RPM_OPT_FLAGS"
|
||||
|
||||
env | sort
|
||||
|
||||
mkdir build
|
||||
cd build
|
||||
cmake .. \
|
||||
@@ -289,7 +300,9 @@ cmake .. \
|
||||
-DCMAKE_INSTALL_SYSCONFDIR=%{_sysconfdir} \
|
||||
-DCMAKE_INSTALL_MANDIR=%{_mandir} \
|
||||
-DCMAKE_INSTALL_DOCDIR=%{_docdir}/ceph \
|
||||
-DWITH_EMBEDDED=OFF \
|
||||
-DWITH_MANPAGE=ON \
|
||||
-DWITH_PYTHON3=ON \
|
||||
-DWITH_SYSTEMD=ON \
|
||||
%if 0%{?rhel} && ! 0%{?centos}
|
||||
-DWITH_SUBMAN=ON \
|
||||
@@ -364,7 +377,7 @@ make DESTDIR=%{buildroot} install
|
||||
# we have dropped sysvinit bits
|
||||
rm -f %{buildroot}/%{_sysconfdir}/init.d/ceph
|
||||
popd
|
||||
install -D src/etc-rbdmap %{buildroot}%{_sysconfdir}/ceph/rbdmap
|
||||
install -m 0644 -D src/etc-rbdmap %{buildroot}%{_sysconfdir}/ceph/rbdmap
|
||||
%if 0%{?fedora} || 0%{?rhel}
|
||||
install -m 0644 -D etc/sysconfig/ceph %{buildroot}%{_sysconfdir}/sysconfig/ceph
|
||||
%endif
|
||||
@@ -400,6 +413,7 @@ mkdir -p %{buildroot}%{_localstatedir}/lib/ceph/tmp
|
||||
mkdir -p %{buildroot}%{_localstatedir}/lib/ceph/mon
|
||||
mkdir -p %{buildroot}%{_localstatedir}/lib/ceph/osd
|
||||
mkdir -p %{buildroot}%{_localstatedir}/lib/ceph/mds
|
||||
mkdir -p %{buildroot}%{_localstatedir}/lib/ceph/mgr
|
||||
mkdir -p %{buildroot}%{_localstatedir}/lib/ceph/radosgw
|
||||
mkdir -p %{buildroot}%{_localstatedir}/lib/ceph/bootstrap-osd
|
||||
mkdir -p %{buildroot}%{_localstatedir}/lib/ceph/bootstrap-mds
|
||||
@@ -418,7 +432,6 @@ rm -rf %{buildroot}%{_bindir}/osdmaptool
|
||||
rm -rf %{buildroot}%{_bindir}/ceph-run
|
||||
rm -rf %{buildroot}%{_bindir}/ceph-dencoder
|
||||
rm -rf %{buildroot}%{_bindir}/ceph-detect-init
|
||||
rm -rf %{buildroot}%{_unitdir}/ceph-create-keys@.service
|
||||
rm -rf %{buildroot}%{_bindir}/cephfs-data-scan
|
||||
rm -rf %{buildroot}%{_bindir}/cephfs-journal-tool
|
||||
rm -rf %{buildroot}%{_bindir}/cephfs-table-tool
|
||||
@@ -492,6 +505,10 @@ rm -rf %{buildroot}%{_bindir}/ceph-mds
|
||||
rm -rf %{buildroot}%{_mandir}/man8/ceph-mds.8*
|
||||
rm -rf %{buildroot}%{_unitdir}/ceph-mds@.service
|
||||
rm -rf %{buildroot}%{_unitdir}/ceph-mds.target
|
||||
rm -rf %{buildroot}%{_bindir}/ceph-mgr
|
||||
rm -rf %{buildroot}%{_libdir}/ceph/mgr
|
||||
rm -rf %{buildroot}%{_unitdir}/ceph-mgr@.service
|
||||
rm -rf %{buildroot}%{_unitdir}/ceph-mgr.target
|
||||
rm -rf %{buildroot}%{_bindir}/ceph-mon
|
||||
rm -rf %{buildroot}%{_bindir}/ceph-rest-api
|
||||
rm -rf %{buildroot}%{_mandir}/man8/ceph-mon.8*
|
||||
@@ -502,6 +519,8 @@ rm -rf %{buildroot}%{_unitdir}/ceph-mon.target
|
||||
rm -rf %{buildroot}%{_bindir}/ceph-fuse
|
||||
rm -rf %{buildroot}%{_mandir}/man8/ceph-fuse.8*
|
||||
rm -rf %{buildroot}%{_sbindir}/mount.fuse.ceph
|
||||
rm -rf %{buildroot}%{_unitdir}/ceph-fuse@.service
|
||||
rm -rf %{buildroot}%{_unitdir}/ceph-fuse.target
|
||||
rm -rf %{buildroot}%{_bindir}/rbd-fuse
|
||||
rm -rf %{buildroot}%{_mandir}/man8/rbd-fuse.8*
|
||||
rm -rf %{buildroot}%{_bindir}/rbd-mirror
|
||||
@@ -542,6 +561,7 @@ rm -rf %{buildroot}%{_includedir}/rados/librados.h
|
||||
rm -rf %{buildroot}%{_includedir}/rados/librados.hpp
|
||||
rm -rf %{buildroot}%{_includedir}/rados/buffer.h
|
||||
rm -rf %{buildroot}%{_includedir}/rados/buffer_fwd.h
|
||||
rm -rf %{buildroot}%{_includedir}/rados/inline_memory.h
|
||||
rm -rf %{buildroot}%{_includedir}/rados/page.h
|
||||
rm -rf %{buildroot}%{_includedir}/rados/crc32c.h
|
||||
rm -rf %{buildroot}%{_includedir}/rados/rados_types.h
|
||||
@@ -570,12 +590,17 @@ rm -rf %{buildroot}%{_libdir}/librgw.so.*
|
||||
rm -rf %{buildroot}%{_includedir}/rados/librgw.h
|
||||
rm -rf %{buildroot}%{_includedir}/rados/rgw_file.h
|
||||
rm -rf %{buildroot}%{_libdir}/librgw.so
|
||||
rm -rf %{buildroot}%{python_sitearch}/rgw.so
|
||||
rm -rf %{buildroot}%{python_sitearch}/rgw-*.egg-info
|
||||
rm -rf %{buildroot}%{python3_sitearch}/rgw.cpython*.so
|
||||
rm -rf %{buildroot}%{python3_sitearch}/rgw-*.egg-info
|
||||
rm -rf %{buildroot}%{python_sitearch}/rbd.so
|
||||
rm -rf %{buildroot}%{python_sitearch}/rbd-*.egg-info
|
||||
rm -rf %{buildroot}%{python3_sitearch}/rbd.cpython*.so
|
||||
rm -rf %{buildroot}%{python3_sitearch}/rbd-*.egg-info
|
||||
rm -rf %{buildroot}%{_libdir}/libcephfs.so.*
|
||||
rm -rf %{buildroot}%{_includedir}/cephfs/libcephfs.h
|
||||
rm -rf %{buildroot}%{_includedir}/cephfs/ceph_statx.h
|
||||
rm -rf %{buildroot}%{_libdir}/libcephfs.so
|
||||
rm -rf %{buildroot}%{python_sitearch}/cephfs.so
|
||||
rm -rf %{buildroot}%{python_sitearch}/cephfs-*.egg-info
|
||||
@@ -676,6 +701,16 @@ rm -rf %{buildroot}
|
||||
%endif
|
||||
%if 0%{?suse_version}
|
||||
%endif
|
||||
%if 0%{?fedora} || 0%{?rhel}
|
||||
%endif
|
||||
%if 0%{?suse_version}
|
||||
%endif
|
||||
%if 0%{?fedora} || 0%{?rhel}
|
||||
%endif
|
||||
%if 0%{?suse_version}
|
||||
%endif
|
||||
%if 0%{?fedora} || 0%{?rhel}
|
||||
%endif
|
||||
%if 0%{?suse_version}
|
||||
%endif
|
||||
%if 0%{?fedora} || 0%{?rhel}
|
||||
|
Reference in New Issue
Block a user