2016-07-22 19:22:52 +02:00
|
|
|
#
|
|
|
|
# spec file for package ceph
|
|
|
|
#
|
2017-03-22 12:41:30 +01:00
|
|
|
# Copyright (C) 2004-2017 The Ceph Project Developers. See COPYING file
|
2016-07-22 19:22:52 +02:00
|
|
|
# at the top-level directory of this distribution and at
|
|
|
|
# https://github.com/ceph/ceph/blob/master/COPYING
|
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon.
|
|
|
|
#
|
|
|
|
# This file is under the GNU Lesser General Public License, version 2.1
|
|
|
|
#
|
|
|
|
# Please submit bugfixes or comments via http://tracker.ceph.com/
|
|
|
|
#
|
2017-03-22 12:41:30 +01:00
|
|
|
%bcond_without ocf
|
2017-01-20 12:29:05 +01:00
|
|
|
%bcond_with cephfs_java
|
2016-07-22 19:22:52 +02:00
|
|
|
%if 0%{?suse_version}
|
|
|
|
%bcond_without ceph_test_package
|
|
|
|
%else
|
|
|
|
%bcond_without ceph_test_package
|
|
|
|
%endif
|
|
|
|
%bcond_with make_check
|
|
|
|
%bcond_with xio
|
2016-08-26 15:55:14 +02:00
|
|
|
%ifnarch s390 s390x
|
2016-07-22 19:22:52 +02:00
|
|
|
%bcond_without tcmalloc
|
2016-08-26 15:55:14 +02:00
|
|
|
%else
|
|
|
|
# no gperftools/tcmalloc on s390(x)
|
|
|
|
%bcond_with tcmalloc
|
|
|
|
%endif
|
2017-01-20 12:29:05 +01:00
|
|
|
%bcond_without lowmem_builder
|
2016-07-22 19:22:52 +02:00
|
|
|
%bcond_with minimal_debugging_information
|
|
|
|
%if 0%{?fedora} || 0%{?rhel}
|
|
|
|
%bcond_with ocf
|
|
|
|
%bcond_without selinux
|
|
|
|
%endif
|
|
|
|
%if 0%{?suse_version}
|
|
|
|
%bcond_without ocf
|
|
|
|
%if %{with ocf}
|
|
|
|
%global _with_ocf --with-ocf
|
|
|
|
%endif
|
|
|
|
%bcond_with selinux
|
|
|
|
%endif
|
|
|
|
|
2016-08-19 19:45:38 +02:00
|
|
|
# LTTng-UST enabled on Fedora, RHEL 6+, and SLE (not openSUSE)
|
|
|
|
%if 0%{?fedora} || 0%{?rhel} >= 6 || 0%{?suse_version}
|
|
|
|
%if ! 0%{?is_opensuse}
|
2017-01-20 12:29:05 +01:00
|
|
|
%ifarch x86_64 aarch64
|
2016-07-22 19:22:52 +02:00
|
|
|
%bcond_without lttng
|
|
|
|
%endif
|
2016-08-19 19:45:38 +02:00
|
|
|
%endif
|
2017-01-20 12:29:05 +01:00
|
|
|
%endif
|
2016-07-22 19:22:52 +02:00
|
|
|
|
|
|
|
%if %{with selinux}
|
|
|
|
# get selinux policy version
|
|
|
|
%{!?_selinux_policy_version: %global _selinux_policy_version %(sed -e 's,.*selinux-policy-\\([^/]*\\)/.*,\\1,' /usr/share/selinux/devel/policyhelp 2>/dev/null || echo 0.0.0)}
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%{!?_udevrulesdir: %global _udevrulesdir /lib/udev/rules.d}
|
|
|
|
%{!?tmpfiles_create: %global tmpfiles_create systemd-tmpfiles --create}
|
2016-08-26 15:55:14 +02:00
|
|
|
%{!?python3_pkgversion: %global python3_pkgversion 3}
|
2016-07-22 19:22:52 +02:00
|
|
|
|
|
|
|
# unify libexec for all targets
|
|
|
|
%global _libexecdir %{_exec_prefix}/lib
|
|
|
|
|
2017-03-22 12:41:30 +01:00
|
|
|
# disable dwz which compresses the debuginfo
|
|
|
|
%global _find_debuginfo_dwz_opts %{nil}
|
2016-07-22 19:22:52 +02:00
|
|
|
#################################################################################
|
2017-03-22 12:41:30 +01:00
|
|
|
# main package definition
|
2016-07-22 19:22:52 +02:00
|
|
|
#################################################################################
|
|
|
|
Name: ceph-test
|
2017-04-07 12:25:48 +02:00
|
|
|
Version: 12.0.1+git.1491557762.4e47e9f
|
2016-07-22 19:22:52 +02:00
|
|
|
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
|
|
|
|
%if 0%{?suse_version}
|
|
|
|
Group: System/Filesystems
|
|
|
|
%endif
|
|
|
|
URL: http://ceph.com/
|
|
|
|
Source0: ceph-%{version}.tar.bz2
|
2016-08-28 13:00:11 +02:00
|
|
|
Source98: README-ceph-test.txt
|
2016-07-22 19:22:52 +02:00
|
|
|
Source99: ceph-rpmlintrc
|
2016-08-29 09:27:05 +02:00
|
|
|
# _insert_obs_source_lines_here
|
2016-08-15 12:32:01 +02:00
|
|
|
%if 0%{?suse_version}
|
2016-08-26 15:55:14 +02:00
|
|
|
%if 0%{?is_opensuse}
|
|
|
|
ExclusiveArch: x86_64 aarch64 ppc64 ppc64le
|
|
|
|
%else
|
2017-01-20 12:29:05 +01:00
|
|
|
ExclusiveArch: x86_64 aarch64 ppc64le
|
2016-08-15 12:32:01 +02:00
|
|
|
%endif
|
2016-08-26 15:55:14 +02:00
|
|
|
%endif
|
2016-07-22 19:22:52 +02:00
|
|
|
#################################################################################
|
|
|
|
# dependencies that apply across all distro families
|
|
|
|
#################################################################################
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-01-17 14:52:30 +01:00
|
|
|
|
2016-07-22 19:22:52 +02:00
|
|
|
Requires: ceph-common
|
|
|
|
Requires: xmlstarlet
|
|
|
|
Requires(post): binutils
|
|
|
|
%if 0%{with cephfs_java}
|
|
|
|
BuildRequires: java-devel
|
|
|
|
BuildRequires: sharutils
|
|
|
|
%endif
|
|
|
|
%if 0%{with selinux}
|
|
|
|
BuildRequires: checkpolicy
|
|
|
|
BuildRequires: selinux-policy-devel
|
|
|
|
BuildRequires: /usr/share/selinux/devel/policyhelp
|
|
|
|
%endif
|
2017-03-04 01:22:30 +01:00
|
|
|
BuildRequires: bc
|
2016-07-22 19:22:52 +02:00
|
|
|
BuildRequires: cmake
|
|
|
|
BuildRequires: cryptsetup
|
|
|
|
BuildRequires: fuse-devel
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: gdbm
|
2016-08-26 15:55:14 +02:00
|
|
|
%if 0%{with tcmalloc}
|
|
|
|
BuildRequires: gperftools-devel
|
|
|
|
%endif
|
|
|
|
BuildRequires: jq
|
2016-07-22 19:22:52 +02:00
|
|
|
BuildRequires: leveldb-devel > 1.2
|
|
|
|
BuildRequires: libaio-devel
|
2016-08-26 15:55:14 +02:00
|
|
|
BuildRequires: libatomic_ops-devel
|
2016-07-22 19:22:52 +02:00
|
|
|
BuildRequires: libblkid-devel >= 2.17
|
|
|
|
BuildRequires: libcurl-devel
|
|
|
|
BuildRequires: libudev-devel
|
|
|
|
BuildRequires: libtool
|
|
|
|
BuildRequires: libxml2-devel
|
|
|
|
BuildRequires: make
|
|
|
|
BuildRequires: parted
|
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: procps
|
|
|
|
BuildRequires: python
|
|
|
|
BuildRequires: python-devel
|
|
|
|
BuildRequires: python-nose
|
|
|
|
BuildRequires: python-requests
|
|
|
|
BuildRequires: python-sphinx
|
|
|
|
BuildRequires: python-virtualenv
|
|
|
|
BuildRequires: snappy-devel
|
2016-08-09 09:54:06 +02:00
|
|
|
BuildRequires: udev
|
2016-07-22 19:22:52 +02:00
|
|
|
BuildRequires: util-linux
|
|
|
|
BuildRequires: valgrind-devel
|
|
|
|
BuildRequires: xfsprogs
|
|
|
|
BuildRequires: xfsprogs-devel
|
|
|
|
BuildRequires: xmlstarlet
|
|
|
|
BuildRequires: yasm
|
2017-03-22 12:41:30 +01:00
|
|
|
BuildRequires: libibverbs-devel
|
2016-07-22 19:22:52 +02:00
|
|
|
|
|
|
|
#################################################################################
|
|
|
|
# distro-conditional dependencies
|
|
|
|
#################################################################################
|
|
|
|
%if 0%{?suse_version}
|
|
|
|
BuildRequires: pkgconfig(systemd)
|
|
|
|
BuildRequires: systemd-rpm-macros
|
|
|
|
BuildRequires: systemd
|
|
|
|
%{?systemd_requires}
|
|
|
|
PreReq: %fillup_prereq
|
|
|
|
BuildRequires: net-tools
|
|
|
|
BuildRequires: libbz2-devel
|
|
|
|
BuildRequires: btrfsprogs
|
|
|
|
BuildRequires: mozilla-nss-devel
|
|
|
|
BuildRequires: keyutils-devel
|
|
|
|
BuildRequires: libopenssl-devel
|
|
|
|
BuildRequires: lsb-release
|
|
|
|
BuildRequires: openldap2-devel
|
|
|
|
BuildRequires: python-Cython
|
|
|
|
%endif
|
|
|
|
%if 0%{?fedora} || 0%{?rhel}
|
|
|
|
|
|
|
|
BuildRequires: boost-random
|
|
|
|
BuildRequires: btrfs-progs
|
|
|
|
BuildRequires: nss-devel
|
|
|
|
BuildRequires: keyutils-libs-devel
|
|
|
|
BuildRequires: openldap-devel
|
|
|
|
BuildRequires: openssl-devel
|
|
|
|
BuildRequires: redhat-lsb-core
|
|
|
|
BuildRequires: Cython
|
|
|
|
%endif
|
2016-08-26 15:55:14 +02:00
|
|
|
# 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
|
2016-07-22 19:22:52 +02:00
|
|
|
# lttng and babeltrace for rbd-replay-prep
|
|
|
|
%if %{with lttng}
|
|
|
|
%if 0%{?fedora} || 0%{?rhel}
|
|
|
|
BuildRequires: lttng-ust-devel
|
|
|
|
BuildRequires: libbabeltrace-devel
|
|
|
|
%endif
|
|
|
|
%if 0%{?suse_version}
|
|
|
|
BuildRequires: lttng-ust-devel
|
|
|
|
BuildRequires: babeltrace-devel
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
# expat and fastcgi for RGW
|
|
|
|
%if 0%{?suse_version}
|
|
|
|
BuildRequires: libexpat-devel
|
|
|
|
BuildRequires: FastCGI-devel
|
|
|
|
%endif
|
|
|
|
%if 0%{?rhel} || 0%{?fedora}
|
|
|
|
BuildRequires: expat-devel
|
|
|
|
BuildRequires: fcgi-devel
|
|
|
|
%endif
|
|
|
|
#hardened-cc1
|
|
|
|
%if 0%{?fedora} || 0%{?rhel}
|
|
|
|
BuildRequires: redhat-rpm-config
|
|
|
|
%endif
|
|
|
|
# Accelio IB/RDMA
|
|
|
|
%if 0%{with xio}
|
|
|
|
BuildRequires: libxio-devel
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%description
|
|
|
|
This package contains Ceph benchmarks and test tools.
|
|
|
|
|
|
|
|
#################################################################################
|
2017-03-22 12:41:30 +01:00
|
|
|
# subpackages
|
2016-07-22 19:22:52 +02:00
|
|
|
#################################################################################
|
2017-03-04 01:22:30 +01:00
|
|
|
%if 0%{?suse_version}
|
|
|
|
%endif
|
2016-07-22 19:22:52 +02:00
|
|
|
%if 0%{with selinux}
|
|
|
|
%endif
|
|
|
|
%if 0%{?suse_version}
|
|
|
|
%endif
|
|
|
|
%if 0%{with xio}
|
|
|
|
%endif
|
|
|
|
%if 0%{?suse_version}
|
|
|
|
%endif
|
2017-03-04 01:22:30 +01:00
|
|
|
%if 0%{?suse_version}
|
|
|
|
%endif
|
2016-07-22 19:22:52 +02:00
|
|
|
%if 0%{with xio}
|
|
|
|
%endif
|
2017-03-04 01:22:30 +01:00
|
|
|
%if 0%{?suse_version}
|
|
|
|
%endif
|
|
|
|
%if 0%{?suse_version}
|
|
|
|
%endif
|
2016-07-22 19:22:52 +02:00
|
|
|
%if 0%{?fedora} || 0%{?rhel}
|
|
|
|
%endif
|
|
|
|
%if 0%{?suse_version}
|
|
|
|
%endif
|
2017-03-04 01:22:30 +01:00
|
|
|
%if 0%{?suse_version}
|
|
|
|
%endif
|
|
|
|
%if 0%{?suse_version}
|
|
|
|
%endif
|
|
|
|
%if 0%{?suse_version}
|
|
|
|
%endif
|
|
|
|
%if 0%{?suse_version}
|
|
|
|
%endif
|
|
|
|
%if 0%{?suse_version}
|
|
|
|
%endif
|
|
|
|
%if 0%{?suse_version}
|
|
|
|
%endif
|
2016-07-22 19:22:52 +02:00
|
|
|
%if 0%{with selinux}
|
|
|
|
%endif
|
|
|
|
%if 0%{?rhel} || 0%{?fedora}
|
|
|
|
%endif
|
|
|
|
%if %{with ocf}
|
2017-03-04 01:22:30 +01:00
|
|
|
%if 0%{?suse_version}
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
%if 0%{?suse_version}
|
2016-07-22 19:22:52 +02:00
|
|
|
%endif
|
|
|
|
%if 0%{?fedora} || 0%{?rhel}
|
|
|
|
%endif
|
|
|
|
%if 0%{?suse_version}
|
|
|
|
%endif
|
2017-03-04 01:22:30 +01:00
|
|
|
%if 0%{?suse_version}
|
|
|
|
%endif
|
2016-07-22 19:22:52 +02:00
|
|
|
%if 0%{?rhel} || 0%{?fedora}
|
|
|
|
%endif
|
2017-03-04 01:22:30 +01:00
|
|
|
%if 0%{?suse_version}
|
|
|
|
%endif
|
|
|
|
%if 0%{?suse_version}
|
|
|
|
%endif
|
|
|
|
%if 0%{?suse_version}
|
|
|
|
%endif
|
|
|
|
%if 0%{?suse_version}
|
|
|
|
%endif
|
|
|
|
%if 0%{?suse_version}
|
|
|
|
%endif
|
|
|
|
%if 0%{?suse_version}
|
|
|
|
%endif
|
|
|
|
%if 0%{?suse_version}
|
|
|
|
%endif
|
|
|
|
%if 0%{?suse_version}
|
|
|
|
%endif
|
|
|
|
%if 0%{?suse_version}
|
|
|
|
%endif
|
|
|
|
%if 0%{?suse_version}
|
|
|
|
%endif
|
2016-07-22 19:22:52 +02:00
|
|
|
%if 0%{?rhel} || 0%{?fedora}
|
|
|
|
%endif
|
2017-03-04 01:22:30 +01:00
|
|
|
%if 0%{?suse_version}
|
|
|
|
%endif
|
|
|
|
%if 0%{?suse_version}
|
|
|
|
%endif
|
|
|
|
%if 0%{?suse_version}
|
|
|
|
%endif
|
|
|
|
%if 0%{?suse_version}
|
|
|
|
%endif
|
2016-07-22 19:22:52 +02:00
|
|
|
%if 0%{?rhel} || 0%{?fedora}
|
|
|
|
%endif
|
2017-03-04 01:22:30 +01:00
|
|
|
%if 0%{?suse_version}
|
|
|
|
%endif
|
|
|
|
%if 0%{?suse_version}
|
|
|
|
%endif
|
|
|
|
%if 0%{?suse_version}
|
|
|
|
%endif
|
|
|
|
%if 0%{?suse_version}
|
|
|
|
%endif
|
|
|
|
%if 0%{?suse_version}
|
|
|
|
%endif
|
2016-07-22 19:22:52 +02:00
|
|
|
%if 0%{with ceph_test_package}
|
2017-03-04 01:22:30 +01:00
|
|
|
%if 0%{?suse_version}
|
|
|
|
%endif
|
2016-07-22 19:22:52 +02:00
|
|
|
%endif
|
|
|
|
%if 0%{with cephfs_java}
|
2017-03-04 01:22:30 +01:00
|
|
|
%if 0%{?suse_version}
|
|
|
|
%endif
|
|
|
|
%if 0%{?suse_version}
|
|
|
|
%endif
|
|
|
|
%if 0%{?suse_version}
|
|
|
|
%endif
|
2016-07-22 19:22:52 +02:00
|
|
|
%endif
|
|
|
|
%if 0%{with selinux}
|
2017-03-04 01:22:30 +01:00
|
|
|
%if 0%{?suse_version}
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
%if 0%{?suse_version}
|
2016-07-22 19:22:52 +02:00
|
|
|
%endif
|
|
|
|
%prep
|
2017-01-17 14:52:30 +01:00
|
|
|
%if 0%{?rhel}
|
|
|
|
%autosetup -p1 -n @TARBALL_BASENAME@
|
|
|
|
%endif
|
|
|
|
%if ! 0%{?rhel}
|
2016-08-26 15:55:14 +02:00
|
|
|
%autosetup -p1 -n ceph-%version
|
2017-01-17 14:52:30 +01:00
|
|
|
%endif
|
2016-07-22 19:22:52 +02:00
|
|
|
|
|
|
|
%build
|
|
|
|
%if 0%{with cephfs_java}
|
|
|
|
# Find jni.h
|
|
|
|
for i in /usr/{lib64,lib}/jvm/java/include{,/linux}; do
|
|
|
|
[ -d $i ] && java_inc="$java_inc -I$i"
|
|
|
|
done
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if %{with lowmem_builder}
|
|
|
|
RPM_OPT_FLAGS="$RPM_OPT_FLAGS --param ggc-min-expand=20 --param ggc-min-heapsize=32768"
|
|
|
|
%endif
|
|
|
|
%if %{with minimal_debugging_information}
|
|
|
|
RPM_OPT_FLAGS="`echo $RPM_OPT_FLAGS | sed -e 's/^-g /-g1 /g' -e 's/ -g / -g1 /g' -e 's/ -g$/ -g1/g'`"
|
|
|
|
%endif
|
|
|
|
export RPM_OPT_FLAGS=`echo $RPM_OPT_FLAGS | sed -e 's/i386/i486/'`
|
|
|
|
|
2016-08-26 15:55:14 +02:00
|
|
|
export CPPFLAGS="$java_inc"
|
|
|
|
export CFLAGS="$RPM_OPT_FLAGS"
|
|
|
|
export CXXFLAGS="$RPM_OPT_FLAGS"
|
|
|
|
|
2017-01-17 14:52:30 +01:00
|
|
|
env | sort
|
|
|
|
|
2017-04-07 12:25:48 +02:00
|
|
|
%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//')
|
|
|
|
|
2016-08-26 15:55:14 +02:00
|
|
|
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 \
|
2017-01-17 14:52:30 +01:00
|
|
|
-DWITH_EMBEDDED=OFF \
|
2016-08-26 15:55:14 +02:00
|
|
|
-DWITH_MANPAGE=ON \
|
2017-01-17 14:52:30 +01:00
|
|
|
-DWITH_PYTHON3=ON \
|
2016-08-26 15:55:14 +02:00
|
|
|
-DWITH_SYSTEMD=ON \
|
2016-07-22 19:22:52 +02:00
|
|
|
%if 0%{?rhel} && ! 0%{?centos}
|
2016-08-26 15:55:14 +02:00
|
|
|
-DWITH_SUBMAN=ON \
|
|
|
|
%endif
|
|
|
|
%if 0%{with xio}
|
|
|
|
-DWITH_XIO=ON \
|
|
|
|
%endif
|
2016-07-22 19:22:52 +02:00
|
|
|
%if 0%{without ceph_test_package}
|
2016-08-26 15:55:14 +02:00
|
|
|
-DWITH_TESTS=OFF \
|
2016-07-22 19:22:52 +02:00
|
|
|
%endif
|
|
|
|
%if 0%{with cephfs_java}
|
2016-08-26 15:55:14 +02:00
|
|
|
-DWITH_CEPHFS_JAVA=ON \
|
2016-07-22 19:22:52 +02:00
|
|
|
%endif
|
|
|
|
%if 0%{with selinux}
|
2016-08-26 15:55:14 +02:00
|
|
|
-DWITH_SELINUX=ON \
|
2016-07-22 19:22:52 +02:00
|
|
|
%endif
|
2016-08-26 15:55:14 +02:00
|
|
|
%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}
|
2017-04-07 12:25:48 +02:00
|
|
|
-DWITH_OCF=ON \
|
2016-07-22 19:22:52 +02:00
|
|
|
%endif
|
2017-04-07 12:25:48 +02:00
|
|
|
-DBOOST_J=%{_smp_ncpus}
|
2016-07-22 19:22:52 +02:00
|
|
|
|
|
|
|
# Parallel build settings ...
|
|
|
|
PARALLEL_BUILD=%{?_smp_mflags}
|
|
|
|
lo_jobs="%{?jobs:%{jobs}}"
|
|
|
|
%ifarch %arm
|
|
|
|
%if ! 0%{?qemu_user_space_build:1}
|
|
|
|
# native hardware is not that powerful
|
|
|
|
lo_jobs="1"
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
# do not eat all memory
|
|
|
|
echo "Available memory:"
|
|
|
|
free
|
|
|
|
echo "System limits:"
|
|
|
|
ulimit -a
|
|
|
|
lo_jobs_reduced=
|
|
|
|
if test -n "$lo_jobs" -a "$lo_jobs" -gt 1 ; then
|
|
|
|
mem_per_process=1600
|
|
|
|
max_mem=$(LANG=C free -t -m | sed -n "s|^Mem: *\([0-9]*\).*$|\1|p")
|
|
|
|
max_jobs="$(($max_mem / $mem_per_process))"
|
|
|
|
test "$lo_jobs" -gt "$max_jobs" && lo_jobs="$max_jobs" && lo_jobs_reduced="yes" && echo "Warning: Reducing build parallelism to -j$max_jobs because of memory limits"
|
|
|
|
test "$lo_jobs" -le 0 && lo_jobs=1 && echo "Warning: Not using parallel build at all because of memory limits"
|
|
|
|
fi
|
|
|
|
# run make
|
|
|
|
if test -n "$lo_jobs" ; then
|
|
|
|
PARALLEL_BUILD="-j$lo_jobs"
|
|
|
|
fi
|
|
|
|
|
|
|
|
make "$PARALLEL_BUILD"
|
|
|
|
|
2016-08-26 15:55:14 +02:00
|
|
|
|
2016-07-22 19:22:52 +02:00
|
|
|
%if 0%{with make_check}
|
|
|
|
%check
|
|
|
|
# run in-tree unittests
|
2016-08-26 15:55:14 +02:00
|
|
|
cd build
|
|
|
|
ctest %{?_smp_mflags}
|
|
|
|
|
2016-07-22 19:22:52 +02:00
|
|
|
%endif
|
|
|
|
|
2016-08-26 15:55:14 +02:00
|
|
|
|
|
|
|
|
2016-07-22 19:22:52 +02:00
|
|
|
%install
|
2016-08-26 15:55:14 +02:00
|
|
|
pushd build
|
2016-07-22 19:22:52 +02:00
|
|
|
make DESTDIR=%{buildroot} install
|
2016-08-26 15:55:14 +02:00
|
|
|
# we have dropped sysvinit bits
|
|
|
|
rm -f %{buildroot}/%{_sysconfdir}/init.d/ceph
|
|
|
|
popd
|
2017-01-17 14:52:30 +01:00
|
|
|
install -m 0644 -D src/etc-rbdmap %{buildroot}%{_sysconfdir}/ceph/rbdmap
|
2016-07-22 19:22:52 +02:00
|
|
|
%if 0%{?fedora} || 0%{?rhel}
|
|
|
|
install -m 0644 -D etc/sysconfig/ceph %{buildroot}%{_sysconfdir}/sysconfig/ceph
|
|
|
|
%endif
|
|
|
|
%if 0%{?suse_version}
|
|
|
|
install -m 0644 -D etc/sysconfig/ceph %{buildroot}%{_localstatedir}/adm/fillup-templates/sysconfig.%{name}
|
|
|
|
%endif
|
|
|
|
install -m 0644 -D systemd/ceph.tmpfiles.d %{buildroot}%{_tmpfilesdir}/ceph-common.conf
|
|
|
|
install -m 0755 -D systemd/ceph %{buildroot}%{_sbindir}/rcceph
|
|
|
|
install -m 0644 -D systemd/50-ceph.preset %{buildroot}%{_libexecdir}/systemd/system-preset/50-ceph.preset
|
|
|
|
mkdir -p %{buildroot}%{_sbindir}
|
|
|
|
install -m 0644 -D src/logrotate.conf %{buildroot}%{_sysconfdir}/logrotate.d/ceph
|
|
|
|
chmod 0644 %{buildroot}%{_docdir}/ceph/sample.ceph.conf
|
|
|
|
chmod 0644 %{buildroot}%{_docdir}/ceph/sample.fetch_config
|
|
|
|
|
|
|
|
# firewall templates and /sbin/mount.ceph symlink
|
|
|
|
%if 0%{?suse_version}
|
|
|
|
install -m 0644 -D etc/sysconfig/SuSEfirewall2.d/services/ceph-mon %{buildroot}%{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/ceph-mon
|
|
|
|
install -m 0644 -D etc/sysconfig/SuSEfirewall2.d/services/ceph-osd-mds %{buildroot}%{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/ceph-osd-mds
|
|
|
|
mkdir -p %{buildroot}/sbin
|
|
|
|
ln -sf %{_sbindir}/mount.ceph %{buildroot}/sbin/mount.ceph
|
|
|
|
%endif
|
|
|
|
|
|
|
|
# udev rules
|
|
|
|
install -m 0644 -D udev/50-rbd.rules %{buildroot}%{_udevrulesdir}/50-rbd.rules
|
2016-08-26 15:55:14 +02:00
|
|
|
install -m 0644 -D udev/60-ceph-by-parttypeuuid.rules %{buildroot}%{_udevrulesdir}/60-ceph-by-parttypeuuid.rules
|
2016-07-22 19:22:52 +02:00
|
|
|
install -m 0644 -D udev/95-ceph-osd.rules %{buildroot}%{_udevrulesdir}/95-ceph-osd.rules
|
|
|
|
|
|
|
|
#set up placeholder directories
|
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/ceph
|
|
|
|
mkdir -p %{buildroot}%{_localstatedir}/run/ceph
|
|
|
|
mkdir -p %{buildroot}%{_localstatedir}/log/ceph
|
|
|
|
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
|
2017-01-17 14:52:30 +01:00
|
|
|
mkdir -p %{buildroot}%{_localstatedir}/lib/ceph/mgr
|
2016-07-22 19:22:52 +02:00
|
|
|
mkdir -p %{buildroot}%{_localstatedir}/lib/ceph/radosgw
|
|
|
|
mkdir -p %{buildroot}%{_localstatedir}/lib/ceph/bootstrap-osd
|
|
|
|
mkdir -p %{buildroot}%{_localstatedir}/lib/ceph/bootstrap-mds
|
|
|
|
mkdir -p %{buildroot}%{_localstatedir}/lib/ceph/bootstrap-rgw
|
|
|
|
|
2016-08-29 09:27:05 +02:00
|
|
|
%if 0%{?suse_version}
|
|
|
|
# create __pycache__ directories and their contents
|
|
|
|
%py3_compile %{buildroot}%{python3_sitelib}
|
|
|
|
%endif
|
|
|
|
|
2016-08-26 15:55:14 +02:00
|
|
|
rm -rf %{buildroot}%{_docdir}/ceph/sample.ceph.conf
|
|
|
|
rm -rf %{buildroot}%{_docdir}/ceph/sample.fetch_config
|
|
|
|
rm -rf %{buildroot}%{_bindir}/crushtool
|
|
|
|
rm -rf %{buildroot}%{_bindir}/monmaptool
|
|
|
|
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}%{_bindir}/cephfs-data-scan
|
|
|
|
rm -rf %{buildroot}%{_bindir}/cephfs-journal-tool
|
|
|
|
rm -rf %{buildroot}%{_bindir}/cephfs-table-tool
|
|
|
|
rm -rf %{buildroot}%{_libexecdir}/systemd/system-preset/50-ceph.preset
|
|
|
|
rm -rf %{buildroot}%{_sbindir}/ceph-create-keys
|
|
|
|
rm -rf %{buildroot}%{_sbindir}/rcceph
|
|
|
|
rm -rf %{buildroot}%{_libexecdir}/ceph/ceph_common.sh
|
|
|
|
rm -rf %{buildroot}%{_libdir}/rados-classes/*
|
|
|
|
rm -rf %{buildroot}%{_libdir}/ceph/erasure-code/libec_*.so*
|
|
|
|
rm -rf %{buildroot}%{_libdir}/ceph/compressor/libceph_*.so*
|
|
|
|
rm -rf %{buildroot}%{_libdir}/libos_tp.so*
|
|
|
|
rm -rf %{buildroot}%{_libdir}/libosd_tp.so*
|
|
|
|
rm -rf %{buildroot}%{_sysconfdir}/bash_completion.d/ceph
|
|
|
|
rm -rf %{buildroot}%{_sysconfdir}/logrotate.d/ceph
|
|
|
|
rm -rf %{buildroot}%{_sysconfdir}/sysconfig/ceph
|
|
|
|
rm -rf %{buildroot}%{_localstatedir}/adm/fillup-templates/sysconfig.*
|
|
|
|
rm -rf %{buildroot}%{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/ceph-mon
|
|
|
|
rm -rf %{buildroot}%{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/ceph-osd-mds
|
|
|
|
rm -rf %{buildroot}%{_unitdir}/ceph.target
|
|
|
|
rm -rf %{buildroot}%{python_sitelib}/ceph_detect_init*
|
|
|
|
rm -rf %{buildroot}%{python_sitelib}/ceph_disk*
|
|
|
|
rm -rf %{buildroot}%{_mandir}/man8/ceph-deploy.8*
|
|
|
|
rm -rf %{buildroot}%{_mandir}/man8/ceph-detect-init.8*
|
|
|
|
rm -rf %{buildroot}%{_mandir}/man8/ceph-create-keys.8*
|
|
|
|
rm -rf %{buildroot}%{_mandir}/man8/ceph-run.8*
|
|
|
|
rm -rf %{buildroot}%{_mandir}/man8/crushtool.8*
|
|
|
|
rm -rf %{buildroot}%{_mandir}/man8/osdmaptool.8*
|
|
|
|
rm -rf %{buildroot}%{_mandir}/man8/monmaptool.8*
|
|
|
|
rm -rf %{buildroot}%{_bindir}/ceph
|
|
|
|
rm -rf %{buildroot}%{_bindir}/ceph-authtool
|
|
|
|
rm -rf %{buildroot}%{_bindir}/ceph-conf
|
|
|
|
rm -rf %{buildroot}%{_bindir}/ceph-rbdnamer
|
|
|
|
rm -rf %{buildroot}%{_bindir}/ceph-syn
|
|
|
|
rm -rf %{buildroot}%{_bindir}/ceph-crush-location
|
|
|
|
rm -rf %{buildroot}%{_bindir}/rados
|
|
|
|
rm -rf %{buildroot}%{_bindir}/rbd
|
|
|
|
rm -rf %{buildroot}%{_bindir}/rbd-replay
|
|
|
|
rm -rf %{buildroot}%{_bindir}/rbd-replay-many
|
|
|
|
rm -rf %{buildroot}%{_bindir}/rbdmap
|
|
|
|
rm -rf %{buildroot}%{_sbindir}/mount.ceph
|
2016-07-22 19:22:52 +02:00
|
|
|
rm -rf %{buildroot}/sbin/mount.ceph
|
2016-08-26 15:55:14 +02:00
|
|
|
rm -rf %{buildroot}%{_bindir}/rbd-replay-prep
|
|
|
|
rm -rf %{buildroot}%{_bindir}/ceph-post-file
|
|
|
|
rm -rf %{buildroot}%{_bindir}/ceph-brag
|
|
|
|
rm -rf %{buildroot}%{_tmpfilesdir}/ceph-common.conf
|
|
|
|
rm -rf %{buildroot}%{_mandir}/man8/ceph-authtool.8*
|
|
|
|
rm -rf %{buildroot}%{_mandir}/man8/ceph-conf.8*
|
|
|
|
rm -rf %{buildroot}%{_mandir}/man8/ceph-dencoder.8*
|
|
|
|
rm -rf %{buildroot}%{_mandir}/man8/ceph-rbdnamer.8*
|
|
|
|
rm -rf %{buildroot}%{_mandir}/man8/ceph-syn.8*
|
|
|
|
rm -rf %{buildroot}%{_mandir}/man8/ceph-post-file.8*
|
|
|
|
rm -rf %{buildroot}%{_mandir}/man8/ceph.8*
|
|
|
|
rm -rf %{buildroot}%{_mandir}/man8/mount.ceph.8*
|
|
|
|
rm -rf %{buildroot}%{_mandir}/man8/rados.8*
|
|
|
|
rm -rf %{buildroot}%{_mandir}/man8/rbd.8*
|
|
|
|
rm -rf %{buildroot}%{_mandir}/man8/rbdmap.8*
|
|
|
|
rm -rf %{buildroot}%{_mandir}/man8/rbd-replay.8*
|
|
|
|
rm -rf %{buildroot}%{_mandir}/man8/rbd-replay-many.8*
|
|
|
|
rm -rf %{buildroot}%{_mandir}/man8/rbd-replay-prep.8*
|
|
|
|
rm -rf %{buildroot}%{_datadir}/ceph/known_hosts_drop.ceph.com
|
|
|
|
rm -rf %{buildroot}%{_datadir}/ceph/id_rsa_drop.ceph.com
|
|
|
|
rm -rf %{buildroot}%{_datadir}/ceph/id_rsa_drop.ceph.com.pub
|
|
|
|
rm -rf %{buildroot}%{_sysconfdir}/bash_completion.d/rados
|
|
|
|
rm -rf %{buildroot}%{_sysconfdir}/bash_completion.d/rbd
|
|
|
|
rm -rf %{buildroot}%{_sysconfdir}/ceph/rbdmap
|
|
|
|
rm -rf %{buildroot}%{_unitdir}/rbdmap.service
|
|
|
|
rm -rf %{buildroot}%{python_sitelib}/ceph_argparse.py*
|
|
|
|
rm -rf %{buildroot}%{python_sitelib}/ceph_daemon.py*
|
|
|
|
rm -rf %{buildroot}%{_udevrulesdir}/50-rbd.rules
|
|
|
|
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
|
2017-01-17 14:52:30 +01:00
|
|
|
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
|
2016-08-26 15:55:14 +02:00
|
|
|
rm -rf %{buildroot}%{_bindir}/ceph-mon
|
|
|
|
rm -rf %{buildroot}%{_bindir}/ceph-rest-api
|
|
|
|
rm -rf %{buildroot}%{_mandir}/man8/ceph-mon.8*
|
|
|
|
rm -rf %{buildroot}%{_mandir}/man8/ceph-rest-api.8*
|
|
|
|
rm -rf %{buildroot}%{python_sitelib}/ceph_rest_api.py*
|
|
|
|
rm -rf %{buildroot}%{_unitdir}/ceph-mon@.service
|
|
|
|
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
|
2017-01-17 14:52:30 +01:00
|
|
|
rm -rf %{buildroot}%{_unitdir}/ceph-fuse@.service
|
|
|
|
rm -rf %{buildroot}%{_unitdir}/ceph-fuse.target
|
2016-08-26 15:55:14 +02:00
|
|
|
rm -rf %{buildroot}%{_bindir}/rbd-fuse
|
|
|
|
rm -rf %{buildroot}%{_mandir}/man8/rbd-fuse.8*
|
|
|
|
rm -rf %{buildroot}%{_bindir}/rbd-mirror
|
|
|
|
rm -rf %{buildroot}%{_mandir}/man8/rbd-mirror.8*
|
|
|
|
rm -rf %{buildroot}%{_unitdir}/ceph-rbd-mirror@.service
|
|
|
|
rm -rf %{buildroot}%{_unitdir}/ceph-rbd-mirror.target
|
|
|
|
rm -rf %{buildroot}%{_bindir}/rbd-nbd
|
|
|
|
rm -rf %{buildroot}%{_mandir}/man8/rbd-nbd.8*
|
|
|
|
rm -rf %{buildroot}%{_bindir}/radosgw
|
|
|
|
rm -rf %{buildroot}%{_bindir}/radosgw-admin
|
|
|
|
rm -rf %{buildroot}%{_bindir}/radosgw-token
|
|
|
|
rm -rf %{buildroot}%{_bindir}/radosgw-object-expirer
|
|
|
|
rm -rf %{buildroot}%{_mandir}/man8/radosgw.8*
|
|
|
|
rm -rf %{buildroot}%{_mandir}/man8/radosgw-admin.8*
|
|
|
|
rm -rf %{buildroot}%{_sysconfdir}/bash_completion.d/radosgw-admin
|
|
|
|
rm -rf %{buildroot}%{_unitdir}/ceph-radosgw@.service
|
|
|
|
rm -rf %{buildroot}%{_unitdir}/ceph-radosgw.target
|
|
|
|
rm -rf %{buildroot}%{_bindir}/ceph-clsinfo
|
2017-04-07 12:25:48 +02:00
|
|
|
rm -rf %{buildroot}%{_bindir}/ceph-bluestore-tool
|
2016-08-26 15:55:14 +02:00
|
|
|
rm -rf %{buildroot}%{_bindir}/ceph-objectstore-tool
|
|
|
|
rm -rf %{buildroot}%{_bindir}/ceph-osd
|
|
|
|
rm -rf %{buildroot}%{_sbindir}/ceph-disk
|
|
|
|
rm -rf %{buildroot}%{_sbindir}/ceph-disk-udev
|
|
|
|
rm -rf %{buildroot}%{_libexecdir}/ceph/ceph-osd-prestart.sh
|
|
|
|
rm -rf %{buildroot}%{_udevrulesdir}/60-ceph-by-parttypeuuid.rules
|
|
|
|
rm -rf %{buildroot}%{_udevrulesdir}/95-ceph-osd.rules
|
|
|
|
rm -rf %{buildroot}%{_mandir}/man8/ceph-clsinfo.8*
|
|
|
|
rm -rf %{buildroot}%{_mandir}/man8/ceph-disk.8*
|
|
|
|
rm -rf %{buildroot}%{_mandir}/man8/ceph-osd.8*
|
|
|
|
rm -rf %{buildroot}%{_sysconfdir}/cron.hourly/subman
|
|
|
|
rm -rf %{buildroot}%{_unitdir}/ceph-osd@.service
|
|
|
|
rm -rf %{buildroot}%{_unitdir}/ceph-osd.target
|
|
|
|
rm -rf %{buildroot}%{_unitdir}/ceph-disk@.service
|
|
|
|
rm -rf %{buildroot}%{_prefix}/lib/ocf/resource.d/ceph/rbd
|
|
|
|
rm -rf %{buildroot}%{_libdir}/librados.so.*
|
2017-02-09 23:20:01 +01:00
|
|
|
rm -rf %{buildroot}%{_libdir}/ceph/libceph-common.so*
|
2016-08-26 15:55:14 +02:00
|
|
|
rm -rf %{buildroot}%{_libdir}/librados_tp.so.*
|
|
|
|
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
|
2017-01-17 14:52:30 +01:00
|
|
|
rm -rf %{buildroot}%{_includedir}/rados/inline_memory.h
|
2016-08-26 15:55:14 +02:00
|
|
|
rm -rf %{buildroot}%{_includedir}/rados/page.h
|
|
|
|
rm -rf %{buildroot}%{_includedir}/rados/crc32c.h
|
|
|
|
rm -rf %{buildroot}%{_includedir}/rados/rados_types.h
|
|
|
|
rm -rf %{buildroot}%{_includedir}/rados/rados_types.hpp
|
|
|
|
rm -rf %{buildroot}%{_includedir}/rados/memory.h
|
|
|
|
rm -rf %{buildroot}%{_libdir}/librados.so
|
|
|
|
rm -rf %{buildroot}%{_libdir}/librados_tp.so
|
|
|
|
rm -rf %{buildroot}%{_bindir}/librados-config
|
|
|
|
rm -rf %{buildroot}%{_mandir}/man8/librados-config.8*
|
|
|
|
rm -rf %{buildroot}%{python_sitearch}/rados.so
|
|
|
|
rm -rf %{buildroot}%{python_sitearch}/rados-*.egg-info
|
|
|
|
rm -rf %{buildroot}%{python3_sitearch}/rados.cpython*.so
|
|
|
|
rm -rf %{buildroot}%{python3_sitearch}/rados-*.egg-info
|
|
|
|
rm -rf %{buildroot}%{_libdir}/libradosstriper.so.*
|
|
|
|
rm -rf %{buildroot}%{_includedir}/radosstriper/libradosstriper.h
|
|
|
|
rm -rf %{buildroot}%{_includedir}/radosstriper/libradosstriper.hpp
|
|
|
|
rm -rf %{buildroot}%{_libdir}/libradosstriper.so
|
|
|
|
rm -rf %{buildroot}%{_libdir}/librbd.so.*
|
|
|
|
rm -rf %{buildroot}%{_libdir}/librbd_tp.so.*
|
|
|
|
rm -rf %{buildroot}%{_includedir}/rbd/librbd.h
|
|
|
|
rm -rf %{buildroot}%{_includedir}/rbd/librbd.hpp
|
|
|
|
rm -rf %{buildroot}%{_includedir}/rbd/features.h
|
|
|
|
rm -rf %{buildroot}%{_libdir}/librbd.so
|
|
|
|
rm -rf %{buildroot}%{_libdir}/librbd_tp.so
|
|
|
|
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
|
2017-01-17 14:52:30 +01:00
|
|
|
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
|
2016-08-26 15:55:14 +02:00
|
|
|
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
|
2017-01-17 14:52:30 +01:00
|
|
|
rm -rf %{buildroot}%{_includedir}/cephfs/ceph_statx.h
|
2016-08-26 15:55:14 +02:00
|
|
|
rm -rf %{buildroot}%{_libdir}/libcephfs.so
|
|
|
|
rm -rf %{buildroot}%{python_sitearch}/cephfs.so
|
|
|
|
rm -rf %{buildroot}%{python_sitearch}/cephfs-*.egg-info
|
|
|
|
rm -rf %{buildroot}%{python_sitelib}/ceph_volume_client.py*
|
|
|
|
rm -rf %{buildroot}%{python3_sitearch}/cephfs.cpython*.so
|
|
|
|
rm -rf %{buildroot}%{python3_sitearch}/cephfs-*.egg-info
|
|
|
|
rm -rf %{buildroot}%{python3_sitelib}/ceph_volume_client.py
|
|
|
|
rm -rf %{buildroot}%{python3_sitelib}/__pycache__/ceph_volume_client.cpython*.py*
|
|
|
|
rm -rf %{buildroot}%{python3_sitelib}/ceph_argparse.py
|
|
|
|
rm -rf %{buildroot}%{python3_sitelib}/__pycache__/ceph_argparse.cpython*.py*
|
2016-08-29 09:27:05 +02:00
|
|
|
rm -rf %{buildroot}%{python3_sitelib}/ceph_daemon.py
|
2016-08-26 15:55:14 +02:00
|
|
|
rm -rf %{buildroot}%{python3_sitelib}/__pycache__/ceph_daemon.cpython*.py*
|
|
|
|
rm -rf %{buildroot}%{_libdir}/libcephfs_jni.so.*
|
|
|
|
rm -rf %{buildroot}%{_libdir}/libcephfs_jni.so
|
|
|
|
rm -rf %{buildroot}%{_javadir}/libcephfs.jar
|
|
|
|
rm -rf %{buildroot}%{_javadir}/libcephfs-test.jar
|
|
|
|
rm -rf %{buildroot}%{_datadir}/selinux/packages/ceph.pp
|
|
|
|
rm -rf %{buildroot}%{_datadir}/selinux/devel/include/contrib/ceph.if
|
|
|
|
rm -rf %{buildroot}%{_mandir}/man8/ceph_selinux.8*
|
2016-07-22 19:22:52 +02:00
|
|
|
|
|
|
|
dirs=`find %{buildroot} -type d -empty`
|
|
|
|
while [[ -n $dirs ]]; do
|
|
|
|
for d in $dirs; do
|
|
|
|
rm -rf $d
|
|
|
|
done
|
|
|
|
dirs=`find %{buildroot} -type d -empty`
|
|
|
|
done
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
|
|
#################################################################################
|
|
|
|
# files and systemd scriptlets
|
|
|
|
#################################################################################
|
|
|
|
%files
|
|
|
|
|
|
|
|
%if %{with lttng}
|
|
|
|
%endif
|
|
|
|
%if 0%{?fedora} || 0%{?rhel}
|
|
|
|
%endif
|
|
|
|
%if 0%{?suse_version}
|
|
|
|
%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
|
2016-08-26 15:55:14 +02:00
|
|
|
%if 0%{?suse_version}
|
|
|
|
%endif
|
2016-07-22 19:22:52 +02:00
|
|
|
%if %{with lttng}
|
|
|
|
%endif
|
|
|
|
%if 0%{?rhel} || 0%{?fedora}
|
|
|
|
%endif
|
|
|
|
%if 0%{?suse_version}
|
|
|
|
%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}
|
|
|
|
%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}
|
|
|
|
%endif
|
|
|
|
%if 0%{?suse_version}
|
|
|
|
%endif
|
|
|
|
%if 0%{?fedora} || 0%{?rhel}
|
|
|
|
%endif
|
|
|
|
%if 0%{?suse_version}
|
|
|
|
%endif
|
2017-01-17 14:52:30 +01:00
|
|
|
%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
|
2016-07-22 19:22:52 +02:00
|
|
|
%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%{?rhel} && ! 0%{?centos}
|
|
|
|
%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 %{with ocf}
|
|
|
|
%endif
|
|
|
|
%if %{with lttng}
|
|
|
|
%endif
|
|
|
|
%if %{with lttng}
|
|
|
|
%endif
|
|
|
|
%if %{with lttng}
|
|
|
|
%endif
|
|
|
|
%if %{with lttng}
|
|
|
|
%endif
|
|
|
|
%if 0%{with ceph_test_package}
|
|
|
|
%files -n ceph-test
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_bindir}/ceph-client-debug
|
|
|
|
%{_bindir}/ceph_bench_log
|
|
|
|
%{_bindir}/ceph_kvstorebench
|
|
|
|
%{_bindir}/ceph_multi_stress_watch
|
|
|
|
%{_bindir}/ceph_erasure_code
|
|
|
|
%{_bindir}/ceph_erasure_code_benchmark
|
|
|
|
%{_bindir}/ceph_omapbench
|
|
|
|
%{_bindir}/ceph_objectstore_bench
|
|
|
|
%{_bindir}/ceph_perf_objectstore
|
|
|
|
%{_bindir}/ceph_perf_local
|
|
|
|
%{_bindir}/ceph_perf_msgr_client
|
|
|
|
%{_bindir}/ceph_perf_msgr_server
|
|
|
|
%{_bindir}/ceph_psim
|
|
|
|
%{_bindir}/ceph_radosacl
|
|
|
|
%{_bindir}/ceph_rgw_jsonparser
|
|
|
|
%{_bindir}/ceph_rgw_multiparser
|
|
|
|
%{_bindir}/ceph_scratchtool
|
|
|
|
%{_bindir}/ceph_scratchtoolpp
|
|
|
|
%{_bindir}/ceph_smalliobench
|
|
|
|
%{_bindir}/ceph_smalliobenchdumb
|
|
|
|
%{_bindir}/ceph_smalliobenchfs
|
|
|
|
%{_bindir}/ceph_smalliobenchrbd
|
|
|
|
%{_bindir}/ceph_test_*
|
|
|
|
%{_bindir}/ceph_tpbench
|
|
|
|
%{_bindir}/ceph_xattr_bench
|
|
|
|
%{_bindir}/ceph-coverage
|
|
|
|
%{_bindir}/ceph-monstore-tool
|
|
|
|
%{_bindir}/ceph-osdomap-tool
|
|
|
|
%{_bindir}/ceph-kvstore-tool
|
|
|
|
%{_bindir}/ceph-debugpack
|
|
|
|
%{_mandir}/man8/ceph-debugpack.8*
|
|
|
|
%dir %{_libdir}/ceph
|
|
|
|
%{_libdir}/ceph/ceph-monstore-update-crush.sh
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if 0%{with cephfs_java}
|
|
|
|
%endif
|
|
|
|
%if 0%{with selinux}
|
|
|
|
%endif # with selinux
|
|
|
|
%changelog
|
2017-01-20 12:29:05 +01:00
|
|
|
# nospeccleaner
|