vascom / rpms / ceph

Forked from rpms/ceph 5 years ago
Clone
bcc7f22
# vim: set noexpandtab ts=8 sw=8 :
08b7207
%bcond_with ocf
bcc7f22
%bcond_without cephfs_java
bcc7f22
%bcond_with tests
bcc7f22
%bcond_without tcmalloc
bcc7f22
%bcond_without libs_compat
bcc7f22
%bcond_with lowmem_builder
bcc7f22
%if 0%{?fedora} || 0%{?rhel}
bcc7f22
%bcond_without selinux
bcc7f22
%endif
bcc7f22
%if 0%{?suse_version}
bcc7f22
%bcond_with selinux
bcc7f22
%endif
4be65c2
bcc7f22
bcc7f22
%if (0%{?el5} || (0%{?rhel_version} >= 500 && 0%{?rhel_version} <= 600))
08b7207
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
08b7207
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
4be65c2
%endif
08b7207
bcc7f22
%if %{with selinux}
bcc7f22
# get selinux policy version
bcc7f22
%{!?_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)}
bcc7f22
bcc7f22
%define relabel_files() \
bcc7f22
restorecon -R /usr/bin/ceph-mon > /dev/null 2>&1; \
bcc7f22
restorecon -R /usr/bin/ceph-osd > /dev/null 2>&1; \
bcc7f22
restorecon -R /usr/bin/ceph-mds > /dev/null 2>&1; \
bcc7f22
restorecon -R /usr/bin/radosgw > /dev/null 2>&1; \
bcc7f22
restorecon -R /etc/rc\.d/init\.d/ceph > /dev/null 2>&1; \
bcc7f22
restorecon -R /etc/rc\.d/init\.d/radosgw > /dev/null 2>&1; \
bcc7f22
restorecon -R /var/run/ceph > /dev/null 2>&1; \
bcc7f22
restorecon -R /var/lib/ceph > /dev/null 2>&1; \
bcc7f22
restorecon -R /var/log/ceph > /dev/null 2>&1;
bcc7f22
%endif
bcc7f22
bcc7f22
%{!?_udevrulesdir: %global _udevrulesdir /lib/udev/rules.d}
bcc7f22
bcc7f22
# Use systemd files on RHEL 7 and above and in SUSE/openSUSE.
bcc7f22
# Note: We don't install unit files for the services yet. For now,
bcc7f22
# the _with_systemd variable only implies that we'll install
bcc7f22
# /etc/tmpfiles.d/ceph.conf in order to set up the socket directory in
bcc7f22
# /var/run/ceph.
bcc7f22
%if 0%{?fedora} || 0%{?rhel} >= 7 || 0%{?suse_version} >= 1210
bcc7f22
%global _with_systemd 1
bcc7f22
%endif
bcc7f22
bcc7f22
# LTTng-UST enabled on Fedora, RHEL 6, and SLES 12
bcc7f22
%if 0%{?fedora} || 0%{?rhel} == 6 || 0%{?suse_version} == 1315
bcc7f22
%global _with_lttng 1
bcc7f22
%endif
2a0aaf9
08b7207
#################################################################################
08b7207
# common
08b7207
#################################################################################
08b7207
Name:		ceph
bcc7f22
Version:	9.2.0
8d2c0a0
Release:	1%{?dist}
08b7207
Epoch:		1
08b7207
Summary:	User space components of the Ceph file system
bcc7f22
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
bcc7f22
%if 0%{?suse_version}
bcc7f22
Group:         System/Filesystems
bcc7f22
%endif
08b7207
URL:		http://ceph.com/
08b7207
Source0:	http://ceph.com/download/%{name}-%{version}.tar.bz2
bcc7f22
%if 0%{?fedora} || 0%{?rhel}
2a379f1
Patch0:		init-ceph.in-fedora.patch
2a379f1
%endif
bcc7f22
#################################################################################
bcc7f22
# dependencies that apply across all distro families
bcc7f22
#################################################################################
e44806f
Requires:	librbd1 = %{epoch}:%{version}-%{release}
e44806f
Requires:	librados2 = %{epoch}:%{version}-%{release}
e44806f
Requires:	libcephfs1 = %{epoch}:%{version}-%{release}
e44806f
Requires:	ceph-common = %{epoch}:%{version}-%{release}
bcc7f22
%if 0%{with selinux}
bcc7f22
Requires:	ceph-selinux = %{epoch}:%{version}-%{release}
bcc7f22
%endif
7da3554
Requires:	python-rados = %{epoch}:%{version}-%{release}
7da3554
Requires:	python-rbd = %{epoch}:%{version}-%{release}
7da3554
Requires:	python-cephfs = %{epoch}:%{version}-%{release}
08b7207
Requires:	python
08b7207
Requires:	python-requests
bcc7f22
Requires:	grep
08b7207
Requires:	xfsprogs
bcc7f22
Requires:	logrotate
08b7207
Requires:	parted
08b7207
Requires:	util-linux
08b7207
Requires:	hdparm
2a379f1
Requires:	cryptsetup
bcc7f22
Requires:	findutils
bcc7f22
Requires:	which
08b7207
Requires(post):	binutils
bcc7f22
%if 0%{with cephfs_java}
bcc7f22
BuildRequires:	java-devel
bcc7f22
BuildRequires:	sharutils
bcc7f22
%endif
bcc7f22
%if 0%{with selinux}
bcc7f22
BuildRequires:	checkpolicy
bcc7f22
BuildRequires:	selinux-policy-devel
bcc7f22
BuildRequires:	/usr/share/selinux/devel/policyhelp
bcc7f22
%endif
08b7207
BuildRequires:	gcc-c++
08b7207
BuildRequires:	boost-devel
bcc7f22
BuildRequires:  cmake
2a379f1
BuildRequires:	cryptsetup
bcc7f22
BuildRequires:	fuse-devel
08b7207
BuildRequires:	gdbm
2a379f1
BuildRequires:	hdparm
bcc7f22
BuildRequires:	leveldb-devel > 1.2
08b7207
BuildRequires:	libaio-devel
08b7207
BuildRequires:	libcurl-devel
2a379f1
BuildRequires:	libedit-devel
08b7207
BuildRequires:	libxml2-devel
08b7207
BuildRequires:	libblkid-devel >= 2.17
08b7207
BuildRequires:	libudev-devel
2a379f1
BuildRequires:	libtool
2a379f1
BuildRequires:	make
2a379f1
BuildRequires:	parted
bcc7f22
BuildRequires:	perl
2a379f1
BuildRequires:	pkgconfig
2a379f1
BuildRequires:	python
2a379f1
BuildRequires:	python-nose
2a379f1
BuildRequires:	python-requests
2a379f1
BuildRequires:	python-virtualenv
bcc7f22
BuildRequires:	snappy-devel
2a379f1
BuildRequires:	util-linux
2a379f1
BuildRequires:	xfsprogs
08b7207
BuildRequires:	xfsprogs-devel
2a379f1
BuildRequires:	xmlstarlet
84aa853
BuildRequires:	yasm
08b7207
08b7207
#################################################################################
bcc7f22
# distro-conditional dependencies
08b7207
#################################################################################
bcc7f22
%if 0%{?suse_version}
bcc7f22
%if 0%{?_with_systemd}
bcc7f22
BuildRequires:  pkgconfig(systemd)
bcc7f22
BuildRequires:	systemd-rpm-macros
bcc7f22
%{?systemd_requires}
4be65c2
%endif
bcc7f22
PreReq:		%fillup_prereq
bcc7f22
Requires:	python-Flask
bcc7f22
BuildRequires:	net-tools
bcc7f22
BuildRequires:	libbz2-devel
08b7207
%if 0%{?suse_version} > 1210
08b7207
Requires:	gptfdisk
bcc7f22
%if 0%{with tcmalloc}
08b7207
BuildRequires:	gperftools-devel
bcc7f22
%endif
08b7207
%else
08b7207
Requires:	scsirastools
08b7207
BuildRequires:	google-perftools-devel
08b7207
%endif
08b7207
BuildRequires:	mozilla-nss-devel
08b7207
BuildRequires:	keyutils-devel
08b7207
BuildRequires:	libatomic-ops-devel
08b7207
%else
bcc7f22
%if 0%{?_with_systemd}
bcc7f22
Requires:	systemd
bcc7f22
%endif
bcc7f22
BuildRequires:  bzip2-devel
08b7207
BuildRequires:	nss-devel
08b7207
BuildRequires:	keyutils-libs-devel
08b7207
BuildRequires:	libatomic_ops-devel
08b7207
Requires:	gdisk
08b7207
Requires(post):	chkconfig
bcc7f22
Requires(preun):	chkconfig
bcc7f22
Requires(preun):	initscripts
08b7207
BuildRequires:	gperftools-devel
bcc7f22
Requires:	python-flask
bcc7f22
%endif
bcc7f22
# boost
bcc7f22
%if 0%{?fedora} || 0%{?rhel} 
bcc7f22
BuildRequires:  boost-random
bcc7f22
%endif
bcc7f22
# python-argparse for distros with Python 2.6 or lower
bcc7f22
%if (0%{?rhel} && 0%{?rhel} <= 6) || (0%{?suse_version} && 0%{?suse_version} <= 1110)
bcc7f22
BuildRequires:	python-argparse
bcc7f22
%endif
bcc7f22
# lttng and babeltrace for rbd-replay-prep
bcc7f22
%if 0%{?_with_lttng}
bcc7f22
%if 0%{?fedora} || 0%{?rhel}
bcc7f22
BuildRequires:	lttng-ust-devel
bcc7f22
BuildRequires:	libbabeltrace-devel
bcc7f22
%endif
bcc7f22
%if 0%{?suse_version}
bcc7f22
BuildRequires:	lttng-ust-devel
bcc7f22
BuildRequires:  babeltrace-devel
bcc7f22
%endif
bcc7f22
%endif
bcc7f22
# expat and fastcgi for RGW
bcc7f22
%if 0%{?suse_version}
bcc7f22
BuildRequires:	libexpat-devel
bcc7f22
BuildRequires:	FastCGI-devel
bcc7f22
%endif
bcc7f22
%if 0%{?rhel} || 0%{?fedora}
bcc7f22
BuildRequires:	expat-devel
bcc7f22
BuildRequires:	fcgi-devel
bcc7f22
%endif
bcc7f22
# python-sphinx
bcc7f22
%if 0%{?rhel} > 0 && 0%{?rhel} < 7
bcc7f22
BuildRequires:	python-sphinx10
10fcd5e
%endif
bcc7f22
%if 0%{?fedora} || 0%{?suse_version} || 0%{?rhel} >= 7
bcc7f22
BuildRequires:	python-sphinx
94d715c
%endif
5dd73cb
08b7207
%description
bcc7f22
Ceph is a massively scalable, open-source, distributed storage system that runs
bcc7f22
on commodity hardware and delivers object, block and file system storage.
9a1331d
d184580
08b7207
#################################################################################
08b7207
# packages
08b7207
#################################################################################
08b7207
%package -n ceph-common
08b7207
Summary:	Ceph Common
08b7207
Group:		System Environment/Base
e44806f
Requires:	librbd1 = %{epoch}:%{version}-%{release}
e44806f
Requires:	librados2 = %{epoch}:%{version}-%{release}
7da3554
Requires:	python-rados = %{epoch}:%{version}-%{release}
7da3554
Requires:	python-rbd = %{epoch}:%{version}-%{release}
7da3554
Requires:	python-cephfs = %{epoch}:%{version}-%{release}
08b7207
Requires:	python-requests
bcc7f22
%if 0%{?_with_systemd}
bcc7f22
%{?systemd_requires}
bcc7f22
%endif
bcc7f22
%if 0%{?suse_version}
bcc7f22
Requires(pre):	pwdutils
bcc7f22
%endif
bcc7f22
# python-argparse is only needed in distros with Python 2.6 or lower
bcc7f22
%if (0%{?rhel} && 0%{?rhel} <= 6) || (0%{?suse_version} && 0%{?suse_version} <= 1110)
bcc7f22
Requires:	python-argparse
bcc7f22
%endif
08b7207
%description -n ceph-common
2a379f1
Common utilities to mount and interact with a ceph storage cluster.
08b7207
08b7207
%package fuse
08b7207
Summary:	Ceph fuse-based client
08b7207
Group:		System Environment/Base
bcc7f22
Requires:	%{name}
08b7207
%description fuse
5dd73cb
FUSE based client for Ceph distributed network file system
5dd73cb
08b7207
%package -n rbd-fuse
08b7207
Summary:	Ceph fuse-based client
08b7207
Group:		System Environment/Base
bcc7f22
Requires:	%{name}
e44806f
Requires:	librados2 = %{epoch}:%{version}-%{release}
e44806f
Requires:	librbd1 = %{epoch}:%{version}-%{release}
08b7207
%description -n rbd-fuse
08b7207
FUSE based client to map Ceph rbd images to files
08b7207
Josef Bacik ca6b4d7
%package radosgw
08b7207
Summary:	Rados REST gateway
08b7207
Group:		Development/Libraries
e44806f
Requires:	ceph-common = %{epoch}:%{version}-%{release}
bcc7f22
%if 0%{with selinux}
bcc7f22
Requires:	ceph-selinux = %{epoch}:%{version}-%{release}
bcc7f22
%endif
e44806f
Requires:	librados2 = %{epoch}:%{version}-%{release}
bcc7f22
%if 0%{?rhel} || 0%{?fedora}
bcc7f22
Requires:	mailcap
08b7207
%endif
Josef Bacik ca6b4d7
%description radosgw
2a379f1
This package is an S3 HTTP REST gateway for the RADOS object store. It
2a379f1
is implemented as a FastCGI module using libfcgi, and can be used in
Josef Bacik ca6b4d7
conjunction with any FastCGI capable web server.
Josef Bacik ca6b4d7
08b7207
%if %{with ocf}
08b7207
%package resource-agents
08b7207
Summary:	OCF-compliant resource agents for Ceph daemons
08b7207
Group:		System Environment/Base
08b7207
License:	LGPL-2.0
bcc7f22
Requires:	%{name} = %{epoch}:%{version}
08b7207
Requires:	resource-agents
08b7207
%description resource-agents
08b7207
Resource agents for monitoring and managing Ceph daemons
08b7207
under Open Cluster Framework (OCF) compliant resource
08b7207
managers such as Pacemaker.
08b7207
%endif
9a1331d
08b7207
%package -n librados2
08b7207
Summary:	RADOS distributed object store client library
08b7207
Group:		System Environment/Libraries
08b7207
License:	LGPL-2.0
bcc7f22
%if 0%{?rhel} || 0%{?fedora}
3b0b0e0
Obsoletes:	ceph-libs < %{epoch}:%{version}-%{release}
9a1331d
%endif
08b7207
%description -n librados2
08b7207
RADOS is a reliable, autonomic distributed object storage cluster
08b7207
developed as part of the Ceph distributed storage system. This is a
08b7207
shared library allowing applications to access the distributed object
08b7207
store using a simple file-like interface.
08b7207
7da3554
%package -n librados2-devel
7da3554
Summary:	RADOS headers
7da3554
Group:		Development/Libraries
7da3554
License:	LGPL-2.0
7da3554
Requires:	librados2 = %{epoch}:%{version}-%{release}
2a379f1
Obsoletes:	ceph-devel < %{epoch}:%{version}-%{release}
7da3554
%description -n librados2-devel
7da3554
This package contains libraries and headers needed to develop programs
7da3554
that use RADOS object store.
7da3554
7da3554
%package -n python-rados
7da3554
Summary:	Python libraries for the RADOS object store
7da3554
Group:		System Environment/Libraries
7da3554
License:	LGPL-2.0
7da3554
Requires:	librados2 = %{epoch}:%{version}-%{release}
2a379f1
Obsoletes:	python-ceph < %{epoch}:%{version}-%{release}
7da3554
%description -n python-rados
7da3554
This package contains Python libraries for interacting with Cephs RADOS
7da3554
object store.
7da3554
3b0b0e0
%package -n libradosstriper1
d8048b5
Summary:	RADOS striping interface
d8048b5
Group:		System Environment/Libraries
d8048b5
License:	LGPL-2.0
d8048b5
Requires:	librados2 = %{epoch}:%{version}-%{release}
3b0b0e0
%description -n libradosstriper1
3b0b0e0
Striping interface built on top of the rados library, allowing
3b0b0e0
to stripe bigger objects onto several standard rados objects using
3b0b0e0
an interface very similar to the rados one.
3b0b0e0
3b0b0e0
%package -n libradosstriper1-devel
d8048b5
Summary:	RADOS striping interface headers
d8048b5
Group:		Development/Libraries
d8048b5
License:	LGPL-2.0
d8048b5
Requires:	libradosstriper1 = %{epoch}:%{version}-%{release}
d8048b5
Requires:	librados2-devel = %{epoch}:%{version}-%{release}
2a379f1
Obsoletes:	ceph-devel < %{epoch}:%{version}-%{release}
3b0b0e0
%description -n libradosstriper1-devel
3b0b0e0
This package contains libraries and headers needed to develop programs
3b0b0e0
that use RADOS striping interface.
3b0b0e0
08b7207
%package -n librbd1
08b7207
Summary:	RADOS block device client library
08b7207
Group:		System Environment/Libraries
08b7207
License:	LGPL-2.0
e44806f
Requires:	librados2 = %{epoch}:%{version}-%{release}
bcc7f22
%if 0%{?rhel} || 0%{?fedora}
3b0b0e0
Obsoletes:	ceph-libs < %{epoch}:%{version}-%{release}
9a1331d
%endif
08b7207
%description -n librbd1
08b7207
RBD is a block device striped across multiple distributed objects in
08b7207
RADOS, a reliable, autonomic distributed object storage cluster
08b7207
developed as part of the Ceph distributed storage system. This is a
08b7207
shared library allowing applications to manage these block devices.
9a1331d
7da3554
%package -n librbd1-devel
7da3554
Summary:	RADOS block device headers
7da3554
Group:		Development/Libraries
7da3554
License:	LGPL-2.0
7da3554
Requires:	librbd1 = %{epoch}:%{version}-%{release}
a4d87e6
Requires:	librados2-devel = %{epoch}:%{version}-%{release}
2a379f1
Obsoletes:	ceph-devel < %{epoch}:%{version}-%{release}
7da3554
%description -n librbd1-devel
7da3554
This package contains libraries and headers needed to develop programs
7da3554
that use RADOS block device.
7da3554
7da3554
%package -n python-rbd
7da3554
Summary:	Python libraries for the RADOS block device
7da3554
Group:		System Environment/Libraries
7da3554
License:	LGPL-2.0
7da3554
Requires:	librbd1 = %{epoch}:%{version}-%{release}
7da3554
Requires:	python-rados = %{epoch}:%{version}-%{release}
2a379f1
Obsoletes:	python-ceph < %{epoch}:%{version}-%{release}
7da3554
%description -n python-rbd
7da3554
This package contains Python libraries for interacting with Cephs RADOS
7da3554
block device.
7da3554
08b7207
%package -n libcephfs1
08b7207
Summary:	Ceph distributed file system client library
08b7207
Group:		System Environment/Libraries
08b7207
License:	LGPL-2.0
bcc7f22
%if 0%{?rhel} || 0%{?fedora}
3b0b0e0
Obsoletes:	ceph-libs < %{epoch}:%{version}-%{release}
bcc7f22
Obsoletes:	ceph-libcephfs
4be65c2
%endif
08b7207
%description -n libcephfs1
08b7207
Ceph is a distributed network file system designed to provide excellent
08b7207
performance, reliability, and scalability. This is a shared library
08b7207
allowing applications to access a Ceph distributed file system via a
08b7207
POSIX-like interface.
08b7207
7da3554
%package -n libcephfs1-devel
7da3554
Summary:	Ceph distributed file system headers
7da3554
Group:		Development/Libraries
7da3554
License:	LGPL-2.0
7da3554
Requires:	libcephfs1 = %{epoch}:%{version}-%{release}
a4d87e6
Requires:	librados2-devel = %{epoch}:%{version}-%{release}
2a379f1
Obsoletes:	ceph-devel < %{epoch}:%{version}-%{release}
7da3554
%description -n libcephfs1-devel
7da3554
This package contains libraries and headers needed to develop programs
7da3554
that use Cephs distributed file system.
7da3554
7da3554
%package -n python-cephfs
7da3554
Summary:	Python libraries for Ceph distributed file system
08b7207
Group:		System Environment/Libraries
08b7207
License:	LGPL-2.0
7da3554
Requires:	libcephfs1 = %{epoch}:%{version}-%{release}
7da3554
Requires:	python-rados = %{epoch}:%{version}-%{release}
2a379f1
Obsoletes:	python-ceph < %{epoch}:%{version}-%{release}
7da3554
%description -n python-cephfs
7da3554
This package contains Python libraries for interacting with Cephs distributed
7da3554
file system.
08b7207
b318545
%package -n ceph-test
b318545
Summary:	Ceph benchmarks and test tools
b318545
Group:		System Environment/Libraries
b318545
License:	LGPL-2.0
bcc7f22
Requires:	ceph-common
bcc7f22
Requires:	xmlstarlet
b318545
%description -n ceph-test
b318545
This package contains Ceph benchmarks and test tools.
b318545
bcc7f22
%if 0%{with cephfs_java}
bcc7f22
b318545
%package -n libcephfs_jni1
bcc7f22
Summary:	Java Native Interface library for CephFS Java bindings
b318545
Group:		System Environment/Libraries
b318545
License:	LGPL-2.0
b318545
Requires:	java
b318545
Requires:	libcephfs1 = %{epoch}:%{version}-%{release}
b318545
%description -n libcephfs_jni1
b318545
This package contains the Java Native Interface library for CephFS Java
b318545
bindings.
b318545
7da3554
%package -n libcephfs_jni1-devel
bcc7f22
Summary:	Development files for CephFS Java Native Interface library
7da3554
Group:		System Environment/Libraries
7da3554
License:	LGPL-2.0
7da3554
Requires:	java
7da3554
Requires:	libcephfs_jni1 = %{epoch}:%{version}-%{release}
2a379f1
Obsoletes:	ceph-devel < %{epoch}:%{version}-%{release}
7da3554
%description -n libcephfs_jni1-devel
7da3554
This package contains the development files for CephFS Java Native Interface
7da3554
library.
7da3554
b318545
%package -n cephfs-java
bcc7f22
Summary:	Java libraries for the Ceph File System
b318545
Group:		System Environment/Libraries
b318545
License:	LGPL-2.0
b318545
Requires:	java
b318545
Requires:	libcephfs_jni1 = %{epoch}:%{version}-%{release}
2a379f1
%if 0%{?el6}
2a379f1
Requires:	junit4
2a379f1
BuildRequires:	junit4
2a379f1
%else
2a379f1
Requires:       junit
2a379f1
BuildRequires:  junit
2a379f1
%endif
b318545
%description -n cephfs-java
b318545
This package contains the Java libraries for the Ceph File System.
b318545
bcc7f22
%endif
bcc7f22
bcc7f22
%if 0%{with selinux}
bcc7f22
bcc7f22
%package selinux
bcc7f22
Summary:	SELinux support for Ceph MON, OSD and MDS
bcc7f22
Group:		System Environment/Base
bcc7f22
Requires:	%{name}
bcc7f22
Requires:	policycoreutils, libselinux-utils
bcc7f22
Requires(post): selinux-policy-base >= %{_selinux_policy_version}, policycoreutils, gawk
bcc7f22
Requires(postun): policycoreutils
bcc7f22
%description selinux
bcc7f22
This package contains SELinux support for Ceph MON, OSD and MDS. The package
bcc7f22
also performs file-system relabelling which can take a long time on heavily
bcc7f22
populated file-systems.
bcc7f22
bcc7f22
%endif
bcc7f22
bcc7f22
%if 0%{with libs_compat}
bcc7f22
08b7207
%package libs-compat
bcc7f22
Summary:	Meta package to include ceph libraries
08b7207
Group:		System Environment/Libraries
08b7207
License:	LGPL-2.0
7da3554
Obsoletes:	ceph-libs
e44806f
Requires:	librados2 = %{epoch}:%{version}-%{release}
e44806f
Requires:	librbd1 = %{epoch}:%{version}-%{release}
e44806f
Requires:	libcephfs1 = %{epoch}:%{version}-%{release}
08b7207
Provides:	ceph-libs
2a379f1
08b7207
%description libs-compat
08b7207
This is a meta package, that pulls in librados2, librbd1 and libcephfs1. It
08b7207
is included for backwards compatibility with distributions that depend on the
08b7207
former ceph-libs package, which is now split up into these three subpackages.
08b7207
Packages still depending on ceph-libs should be fixed to depend on librados2,
2a379f1
librbd1 or libcephfs1 instead.
08b7207
bcc7f22
%endif
bcc7f22
7da3554
%package devel-compat
7da3554
Summary:	Compatibility package for Ceph headers
7da3554
Group:		Development/Libraries
7da3554
License:	LGPL-2.0
7da3554
Obsoletes:	ceph-devel
7da3554
Requires:	%{name} = %{epoch}:%{version}-%{release}
7da3554
Requires:	librados2-devel = %{epoch}:%{version}-%{release}
3b0b0e0
Requires:	libradosstriper1-devel = %{epoch}:%{version}-%{release}
7da3554
Requires:	librbd1-devel = %{epoch}:%{version}-%{release}
7da3554
Requires:	libcephfs1-devel = %{epoch}:%{version}-%{release}
bcc7f22
%if 0%{with cephfs_java}
7da3554
Requires:	libcephfs_jni1-devel = %{epoch}:%{version}-%{release}
bcc7f22
%endif
7da3554
Provides:	ceph-devel
7da3554
%description devel-compat
7da3554
This is a compatibility package to accommodate ceph-devel split into
7da3554
librados2-devel, librbd1-devel and libcephfs1-devel. Packages still depending
3b0b0e0
on ceph-devel should be fixed to depend on librados2-devel, librbd1-devel,
3b0b0e0
libcephfs1-devel or libradosstriper1-devel instead.
7da3554
7da3554
%package -n python-ceph-compat
7da3554
Summary:	Compatibility package for Cephs python libraries
7da3554
Group:		System Environment/Libraries
7da3554
License:	LGPL-2.0
7da3554
Obsoletes:	python-ceph
7da3554
Requires:	python-rados = %{epoch}:%{version}-%{release}
7da3554
Requires:	python-rbd = %{epoch}:%{version}-%{release}
7da3554
Requires:	python-cephfs = %{epoch}:%{version}-%{release}
7da3554
Provides:	python-ceph
7da3554
%description -n python-ceph-compat
7da3554
This is a compatibility package to accommodate python-ceph split into
7da3554
python-rados, python-rbd and python-cephfs. Packages still depending on
7da3554
python-ceph should be fixed to depend on python-rados, python-rbd or
7da3554
python-cephfs instead.
7da3554
08b7207
#################################################################################
08b7207
# common
08b7207
#################################################################################
08b7207
%prep
08b7207
%setup -q
bcc7f22
%if 0%{?fedora} || 0%{?rhel}
2a379f1
%patch0 -p1 -b .init
2a379f1
%endif
08b7207
08b7207
%build
bcc7f22
%if 0%{with cephfs_java}
08b7207
# Find jni.h
08b7207
for i in /usr/{lib64,lib}/jvm/java/include{,/linux}; do
08b7207
    [ -d $i ] && java_inc="$java_inc -I$i"
08b7207
done
bcc7f22
%endif
08b7207
08b7207
./autogen.sh
08b7207
bcc7f22
%if %{with lowmem_builder}
bcc7f22
RPM_OPT_FLAGS="$RPM_OPT_FLAGS --param ggc-min-expand=20 --param ggc-min-heapsize=32768"
5311ad2
%endif
bcc7f22
export RPM_OPT_FLAGS=`echo $RPM_OPT_FLAGS | sed -e 's/i386/i486/'`
5311ad2
08b7207
%{configure}	CPPFLAGS="$java_inc" \
b318545
		--prefix=/usr \
b318545
		--localstatedir=/var \
b318545
		--sysconfdir=/etc \
bcc7f22
%if 0%{?_with_systemd}
bcc7f22
		--with-systemdsystemunitdir=%_unitdir \
bcc7f22
%endif
08b7207
		--docdir=%{_docdir}/ceph \
bcc7f22
		--with-man-pages \
bcc7f22
		--mandir="%_mandir" \
b318545
		--with-nss \
b318545
		--without-cryptopp \
b318545
		--with-debug \
bcc7f22
%if 0%{with cephfs_java}
b318545
		--enable-cephfs-java \
bcc7f22
%endif
bcc7f22
%if 0%{with selinux}
bcc7f22
		--with-selinux \
bcc7f22
%endif
2a379f1
		--with-librocksdb-static=check \
bcc7f22
%if 0%{?rhel} || 0%{?fedora}
bcc7f22
		--with-systemd-libexec-dir=/usr/libexec/ceph \
bcc7f22
		--with-rgw-user=root \
bcc7f22
		--with-rgw-group=root \
bcc7f22
%endif
bcc7f22
%if 0%{?suse_version}
bcc7f22
		--with-systemd-libexec-dir=/usr/lib/ceph/ \
bcc7f22
		--with-rgw-user=wwwrun \
bcc7f22
		--with-rgw-group=www \
94d715c
%endif
bcc7f22
		--with-radosgw \
bcc7f22
		$CEPH_EXTRA_CONFIGURE_ARGS \
08b7207
		%{?_with_ocf} \
bcc7f22
		%{?_with_tcmalloc} \
bcc7f22
		CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS"
bcc7f22
bcc7f22
bcc7f22
make %{?_smp_mflags}
bcc7f22
bcc7f22
bcc7f22
%if 0%{with tests}
bcc7f22
%check
bcc7f22
# run in-tree unittests
bcc7f22
make %{?_smp_mflags} check-local
08b7207
560f971
%endif
Jonathan Dieter 0f5f195
bcc7f22
5dd73cb
5dd73cb
%install
08b7207
make DESTDIR=$RPM_BUILD_ROOT install
5dd73cb
find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
5dd73cb
find $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';'
08b7207
install -D src/rbdmap $RPM_BUILD_ROOT%{_sysconfdir}/ceph/rbdmap
bcc7f22
install -D src/init-rbdmap $RPM_BUILD_ROOT%{_initrddir}/rbdmap
bcc7f22
%if 0%{?fedora} || 0%{?rhel}
bcc7f22
install -m 0644 -D etc/sysconfig/ceph $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/ceph
bcc7f22
%endif
bcc7f22
%if 0%{?suse_version}
bcc7f22
install -m 0644 -D etc/sysconfig/ceph $RPM_BUILD_ROOT%{_localstatedir}/adm/fillup-templates/sysconfig.%{name}
bcc7f22
%endif
bcc7f22
%if 0%{?_with_systemd}
bcc7f22
  install -m 0644 -D systemd/ceph.tmpfiles.d $RPM_BUILD_ROOT%{_tmpfilesdir}/ceph-common.conf
bcc7f22
  install -m 0644 -D systemd/ceph-osd@.service $RPM_BUILD_ROOT%{_unitdir}/ceph-osd@.service
bcc7f22
  install -m 0644 -D systemd/ceph-mon@.service $RPM_BUILD_ROOT%{_unitdir}/ceph-mon@.service
bcc7f22
  install -m 0644 -D systemd/ceph-create-keys@.service $RPM_BUILD_ROOT%{_unitdir}/ceph-create-keys@.service
bcc7f22
  install -m 0644 -D systemd/ceph-mds@.service $RPM_BUILD_ROOT%{_unitdir}/ceph-mds@.service
bcc7f22
  install -m 0644 -D systemd/ceph-radosgw@.service $RPM_BUILD_ROOT%{_unitdir}/ceph-radosgw@.service
bcc7f22
  install -m 0644 -D systemd/ceph.target $RPM_BUILD_ROOT%{_unitdir}/ceph.target
bcc7f22
  install -m 0644 -D systemd/ceph-disk@.service $RPM_BUILD_ROOT%{_unitdir}/ceph-disk@.service
bcc7f22
  install -m 0755 -D systemd/ceph $RPM_BUILD_ROOT%{_sbindir}/rcceph
bcc7f22
%else
bcc7f22
  install -D src/init-ceph $RPM_BUILD_ROOT%{_initrddir}/ceph
bcc7f22
  install -D src/init-radosgw $RPM_BUILD_ROOT%{_initrddir}/ceph-radosgw
bcc7f22
  ln -sf ../../etc/init.d/ceph %{buildroot}/%{_sbindir}/rcceph
bcc7f22
  ln -sf ../../etc/init.d/ceph-radosgw %{buildroot}/%{_sbindir}/rcceph-radosgw
bcc7f22
%endif
08b7207
mkdir -p $RPM_BUILD_ROOT%{_sbindir}
9a1331d
install -m 0644 -D src/logrotate.conf $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/ceph
08b7207
chmod 0644 $RPM_BUILD_ROOT%{_docdir}/ceph/sample.ceph.conf
08b7207
chmod 0644 $RPM_BUILD_ROOT%{_docdir}/ceph/sample.fetch_config
08b7207
bcc7f22
# firewall templates
bcc7f22
%if 0%{?suse_version}
bcc7f22
install -m 0644 -D etc/sysconfig/SuSEfirewall2.d/services/ceph-mon %{buildroot}%{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/ceph-mon
bcc7f22
install -m 0644 -D etc/sysconfig/SuSEfirewall2.d/services/ceph-osd-mds %{buildroot}%{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/ceph-osd-mds
08b7207
%endif
08b7207
bcc7f22
# udev rules
bcc7f22
install -m 0644 -D udev/50-rbd.rules $RPM_BUILD_ROOT%{_udevrulesdir}/50-rbd.rules
bcc7f22
install -m 0644 -D udev/60-ceph-partuuid-workaround.rules $RPM_BUILD_ROOT%{_udevrulesdir}/60-ceph-partuuid-workaround.rules
bcc7f22
08b7207
%if (0%{?rhel} && 0%{?rhel} < 7)
08b7207
install -m 0644 -D udev/95-ceph-osd-alt.rules $RPM_BUILD_ROOT/lib/udev/rules.d/95-ceph-osd.rules
08b7207
%else
08b7207
install -m 0644 -D udev/95-ceph-osd.rules $RPM_BUILD_ROOT/lib/udev/rules.d/95-ceph-osd.rules
08b7207
%endif
08b7207
bcc7f22
%if 0%{?rhel} >= 7 || 0%{?fedora} || 0%{?suse_version}
08b7207
mv $RPM_BUILD_ROOT/lib/udev/rules.d/95-ceph-osd.rules $RPM_BUILD_ROOT/usr/lib/udev/rules.d/95-ceph-osd.rules
08b7207
mv $RPM_BUILD_ROOT/sbin/mount.ceph $RPM_BUILD_ROOT/usr/sbin/mount.ceph
08b7207
mv $RPM_BUILD_ROOT/sbin/mount.fuse.ceph $RPM_BUILD_ROOT/usr/sbin/mount.fuse.ceph
08b7207
%endif
08b7207
08b7207
#set up placeholder directories
David Nalley d10f18b
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/ceph
bcc7f22
%if ! 0%{?_with_systemd}
08b7207
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/run/ceph
bcc7f22
%endif
08b7207
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/log/ceph
08b7207
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/lib/ceph/tmp
08b7207
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/lib/ceph/mon
08b7207
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/lib/ceph/osd
08b7207
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/lib/ceph/mds
bcc7f22
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/lib/ceph/radosgw
08b7207
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/lib/ceph/bootstrap-osd
08b7207
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/lib/ceph/bootstrap-mds
bcc7f22
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/lib/ceph/bootstrap-rgw
08b7207
08b7207
%clean
08b7207
rm -rf $RPM_BUILD_ROOT
Jonathan Dieter f32a9e4
bcc7f22
%pre
bcc7f22
%if 0%{?_with_systemd}
bcc7f22
  %if 0%{?suse_version}
bcc7f22
    # service_add_pre and friends don't work with parameterized systemd service
bcc7f22
    # instances, only with single services or targets, so we always pass
bcc7f22
    # ceph.target to these macros
bcc7f22
    %service_add_pre ceph.target
bcc7f22
  %endif
bcc7f22
%endif
bcc7f22
bcc7f22
5dd73cb
%post
08b7207
/sbin/ldconfig
bcc7f22
%if 0%{?_with_systemd}
bcc7f22
  %if 0%{?suse_version}
bcc7f22
    %fillup_only
bcc7f22
    %service_add_post ceph.target
bcc7f22
  %endif
bcc7f22
%else
bcc7f22
  /sbin/chkconfig --add ceph
bcc7f22
%endif
5dd73cb
5dd73cb
%preun
bcc7f22
%if 0%{?_with_systemd}
bcc7f22
  %if 0%{?suse_version}
bcc7f22
    %service_del_preun ceph.target
bcc7f22
  %endif
bcc7f22
  # Disable and stop on removal.
bcc7f22
  if [ $1 = 0 ] ; then
bcc7f22
    SERVICE_LIST=$(systemctl | grep -E '^ceph-mon@|^ceph-create-keys@|^ceph-osd@|^ceph-mds@|^ceph-disk-'  | cut -d' ' -f1)
bcc7f22
    if [ -n "$SERVICE_LIST" ]; then
bcc7f22
      for SERVICE in $SERVICE_LIST; do
bcc7f22
        /usr/bin/systemctl --no-reload disable $SERVICE > /dev/null 2>&1 || :
bcc7f22
        /usr/bin/systemctl stop $SERVICE > /dev/null 2>&1 || :
bcc7f22
      done
bcc7f22
    fi
bcc7f22
  fi
bcc7f22
%else
bcc7f22
  %if 0%{?rhel} || 0%{?fedora}
bcc7f22
    if [ $1 = 0 ] ; then
bcc7f22
      /sbin/service ceph stop >/dev/null 2>&1
bcc7f22
      /sbin/chkconfig --del ceph
bcc7f22
    fi
bcc7f22
  %endif
08b7207
%endif
5dd73cb
5dd73cb
%postun
08b7207
/sbin/ldconfig
bcc7f22
%if 0%{?_with_systemd}
bcc7f22
  if [ $1 = 1 ] ; then
bcc7f22
    # Restart on upgrade, but only if "CEPH_AUTO_RESTART_ON_UPGRADE" is set to
bcc7f22
    # "yes". In any case: if units are not running, do not touch them.
bcc7f22
    SYSCONF_CEPH=/etc/sysconfig/ceph
bcc7f22
    if [ -f $SYSCONF_CEPH -a -r $SYSCONF_CEPH ] ; then
bcc7f22
      source $SYSCONF_CEPH
bcc7f22
    fi
bcc7f22
    if [ "X$CEPH_AUTO_RESTART_ON_UPGRADE" = "Xyes" ] ; then
bcc7f22
      SERVICE_LIST=$(systemctl | grep -E '^ceph-mon@|^ceph-create-keys@|^ceph-osd@|^ceph-mds@|^ceph-disk-'  | cut -d' ' -f1)
bcc7f22
      if [ -n "$SERVICE_LIST" ]; then
bcc7f22
        for SERVICE in $SERVICE_LIST; do
bcc7f22
          /usr/bin/systemctl try-restart $SERVICE > /dev/null 2>&1 || :
bcc7f22
        done
bcc7f22
      fi
bcc7f22
    fi
bcc7f22
  fi
08b7207
%endif
5dd73cb
08b7207
#################################################################################
08b7207
# files
08b7207
#################################################################################
5dd73cb
%files
08b7207
%defattr(-,root,root,-)
08b7207
%docdir %{_docdir}
08b7207
%dir %{_docdir}/ceph
08b7207
%{_docdir}/ceph/sample.ceph.conf
08b7207
%{_docdir}/ceph/sample.fetch_config
Josef Bacik ca6b4d7
%{_bindir}/cephfs
David Nalley d10f18b
%{_bindir}/ceph-clsinfo
08b7207
%{_bindir}/ceph-rest-api
7da3554
%{python_sitelib}/ceph_rest_api.py*
5dd73cb
%{_bindir}/crushtool
5dd73cb
%{_bindir}/monmaptool
5dd73cb
%{_bindir}/osdmaptool
David Nalley d10f18b
%{_bindir}/ceph-run
David Nalley d10f18b
%{_bindir}/ceph-mon
David Nalley d10f18b
%{_bindir}/ceph-mds
bcc7f22
%{_bindir}/ceph-objectstore-tool
David Nalley d10f18b
%{_bindir}/ceph-osd
bcc7f22
%{_bindir}/ceph-detect-init
08b7207
%{_bindir}/librados-config
b318545
%{_bindir}/ceph-client-debug
3b0b0e0
%{_bindir}/cephfs-journal-tool
2a379f1
%{_bindir}/cephfs-table-tool
bcc7f22
%{_bindir}/cephfs-data-scan
David Nalley d10f18b
%{_bindir}/ceph-debugpack
Josef Bacik 9b4a6bb
%{_bindir}/ceph-coverage
bcc7f22
%if 0%{?_with_systemd}
bcc7f22
%{_unitdir}/ceph-mds@.service
bcc7f22
%{_unitdir}/ceph-mon@.service
bcc7f22
%{_unitdir}/ceph-create-keys@.service
bcc7f22
%{_unitdir}/ceph-osd@.service
bcc7f22
%{_unitdir}/ceph-radosgw@.service
bcc7f22
%{_unitdir}/ceph-disk@.service
bcc7f22
%{_unitdir}/ceph.target
bcc7f22
%else
Josef Bacik ca6b4d7
%{_initrddir}/ceph
bcc7f22
%endif
08b7207
%{_sbindir}/ceph-disk
9a1331d
%{_sbindir}/ceph-disk-udev
08b7207
%{_sbindir}/ceph-create-keys
08b7207
%{_sbindir}/rcceph
bcc7f22
%if 0%{?rhel} >= 7 || 0%{?fedora} || 0%{?suse_version}
08b7207
%{_sbindir}/mount.ceph
08b7207
%else
08b7207
/sbin/mount.ceph
08b7207
%endif
08b7207
%dir %{_libdir}/ceph
08b7207
%{_libdir}/ceph/ceph_common.sh
3b0b0e0
%{_libexecdir}/ceph/ceph-osd-prestart.sh
08b7207
%dir %{_libdir}/rados-classes
bcc7f22
%{_libdir}/rados-classes/libcls_cephfs.so*
08b7207
%{_libdir}/rados-classes/libcls_rbd.so*
08b7207
%{_libdir}/rados-classes/libcls_hello.so*
bcc7f22
%{_libdir}/rados-classes/libcls_numops.so*
08b7207
%{_libdir}/rados-classes/libcls_rgw.so*
08b7207
%{_libdir}/rados-classes/libcls_lock.so*
08b7207
%{_libdir}/rados-classes/libcls_kvs.so*
08b7207
%{_libdir}/rados-classes/libcls_refcount.so*
08b7207
%{_libdir}/rados-classes/libcls_log.so*
08b7207
%{_libdir}/rados-classes/libcls_replica_log.so*
08b7207
%{_libdir}/rados-classes/libcls_statelog.so*
bcc7f22
%{_libdir}/rados-classes/libcls_timeindex.so*
08b7207
%{_libdir}/rados-classes/libcls_user.so*
08b7207
%{_libdir}/rados-classes/libcls_version.so*
08b7207
%dir %{_libdir}/ceph/erasure-code
3b0b0e0
%{_libdir}/ceph/erasure-code/libec_*.so*
bcc7f22
%if 0%{?_with_lttng}
bcc7f22
%{_libdir}/libos_tp.so*
bcc7f22
%{_libdir}/libosd_tp.so*
08b7207
%endif
bcc7f22
%{_udevrulesdir}/60-ceph-partuuid-workaround.rules
bcc7f22
%{_udevrulesdir}/95-ceph-osd.rules
08b7207
%config %{_sysconfdir}/bash_completion.d/ceph
Josef Bacik ca6b4d7
%config(noreplace) %{_sysconfdir}/logrotate.d/ceph
bcc7f22
%if 0%{?fedora} || 0%{?rhel}
bcc7f22
%config(noreplace) %{_sysconfdir}/sysconfig/ceph
bcc7f22
%endif
bcc7f22
%if 0%{?suse_version}
bcc7f22
%{_localstatedir}/adm/fillup-templates/sysconfig.*
bcc7f22
%config %{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/ceph-mon
bcc7f22
%config %{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/ceph-osd-mds
bcc7f22
%endif
bcc7f22
%{python_sitelib}/ceph_detect_init*
2a379f1
%{_mandir}/man8/ceph-deploy.8*
bcc7f22
%{_mandir}/man8/ceph-detect-init.8*
2a379f1
%{_mandir}/man8/ceph-disk.8*
4ac65e9
%{_mandir}/man8/ceph-create-keys.8*
David Nalley d10f18b
%{_mandir}/man8/ceph-mon.8*
David Nalley d10f18b
%{_mandir}/man8/ceph-mds.8*
David Nalley d10f18b
%{_mandir}/man8/ceph-osd.8*
David Nalley d10f18b
%{_mandir}/man8/ceph-run.8*
08b7207
%{_mandir}/man8/ceph-rest-api.8*
5dd73cb
%{_mandir}/man8/crushtool.8*
5dd73cb
%{_mandir}/man8/osdmaptool.8*
5dd73cb
%{_mandir}/man8/monmaptool.8*
Josef Bacik ca6b4d7
%{_mandir}/man8/cephfs.8*
5dd73cb
%{_mandir}/man8/mount.ceph.8*
David Nalley d10f18b
%{_mandir}/man8/ceph-debugpack.8*
2a379f1
%{_mandir}/man8/ceph-clsinfo.8*
2a379f1
%{_mandir}/man8/librados-config.8*
08b7207
#set up placeholder directories
bcc7f22
%attr(750,ceph,ceph) %dir %{_localstatedir}/lib/ceph/tmp
bcc7f22
%attr(750,ceph,ceph) %dir %{_localstatedir}/lib/ceph/mon
bcc7f22
%attr(750,ceph,ceph) %dir %{_localstatedir}/lib/ceph/osd
bcc7f22
%attr(750,ceph,ceph) %dir %{_localstatedir}/lib/ceph/mds
bcc7f22
%attr(750,ceph,ceph) %dir %{_localstatedir}/lib/ceph/bootstrap-osd
bcc7f22
%attr(750,ceph,ceph) %dir %{_localstatedir}/lib/ceph/bootstrap-mds
bcc7f22
%attr(750,ceph,ceph) %dir %{_localstatedir}/lib/ceph/bootstrap-rgw
bcc7f22
%if ! 0%{?_with_systemd}
bcc7f22
%attr(770,ceph,ceph) %dir %{_localstatedir}/run/ceph
bcc7f22
%endif
08b7207
08b7207
#################################################################################
08b7207
%files -n ceph-common
08b7207
%defattr(-,root,root,-)
08b7207
%{_bindir}/ceph
08b7207
%{_bindir}/ceph-authtool
08b7207
%{_bindir}/ceph-conf
08b7207
%{_bindir}/ceph-dencoder
2a379f1
%{_bindir}/ceph-rbdnamer
08b7207
%{_bindir}/ceph-syn
08b7207
%{_bindir}/ceph-crush-location
08b7207
%{_bindir}/rados
08b7207
%{_bindir}/rbd
bcc7f22
%{_bindir}/rbd-replay
bcc7f22
%{_bindir}/rbd-replay-many
bcc7f22
%if 0%{?_with_lttng}
bcc7f22
%{_bindir}/rbd-replay-prep
bcc7f22
%endif
08b7207
%{_bindir}/ceph-post-file
08b7207
%{_bindir}/ceph-brag
bcc7f22
%if 0%{?_with_systemd}
bcc7f22
%{_tmpfilesdir}/ceph-common.conf
bcc7f22
%endif
08b7207
%{_mandir}/man8/ceph-authtool.8*
08b7207
%{_mandir}/man8/ceph-conf.8*
9a1331d
%{_mandir}/man8/ceph-dencoder.8*
2a379f1
%{_mandir}/man8/ceph-rbdnamer.8*
08b7207
%{_mandir}/man8/ceph-syn.8*
9a1331d
%{_mandir}/man8/ceph-post-file.8*
08b7207
%{_mandir}/man8/ceph.8*
08b7207
%{_mandir}/man8/rados.8*
08b7207
%{_mandir}/man8/rbd.8*
bcc7f22
%{_mandir}/man8/rbd-replay.8*
bcc7f22
%{_mandir}/man8/rbd-replay-many.8*
bcc7f22
%{_mandir}/man8/rbd-replay-prep.8*
9a1331d
%{_datadir}/ceph/known_hosts_drop.ceph.com
08b7207
%{_datadir}/ceph/id_dsa_drop.ceph.com
08b7207
%{_datadir}/ceph/id_dsa_drop.ceph.com.pub
08b7207
%dir %{_sysconfdir}/ceph/
bcc7f22
%dir %{_datarootdir}/ceph/
bcc7f22
%dir %{_libexecdir}/ceph/
08b7207
%config %{_sysconfdir}/bash_completion.d/rados
08b7207
%config %{_sysconfdir}/bash_completion.d/rbd
08b7207
%config(noreplace) %{_sysconfdir}/ceph/rbdmap
08b7207
%{_initrddir}/rbdmap
7da3554
%{python_sitelib}/ceph_argparse.py*
bcc7f22
%{python_sitelib}/ceph_daemon.py*
bcc7f22
%{_udevrulesdir}/50-rbd.rules
bcc7f22
%attr(3770,ceph,ceph) %dir %{_localstatedir}/log/ceph/
bcc7f22
%attr(750,ceph,ceph) %dir %{_localstatedir}/lib/ceph/
bcc7f22
bcc7f22
%pre -n ceph-common
bcc7f22
CEPH_GROUP_ID=""
bcc7f22
CEPH_USER_ID=""
bcc7f22
%if 0%{?rhel} || 0%{?fedora}
bcc7f22
CEPH_GROUP_ID="-g 167"
bcc7f22
CEPH_USER_ID="-u 167"
bcc7f22
%endif
bcc7f22
%if 0%{?rhel} || 0%{?fedora}
bcc7f22
%{_sbindir}/groupadd ceph $CEPH_GROUP_ID -o -r 2>/dev/null || :
bcc7f22
%{_sbindir}/useradd ceph $CEPH_USER_ID -o -r -g ceph -s /sbin/nologin -c "Ceph daemons" -d %{_localstatedir}/lib/ceph 2> /dev/null || :
bcc7f22
%endif
bcc7f22
%if 0%{?suse_version}
bcc7f22
getent group ceph >/dev/null || groupadd -r ceph
bcc7f22
getent passwd ceph >/dev/null || useradd -r -g ceph -d %{_localstatedir}/lib/ceph -s /sbin/nologin -c "Ceph daemons" ceph
bcc7f22
%endif
bcc7f22
exit 0
bcc7f22
bcc7f22
%post -n ceph-common
bcc7f22
%if 0%{?_with_systemd}
bcc7f22
systemd-tmpfiles --create --prefix=/run/ceph
2a379f1
%endif
Josef Bacik 8f23225
08b7207
%postun -n ceph-common
08b7207
# Package removal cleanup
08b7207
if [ "$1" -eq "0" ] ; then
08b7207
    rm -rf /var/log/ceph
bcc7f22
    rm -rf /etc/ceph
08b7207
fi
Josef Bacik 8f23225
08b7207
#################################################################################
5dd73cb
%files fuse
08b7207
%defattr(-,root,root,-)
David Nalley d10f18b
%{_bindir}/ceph-fuse
9a1331d
%{_mandir}/man8/ceph-fuse.8*
bcc7f22
%if 0%{?rhel} >= 7 || 0%{?fedora} || 0%{?suse_version}
08b7207
%{_sbindir}/mount.fuse.ceph
08b7207
%else
08b7207
/sbin/mount.fuse.ceph
08b7207
%endif
08b7207
08b7207
#################################################################################
08b7207
%files -n rbd-fuse
08b7207
%defattr(-,root,root,-)
08b7207
%{_bindir}/rbd-fuse
Josef Bacik 7d1f840
%{_mandir}/man8/rbd-fuse.8*
5dd73cb
08b7207
#################################################################################
Josef Bacik ca6b4d7
%files radosgw
08b7207
%defattr(-,root,root,-)
Josef Bacik ca6b4d7
%{_bindir}/radosgw
David Nalley d10f18b
%{_bindir}/radosgw-admin
bcc7f22
%{_bindir}/radosgw-object-expirer
08b7207
%{_mandir}/man8/radosgw.8*
08b7207
%{_mandir}/man8/radosgw-admin.8*
08b7207
%config %{_sysconfdir}/bash_completion.d/radosgw-admin
bcc7f22
%dir %{_localstatedir}/lib/ceph/radosgw
bcc7f22
%if 0%{?_with_systemd}
bcc7f22
%else
bcc7f22
%{_initrddir}/ceph-radosgw
bcc7f22
%{_sbindir}/rcceph-radosgw
bcc7f22
%endif
08b7207
08b7207
%post radosgw
08b7207
/sbin/ldconfig
bcc7f22
%if 0%{?suse_version}
bcc7f22
  # explicit systemctl daemon-reload (that's the only relevant bit of
bcc7f22
  # service_add_post; the rest is all sysvinit --> systemd migration which
bcc7f22
  # isn't applicable in this context (see above comment).
bcc7f22
  /usr/bin/systemctl daemon-reload >/dev/null 2>&1 || :
08b7207
%endif
08b7207
08b7207
%preun radosgw
bcc7f22
%if 0%{?_with_systemd}
bcc7f22
  # Disable and stop on removal.
bcc7f22
  if [ $1 = 0 ] ; then
bcc7f22
    SERVICE_LIST=$(systemctl | grep -E '^ceph-radosgw@'  | cut -d' ' -f1)
bcc7f22
    if [ -n "$SERVICE_LIST" ]; then
bcc7f22
      for SERVICE in $SERVICE_LIST; do
bcc7f22
        /usr/bin/systemctl --no-reload disable $SERVICE > /dev/null 2>&1 || :
bcc7f22
        /usr/bin/systemctl stop $SERVICE > /dev/null 2>&1 || :
bcc7f22
      done
bcc7f22
    fi
bcc7f22
  fi
08b7207
%endif
08b7207
08b7207
%postun radosgw
08b7207
/sbin/ldconfig
bcc7f22
%if 0%{?_with_systemd}
bcc7f22
  if [ $1 = 1 ] ; then
bcc7f22
    # Restart on upgrade, but only if "CEPH_AUTO_RESTART_ON_UPGRADE" is set to
bcc7f22
    # "yes". In any case: if units are not running, do not touch them.
bcc7f22
    SYSCONF_CEPH=/etc/sysconfig/ceph
bcc7f22
    if [ -f $SYSCONF_CEPH -a -r $SYSCONF_CEPH ] ; then
bcc7f22
      source $SYSCONF_CEPH
bcc7f22
    fi
bcc7f22
    if [ "X$CEPH_AUTO_RESTART_ON_UPGRADE" = "Xyes" ] ; then
bcc7f22
      SERVICE_LIST=$(systemctl | grep -E '^ceph-radosgw@'  | cut -d' ' -f1)
bcc7f22
      if [ -n "$SERVICE_LIST" ]; then
bcc7f22
        for SERVICE in $SERVICE_LIST; do
bcc7f22
          /usr/bin/systemctl try-restart $SERVICE > /dev/null 2>&1 || :
bcc7f22
        done
bcc7f22
      fi
bcc7f22
    fi
bcc7f22
  fi
08b7207
%endif
08b7207
08b7207
#################################################################################
08b7207
%if %{with ocf}
08b7207
%files resource-agents
08b7207
%defattr(0755,root,root,-)
08b7207
%dir /usr/lib/ocf
08b7207
%dir /usr/lib/ocf/resource.d
08b7207
%dir /usr/lib/ocf/resource.d/ceph
08b7207
/usr/lib/ocf/resource.d/%{name}/*
08b7207
%endif
08b7207
08b7207
#################################################################################
08b7207
%files -n librados2
08b7207
%defattr(-,root,root,-)
08b7207
%{_libdir}/librados.so.*
bcc7f22
%if 0%{?_with_lttng}
bcc7f22
%{_libdir}/librados_tp.so.*
bcc7f22
%endif
08b7207
08b7207
%post -n librados2
08b7207
/sbin/ldconfig
08b7207
08b7207
%postun -n librados2
08b7207
/sbin/ldconfig
08b7207
08b7207
#################################################################################
7da3554
%files -n librados2-devel
7da3554
%defattr(-,root,root,-)
7da3554
%dir %{_includedir}/rados
7da3554
%{_includedir}/rados/librados.h
7da3554
%{_includedir}/rados/librados.hpp
7da3554
%{_includedir}/rados/buffer.h
7da3554
%{_includedir}/rados/page.h
7da3554
%{_includedir}/rados/crc32c.h
7da3554
%{_includedir}/rados/rados_types.h
7da3554
%{_includedir}/rados/rados_types.hpp
7da3554
%{_includedir}/rados/memory.h
7da3554
%{_libdir}/librados.so
bcc7f22
%if 0%{?_with_lttng}
bcc7f22
%{_libdir}/librados_tp.so
bcc7f22
%endif
7da3554
7da3554
#################################################################################
7da3554
%files -n python-rados
7da3554
%defattr(-,root,root,-)
7da3554
%{python_sitelib}/rados.py*
7da3554
7da3554
#################################################################################
3b0b0e0
%files -n libradosstriper1
3b0b0e0
%defattr(-,root,root,-)
3b0b0e0
%{_libdir}/libradosstriper.so.*
3b0b0e0
3b0b0e0
%post -n libradosstriper1
3b0b0e0
/sbin/ldconfig
3b0b0e0
3b0b0e0
%postun -n libradosstriper1
3b0b0e0
/sbin/ldconfig
3b0b0e0
3b0b0e0
#################################################################################
3b0b0e0
%files -n libradosstriper1-devel
3b0b0e0
%defattr(-,root,root,-)
3b0b0e0
%dir %{_includedir}/radosstriper
3b0b0e0
%{_includedir}/radosstriper/libradosstriper.h
3b0b0e0
%{_includedir}/radosstriper/libradosstriper.hpp
3b0b0e0
%{_libdir}/libradosstriper.so
3b0b0e0
3b0b0e0
#################################################################################
08b7207
%files -n librbd1
08b7207
%defattr(-,root,root,-)
08b7207
%{_libdir}/librbd.so.*
bcc7f22
%if 0%{?_with_lttng}
bcc7f22
%{_libdir}/librbd_tp.so.*
bcc7f22
%endif
08b7207
08b7207
%post -n librbd1
08b7207
/sbin/ldconfig
08b7207
mkdir -p /usr/lib64/qemu/
08b7207
ln -sf %{_libdir}/librbd.so.1 /usr/lib64/qemu/librbd.so.1
08b7207
08b7207
%postun -n librbd1
08b7207
/sbin/ldconfig
08b7207
08b7207
#################################################################################
7da3554
%files -n librbd1-devel
7da3554
%defattr(-,root,root,-)
7da3554
%dir %{_includedir}/rbd
7da3554
%{_includedir}/rbd/librbd.h
7da3554
%{_includedir}/rbd/librbd.hpp
7da3554
%{_includedir}/rbd/features.h
7da3554
%{_libdir}/librbd.so
bcc7f22
%if 0%{?_with_lttng}
bcc7f22
%{_libdir}/librbd_tp.so
bcc7f22
%endif
7da3554
7da3554
#################################################################################
7da3554
%files -n python-rbd
7da3554
%defattr(-,root,root,-)
7da3554
%{python_sitelib}/rbd.py*
7da3554
7da3554
#################################################################################
08b7207
%files -n libcephfs1
08b7207
%defattr(-,root,root,-)
08b7207
%{_libdir}/libcephfs.so.*
08b7207
08b7207
%post -n libcephfs1
08b7207
/sbin/ldconfig
08b7207
08b7207
%postun -n libcephfs1
08b7207
/sbin/ldconfig
08b7207
08b7207
#################################################################################
7da3554
%files -n libcephfs1-devel
7da3554
%defattr(-,root,root,-)
7da3554
%dir %{_includedir}/cephfs
7da3554
%{_includedir}/cephfs/libcephfs.h
7da3554
%{_libdir}/libcephfs.so
7da3554
7da3554
#################################################################################
7da3554
%files -n python-cephfs
08b7207
%defattr(-,root,root,-)
08b7207
%{python_sitelib}/cephfs.py*
08b7207
b318545
#################################################################################
b318545
%files -n ceph-test
b318545
%defattr(-,root,root,-)
b318545
%{_bindir}/ceph_bench_log
b318545
%{_bindir}/ceph_kvstorebench
b318545
%{_bindir}/ceph_multi_stress_watch
b318545
%{_bindir}/ceph_erasure_code
b318545
%{_bindir}/ceph_erasure_code_benchmark
b318545
%{_bindir}/ceph_omapbench
bcc7f22
%{_bindir}/ceph_objectstore_bench
bcc7f22
%{_bindir}/ceph_perf_objectstore
bcc7f22
%{_bindir}/ceph_perf_local
bcc7f22
%{_bindir}/ceph_perf_msgr_client
bcc7f22
%{_bindir}/ceph_perf_msgr_server
b318545
%{_bindir}/ceph_psim
b318545
%{_bindir}/ceph_radosacl
b318545
%{_bindir}/ceph_rgw_jsonparser
b318545
%{_bindir}/ceph_rgw_multiparser
b318545
%{_bindir}/ceph_scratchtool
b318545
%{_bindir}/ceph_scratchtoolpp
b318545
%{_bindir}/ceph_smalliobench
b318545
%{_bindir}/ceph_smalliobenchdumb
b318545
%{_bindir}/ceph_smalliobenchfs
b318545
%{_bindir}/ceph_smalliobenchrbd
b318545
%{_bindir}/ceph_streamtest
b318545
%{_bindir}/ceph_test_*
b318545
%{_bindir}/ceph_tpbench
b318545
%{_bindir}/ceph_xattr_bench
b318545
%{_bindir}/ceph-monstore-tool
b318545
%{_bindir}/ceph-osdomap-tool
b318545
%{_bindir}/ceph-kvstore-tool
bcc7f22
%dir %{_libdir}/ceph
bcc7f22
%{_libdir}/ceph/ceph-monstore-update-crush.sh
b318545
2a379f1
#################################################################################
bcc7f22
%if 0%{with cephfs_java}
b318545
%files -n libcephfs_jni1
b318545
%defattr(-,root,root,-)
b318545
%{_libdir}/libcephfs_jni.so.*
b318545
bcc7f22
%post -n libcephfs_jni1
bcc7f22
/sbin/ldconfig
bcc7f22
bcc7f22
%postun -n libcephfs_jni1
bcc7f22
/sbin/ldconfig
bcc7f22
2a379f1
#################################################################################
7da3554
%files -n libcephfs_jni1-devel
7da3554
%defattr(-,root,root,-)
7da3554
%{_libdir}/libcephfs_jni.so
7da3554
2a379f1
#################################################################################
b318545
%files -n cephfs-java
b318545
%defattr(-,root,root,-)
b318545
%{_javadir}/libcephfs.jar
bcc7f22
%{_javadir}/libcephfs-test.jar
bcc7f22
%endif
b318545
2a379f1
#################################################################################
bcc7f22
%if 0%{with selinux}
bcc7f22
%files selinux
bcc7f22
%defattr(-,root,root,-)
bcc7f22
%attr(0600,root,root) %{_datadir}/selinux/packages/ceph.pp
bcc7f22
%{_datadir}/selinux/devel/include/contrib/ceph.if
bcc7f22
%{_mandir}/man8/ceph_selinux.8*
bcc7f22
bcc7f22
%post selinux
bcc7f22
# Install the policy
bcc7f22
OLD_POLVER=$(%{_sbindir}/semodule -l | grep -P '^ceph[\t ]' | awk '{print $2}')
bcc7f22
%{_sbindir}/semodule -n -i %{_datadir}/selinux/packages/ceph.pp
bcc7f22
NEW_POLVER=$(%{_sbindir}/semodule -l | grep -P '^ceph[\t ]' | awk '{print $2}')
bcc7f22
bcc7f22
# Load the policy if SELinux is enabled
bcc7f22
if %{_sbindir}/selinuxenabled; then
bcc7f22
    %{_sbindir}/load_policy
bcc7f22
else
bcc7f22
    # Do not relabel if selinux is not enabled
bcc7f22
    exit 0
bcc7f22
fi
bcc7f22
bcc7f22
if test "$OLD_POLVER" == "$NEW_POLVER"; then
bcc7f22
   # Do not relabel if policy version did not change
bcc7f22
   exit 0
bcc7f22
fi
bcc7f22
bcc7f22
# Check whether the daemons are running
bcc7f22
%if 0%{?_with_systemd}
bcc7f22
    /usr/bin/systemctl status ceph.target > /dev/null 2>&1
bcc7f22
%else
bcc7f22
    /sbin/service ceph status >/dev/null 2>&1
bcc7f22
%endif
bcc7f22
STATUS=$?
bcc7f22
bcc7f22
# Stop the daemons if they were running
bcc7f22
if test $STATUS -eq 0; then
bcc7f22
%if 0%{?_with_systemd}
bcc7f22
    /usr/bin/systemctl stop ceph.target > /dev/null 2>&1
bcc7f22
%else
bcc7f22
    /sbin/service ceph stop >/dev/null 2>&1
bcc7f22
%endif
bcc7f22
fi
bcc7f22
bcc7f22
# Now, relabel the files
bcc7f22
%relabel_files
bcc7f22
bcc7f22
# Start the daemons iff they were running before
bcc7f22
if test $STATUS -eq 0; then
bcc7f22
%if 0%{?_with_systemd}
bcc7f22
    /usr/bin/systemctl start ceph.target > /dev/null 2>&1 || :
bcc7f22
%else
bcc7f22
    /sbin/service ceph start >/dev/null 2>&1 || :
bcc7f22
%endif
bcc7f22
fi
bcc7f22
bcc7f22
exit 0
bcc7f22
bcc7f22
%postun selinux
bcc7f22
if [ $1 -eq 0 ]; then
bcc7f22
    # Remove the module
bcc7f22
    %{_sbindir}/semodule -n -r ceph
bcc7f22
bcc7f22
    # Reload the policy if SELinux is enabled
bcc7f22
    if %{_sbindir}/selinuxenabled ; then
bcc7f22
        %{_sbindir}/load_policy
bcc7f22
    else
bcc7f22
        # Do not relabel if SELinux is not enabled
bcc7f22
        exit 0
bcc7f22
    fi
bcc7f22
bcc7f22
    # Check whether the daemons are running
bcc7f22
    %if 0%{?_with_systemd}
bcc7f22
        /usr/bin/systemctl status ceph.target > /dev/null 2>&1
bcc7f22
    %else
bcc7f22
        /sbin/service ceph status >/dev/null 2>&1
bcc7f22
    %endif
bcc7f22
    STATUS=$?
bcc7f22
bcc7f22
    # Stop the daemons if they were running
bcc7f22
    if test $STATUS -eq 0; then
bcc7f22
    %if 0%{?_with_systemd}
bcc7f22
        /usr/bin/systemctl stop ceph.target > /dev/null 2>&1
bcc7f22
    %else
bcc7f22
        /sbin/service ceph stop >/dev/null 2>&1
bcc7f22
    %endif
bcc7f22
    fi
bcc7f22
bcc7f22
    # Now, relabel the files
bcc7f22
    %relabel_files
bcc7f22
bcc7f22
    # Start the daemons if they were running before
bcc7f22
    if test $STATUS -eq 0; then
bcc7f22
    %if 0%{?_with_systemd}
bcc7f22
	/usr/bin/systemctl start ceph.target > /dev/null 2>&1 || :
bcc7f22
    %else
bcc7f22
	/sbin/service ceph start >/dev/null 2>&1 || :
bcc7f22
    %endif
bcc7f22
    fi
bcc7f22
fi
bcc7f22
exit 0
bcc7f22
bcc7f22
%endif # with selinux
bcc7f22
bcc7f22
#################################################################################
bcc7f22
%if 0%{with libs_compat}
08b7207
%files libs-compat
2a379f1
# We need an empty %%files list for ceph-libs-compat, to tell rpmbuild to actually
2a379f1
# build this meta package.
5dd73cb
2a379f1
#################################################################################
628a5cf
%files devel-compat
2a379f1
# We need an empty %%files list for ceph-devel-compat, to tell rpmbuild to
2a379f1
# actually build this meta package.
bcc7f22
%endif
628a5cf
2a379f1
#################################################################################
628a5cf
%files -n python-ceph-compat
2a379f1
# We need an empty %%files list for python-ceph-compat, to tell rpmbuild to
2a379f1
# actually build this meta package.
628a5cf
5dd73cb
%changelog
bcc7f22
* Tue Nov 10 2015 Boris Ranto <branto@redhat.com> - 1:9.2.0-1
bcc7f22
- Rebase to latest stable upstream version (9.2.0 - infernalis)
bcc7f22
- Use upstream spec file
bcc7f22
3d553af
* Tue Oct 27 2015 Boris Ranto <branto@redhat.com> - 1:0.94.5-1
3d553af
- Rebase to latest upstream version
3d553af
8d2c0a0
* Tue Oct 20 2015 Boris Ranto <branto@redhat.com> - 1:0.94.4-1
8d2c0a0
- Rebase to latest upstream version
8d2c0a0
- The rtdsc patch got merged upstream and is already present in the release
8d2c0a0
7e0cdd8
* Thu Aug 27 2015 Jonathan Wakely <jwakely@redhat.com> - 1:0.94.3-2
7e0cdd8
- Rebuilt for Boost 1.59
7e0cdd8
ac5a29a
* Thu Aug 27 2015 Boris Ranto <branto@redhat.com> - 1:0.94.3-1
ac5a29a
- Rebase to latest upstream version
ac5a29a
- The boost patch got merged upstream and is already present in the release
ac5a29a
222abd2
* Fri Jul 31 2015 Richard W.M. Jones <rjones@redhat.com> - 1:0.94.2-4
222abd2
- Fix build against boost 1.58 (http://tracker.ceph.com/issues/11576).
222abd2
bb85c64
* Wed Jul 29 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:0.94.2-3
bb85c64
- Rebuilt for https://fedoraproject.org/wiki/Changes/F23Boost159
bb85c64
09905ca
* Wed Jul 22 2015 David Tardon <dtardon@redhat.com> - 1:0.94.2-2
09905ca
- rebuild for Boost 1.58
09905ca
b7119dd
* Thu Jul 16 2015 Boris Ranto <branto@redhat.com> - 1:0.94.2-1
b7119dd
- Rebase to latest upstream version
b7119dd
9b5287b
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:0.94.1-5
9b5287b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
9b5287b
94d715c
* Mon Jun 08 2015 Dan Horák <dan[at]danny.cz> - 1:0.94.1-4
94d715c
- fix build on s390(x) - no gperftools there
94d715c
c767eaf
* Thu May 21 2015 Boris Ranto <branto@redhat.com> - 1:0.94.1-3
c767eaf
- Disable lttng support (rhbz#1223319)
c767eaf
3005097
* Mon May 18 2015 Boris Ranto <branto@redhat.com> - 1:0.94.1-2
3005097
- Fix arm linking issue (rhbz#1222286)
3005097
2a379f1
* Tue Apr 14 2015 Boris Ranto <branto@redhat.com> - 1:0.94.1-1
2a379f1
- Rebase to latest upstream version and sync-up the spec file
bedf031
- Add arm compilation patches
2a379f1
a6871cb
* Wed Apr 01 2015 Ken Dreyer <ktdreyer@ktdreyer.com> - 1:0.87.1-3
a6871cb
- add version numbers to Obsoletes (RHBZ #1193182)
a6871cb
2a0aaf9
* Wed Mar 4 2015 Boris Ranto <branto@redhat.com> - 1:0.87.1-2
2a0aaf9
- Perform a hardened build
2a0aaf9
- Use git-formatted patches
2a0aaf9
- Add patch for pthreads rwlock unlock problem
2a0aaf9
- Do not remove conf files on uninstall
2a0aaf9
- Remove the cleanup function, it is only necessary for f20 and f21
2a0aaf9
84aa853
* Wed Feb 25 2015 Boris Ranto <branto@redhat.com> - 1:0.87.1-1
84aa853
- Rebase to latest upstream
84aa853
- Remove boost patch, it is in upstream tarball
84aa853
- Build with yasm, tarball contains fix for the SELinux issue
84aa853
Petr Machata c130ff2
* Thu Jan 29 2015 Petr Machata <pmachata@redhat.com> - 1:0.87-2
Petr Machata c485e3a
- Rebuild for boost 1.57.0
Petr Machata c130ff2
- Include <boost/optional/optional_io.hpp> instead of
Petr Machata c130ff2
  <boost/optional.hpp>.  Keep the old dumping behavior in
Petr Machata c130ff2
  osd/ECBackend.cc (ceph-0.87-boost157.patch)
Petr Machata c485e3a
3b0b0e0
* Mon Nov 3 2014 Boris Ranto <branto@redhat.com> - 1:0.87-1
3b0b0e0
- Rebase to latest major version (firefly -> giant)
3b0b0e0
290a036
* Thu Oct 16 2014 Boris Ranto 
290a036
- Rebase to latest upstream version
290a036
a4d87e6
* Sat Oct 11 2014 Boris Ranto <branto@redhat.com> - 1:0.80.6-3
a4d87e6
- Fix a typo in librados-devel vs librados2-devel dependency
a4d87e6
628a5cf
* Fri Oct 10 2014 Boris Ranto <branto@redhat.com> - 1:0.80.6-2
628a5cf
- Provide empty file list for python-ceph-compat and ceph-devel-compat
628a5cf
7da3554
* Fri Oct 10 2014 Boris Ranto <branto@redhat.com> - 1:0.80.6-1
7da3554
- Rebase to 0.80.6
7da3554
- Split ceph-devel and python-ceph packages
7da3554
34495d4
* Tue Sep 9 2014 Dan Horák <dan[at]danny.cz> - 1:0.80.5-10
34495d4
- update Requires for s390(x)
34495d4
273aebe
* Wed Sep 3 2014 Boris Ranto <branto@redhat.com> - 1:0.80.5-9
273aebe
- Symlink librd.so.1 to /usr/lib64/qemu only on rhel6+ x86_64 (1136811)
273aebe
ac3de9e
* Thu Aug 21 2014 Boris Ranto <branto@redhat.com> - 1:0.80.5-8
e46d0f1
- Revert the previous change
e46d0f1
- Fix bz 1118504, second attempt (yasm appears to be the package that caused this
ac3de9e
- Fix bogus dates
e46d0f1
ac3de9e
* Wed Aug 20 2014 Boris Ranto <branto@redhat.com> - 1:0.80.5-7
e46d0f1
- Several more merges from file to try to fix the selinux issue (1118504)
e46d0f1
25b47f3
* Sun Aug 17 2014 Kalev Lember <kalevlember@gmail.com> - 1:0.80.5-6
25b47f3
- Obsolete ceph-libcephfs
25b47f3
e44806f
* Sat Aug 16 2014 Boris Ranto <branto@redhat.com> - 1:0.80.5-5
e44806f
- Do not require xfsprogs/xfsprogs-devel for el6
e44806f
- Require gperftools-devel for non-ppc*/s390* architectures only
e44806f
- Do not require junit -- no need to build libcephfs-test.jar
e44806f
- Build without libxfs for el6
e44806f
- Build without tcmalloc for ppc*/s390* architectures
e44806f
- Location of mkcephfs must depend on a rhel release
e44806f
- Use epoch in the Requires fields [1130700]
e44806f
830e99f
* Sat Aug 16 2014 Boris Ranto <branto@redhat.com> - 1:0.80.5-4
830e99f
- Use the proper version name in Obsoletes
830e99f
c81d313
* Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:0.80.5-3
c81d313
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
c81d313
a236dbb
* Fri Aug 15 2014 Boris Ranto <branto@redhat.com> - 1:0.80.5-2
5311ad2
- Add the arm pthread hack
5311ad2
08b7207
* Fri Aug 15 2014 Boris Ranto <branto@redhat.com> - 1:0.80.5-1
08b7207
- Bump the Epoch, we need to keep the latest stable, not development, ceph version in fedora
08b7207
- Use the upstream spec file with the ceph-libs split
08b7207
- Add libs-compat subpackage [1116546]
08b7207
- use fedora in rhel 7 checks
08b7207
- obsolete libcephfs [1116614]
08b7207
- depend on redhat-lsb-core for the initscript [1108696]
08b7207
d184580
* Wed Aug 13 2014 Kalev Lember <kalevlember@gmail.com> - 0.81.0-6
d184580
- Add obsoletes to keep the upgrade path working (#1118510)
d184580
9a1331d
* Mon Jul 7 2014 Kaleb S. KEITHLEY <kkeithle[at]redhat.com> - 0.81.0-5
9a1331d
- revert to old spec until after f21 branch
9a1331d
ed8d9af
* Fri Jul 4 2014 Kaleb S. KEITHLEY <kkeithle[at]redhat.com>
ed8d9af
- temporary exclude f21/armv7hl. N.B. it builds fine on f20/armv7hl.
ed8d9af
4be65c2
* Fri Jul 4 2014 Kaleb S. KEITHLEY <kkeithle[at]redhat.com> - 0.81.0-4
4be65c2
- upstream ceph.spec file
4be65c2
10fcd5e
* Tue Jul 1 2014 Kaleb S. KEITHLEY <kkeithle[at]redhat.com> - 0.81.0-3
10fcd5e
- upstream ceph.spec file
10fcd5e
e605c9c
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.81.0-2
e605c9c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
e605c9c
cca983b
* Thu Jun 5 2014 Kaleb S. KEITHLEY <kkeithle[at]redhat.com>
560f971
- el6 ppc64 likewise for tcmalloc, merge from origin/el6
560f971
560f971
* Thu Jun 5 2014 Kaleb S. KEITHLEY <kkeithle[at]redhat.com>
cca983b
- el6 ppc64 does not have gperftools, merge from origin/el6
cca983b
6c2f2c4
* Thu Jun 5 2014 Kaleb S. KEITHLEY <kkeithle[at]redhat.com> - 0.81.0-1
6c2f2c4
- ceph-0.81.0
6c2f2c4
9c82455
* Wed Jun  4 2014 Peter Robinson <pbrobinson@fedoraproject.org> 0.80.1-5
9c82455
- gperftools now available on aarch64/ppc64
9c82455
Petr Machata e579d55
* Fri May 23 2014 Petr Machata <pmachata@redhat.com> - 0.80.1-4
Petr Machata e579d55
- Rebuild for boost 1.55.0
Petr Machata e579d55
aac817e
* Fri May 23 2014 David Tardon <dtardon@redhat.com> - 0.80.1-3
aac817e
- rebuild for boost 1.55.0
aac817e
c28233e
* Wed May 14 2014 Kaleb S. KEITHLEY <kkeithle[at]redhat.com> - 0.80.1-2
c28233e
- build epel-6
c28233e
- exclude %%{_libdir}/ceph/erasure-code in base package
c28233e
f082c04
* Tue May 13 2014 Kaleb S. KEITHLEY <kkeithle[at]redhat.com> - 0.80.1-1
f082c04
- Update to latest stable upstream release, BZ 1095201
f082c04
- PIE, _hardened_build, BZ 955174
f082c04
4c912ae
* Thu Feb 06 2014 Ken Dreyer <ken.dreyer@inktank.com> - 0.72.2-2
4c912ae
- Move plugins from -devel into -libs package (#891993). Thanks Michael
4c912ae
  Schwendt.
4c912ae
c523b37
* Mon Jan 06 2014 Ken Dreyer <ken.dreyer@inktank.com> 0.72.2-1
c523b37
- Update to latest stable upstream release
c523b37
- Use HTTPS for URLs
c523b37
- Submit Automake 1.12 patch upstream
c523b37
- Move unversioned shared libs from ceph-libs into ceph-devel
c523b37
a69f025
* Wed Dec 18 2013 Marcin Juszkiewicz <mjuszkiewicz@redhat.com> 0.67.3-4
a69f025
- build without tcmalloc on aarch64 (no gperftools)
a69f025
975579a
* Sat Nov 30 2013 Peter Robinson <pbrobinson@fedoraproject.org> 0.67.3-3
975579a
- gperftools not currently available on aarch64
975579a
52a2b9b
* Mon Oct 07 2013 Dan Horák <dan[at]danny.cz> - 0.67.3-2
52a2b9b
- fix build on non-x86_64 64-bit arches
52a2b9b
Josef Bacik 7d8598d
* Wed Sep 11 2013 Josef Bacik <josef@toxicpanda.com> - 0.67.3-1
Josef Bacik 7d8598d
- update to 0.67.3
Josef Bacik 7d8598d
f6f6a62
* Wed Sep 11 2013 Michael Schwendt <mschwendt@fedoraproject.org> - 0.61.7-3
f6f6a62
- let base package include all its documentation files via %%doc magic,
f6f6a62
  so for Fedora 20 Unversioned Docdirs no files are included accidentally
f6f6a62
- include the sample config files again (instead of just an empty docdir
f6f6a62
  that has been added for #846735)
f6f6a62
- don't include librbd.so.1 also in -devel package (#1003202)
f6f6a62
- move one misplaced rados plugin from -devel into -libs package (#891993)
f6f6a62
- include missing directories in -devel and -libs packages
f6f6a62
- move librados-config into the -devel pkg where its manual page is, too
f6f6a62
- add %%_isa to subpackage dependencies
f6f6a62
- don't use %%defattr anymore
f6f6a62
- add V=1 to make invocation for verbose build output
f6f6a62
fc25307
* Wed Jul 31 2013 Peter Robinson <pbrobinson@fedoraproject.org> 0.61.7-2
fc25307
- re-enable tmalloc on arm now gperftools is fixed
fc25307
Josef Bacik 7d1f840
* Mon Jul 29 2013 Josef Bacik <josef@toxicpanda.com> - 0.61.7-1
Josef Bacik 7d1f840
- Update to 0.61.7
Josef Bacik 7d1f840
Petr Machata 6bb58e5
* Sat Jul 27 2013 pmachata@redhat.com - 0.56.4-2
Petr Machata 6bb58e5
- Rebuild for boost 1.54.0
Petr Machata 6bb58e5
Josef Bacik 514a2a1
* Fri Mar 29 2013 Josef Bacik <josef@toxicpanda.com> - 0.56.4-1
Josef Bacik 514a2a1
- Update to 0.56.4
Josef Bacik 514a2a1
- Add upstream d02340d90c9d30d44c962bea7171db3fe3bfba8e to fix logrotate
Josef Bacik 514a2a1
Josef Bacik 3991b7a
* Wed Feb 20 2013 Josef Bacik <josef@toxicpanda.com> - 0.56.3-1
Josef Bacik 3991b7a
- Update to 0.56.3
Josef Bacik 3991b7a
ffa978b
* Mon Feb 11 2013 Richard W.M. Jones <rjones@redhat.com> - 0.53-2
ffa978b
- Rebuilt to try to fix boost dependency problem in Rawhide.
ffa978b
Josef Bacik f5c462a
* Thu Nov  1 2012 Josef Bacik <josef@toxicpanda.com> - 0.53-1
Josef Bacik f5c462a
- Update to 0.53
Josef Bacik f5c462a
Jonathan Dieter 9855df9
* Mon Sep 24 2012 Jonathan Dieter <jdieter@lesbg.com> - 0.51-3
Jonathan Dieter 9855df9
- Fix automake 1.12 error
Jonathan Dieter 0521dc9
- Rebuild after buildroot was messed up
Jonathan Dieter 9855df9
Jonathan Dieter ff794c7
* Tue Sep 18 2012 Jonathan Dieter <jdieter@lesbg.com> - 0.51-2
Jonathan Dieter ff794c7
- Use system leveldb
Jonathan Dieter ff794c7
David Nalley 6449f95
* Fri Sep 07 2012 David Nalley <david@gnsa.us> - 0.51-1
David Nalley 6449f95
- Updating to 0.51
David Nalley 6449f95
- Updated url and source url. 
David Nalley 6449f95
19726c1
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.46-2
19726c1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
19726c1
Josef Bacik 8f23225
* Wed May  9 2012 Josef Bacik <josef@toxicpanda.com> - 0.46-1
Josef Bacik 8f23225
- updated to upstream 0.46
Josef Bacik 8f23225
- broke out libcephfs (rhbz# 812975)
Josef Bacik 8f23225
ba92463
* Mon Apr 23 2012 Dan Horák <dan[at]danny.cz> - 0.45-2
ba92463
- fix detection of C++11 atomic header
ba92463
Josef Bacik 50e073a
* Thu Apr 12 2012 Josef Bacik <josef@toxicpanda.com> - 0.45-1
Josef Bacik 50e073a
- updating to upstream 0.45
Josef Bacik 50e073a
563583e
* Wed Apr  4 2012 Niels de Vos <devos@fedoraproject.org> - 0.44-5
563583e
- Add LDFLAGS=-lpthread on any ARM architecture
563583e
- Add CFLAGS=-DAO_USE_PTHREAD_DEFS on ARMv5tel
563583e
6eb8fdf
* Mon Mar 26 2012 Dan Horák <dan[at]danny.cz> 0.44-4
6eb8fdf
- gperftools not available also on ppc
6eb8fdf
Jonathan Dieter 0f5f195
* Mon Mar 26 2012 Jonathan Dieter <jdieter@lesbg.com> - 0.44-3
Jonathan Dieter 0f5f195
- Remove unneeded patch
Jonathan Dieter 0f5f195
Jonathan Dieter 0f5f195
* Sun Mar 25 2012 Jonathan Dieter <jdieter@lesbg.com> - 0.44-2
Jonathan Dieter 0f5f195
- Update to 0.44
Jonathan Dieter 0f5f195
- Fix build problems
Jonathan Dieter 0f5f195
Jonathan Dieter f32a9e4
* Mon Mar  5 2012 Jonathan Dieter <jdieter@lesbg.com> - 0.43-1
Jonathan Dieter f32a9e4
- Update to 0.43
Jonathan Dieter f32a9e4
- Remove upstreamed compile fixes patch
Jonathan Dieter f32a9e4
- Remove obsoleted dump_pop patch
Jonathan Dieter f32a9e4
3cf1ae6
* Tue Feb 28 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.41-2
3cf1ae6
- Rebuilt for c++ ABI breakage
3cf1ae6
dc8a12b
* Thu Feb 16 2012 Tom Callaway <spot@fedoraproject.org> 0.41-1
dc8a12b
- update to 0.41
dc8a12b
- fix issues preventing build
dc8a12b
- rebuild against gperftools
dc8a12b
David Nalley c0a0a52
* Sat Dec 03 2011 David Nalley <david@gnsa.us> 0.38-1
David Nalley c0a0a52
- updating to upstream 0.39
David Nalley 36be982
David Nalley d10f18b
* Sat Nov 05 2011 David Nalley <david@gnsa.us> 0.37-1
David Nalley d10f18b
- create /etc/ceph - bug 745462
David Nalley d10f18b
- upgrading to 0.37, fixing 745460, 691033
David Nalley d10f18b
- fixing various logrotate bugs 748930, 747101
David Nalley d10f18b
b89a3dc
* Fri Aug 19 2011 Dan Horák <dan[at]danny.cz> 0.31-4
b89a3dc
- google-perftools not available also on s390(x)
b89a3dc
fd6c2fa
* Mon Jul 25 2011 Karsten Hopp <karsten@redhat.com> 0.31-3
b89a3dc
- build without tcmalloc on ppc64, BR google-perftools is not available there
fd6c2fa
Josef Bacik 454e443
* Tue Jul 12 2011 Josef Bacik <josef@toxicpanda.com> 0.31-2
Josef Bacik 454e443
- Remove curl/types.h include since we don't use it anymore
Josef Bacik 454e443
Josef Bacik 9b4a6bb
* Tue Jul 12 2011 Josef Bacik <josef@toxicpanda.com> 0.31-1
Josef Bacik 9b4a6bb
- Update to 0.31
Josef Bacik 9b4a6bb
Josef Bacik 81c2739
* Tue Apr  5 2011 Josef Bacik <josef@toxicpanda.com> 0.26-2
Josef Bacik 81c2739
- Add the compile fix patch
Josef Bacik 81c2739
Josef Bacik 555889f
* Tue Apr  5 2011 Josef Bacik <josef@toxicpanda.com> 0.26
Josef Bacik 555889f
- Update to 0.26
Josef Bacik 555889f
Josef Bacik ca6b4d7
* Tue Mar 22 2011 Josef Bacik <josef@toxicpanda.com> 0.25.1-1
Josef Bacik ca6b4d7
- Update to 0.25.1
Josef Bacik ca6b4d7
10fd17e
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.21.3-2
10fd17e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
10fd17e
Steven Pritchard 3dcda9e
* Wed Sep 29 2010 Steven Pritchard <steve@kspei.com> 0.21.3-1
Steven Pritchard 3dcda9e
- Update to 0.21.3.
Steven Pritchard 3dcda9e
Steven Pritchard bfda65c
* Mon Aug 30 2010 Steven Pritchard <steve@kspei.com> 0.21.2-1
Steven Pritchard bfda65c
- Update to 0.21.2.
Steven Pritchard bfda65c
Steven Pritchard cf2b700
* Thu Aug 26 2010 Steven Pritchard <steve@kspei.com> 0.21.1-1
Steven Pritchard cf2b700
- Update to 0.21.1.
Steven Pritchard cf2b700
- Sample configs moved to /usr/share/doc/ceph/.
Steven Pritchard cf2b700
- Added cclass, rbd, and cclsinfo.
Steven Pritchard cf2b700
- Dropped mkmonfs and rbdtool.
Steven Pritchard cf2b700
- mkcephfs moved to /sbin.
Steven Pritchard cf2b700
- Add libcls_rbd.so.
Steven Pritchard cf2b700
a48a736
* Tue Jul  6 2010 Josef Bacik <josef@toxicpanda.com> 0.20.2-1
a48a736
- update to 0.20.2
a48a736
5dd73cb
* Wed May  5 2010 Josef Bacik <josef@toxicpanda.com> 0.20-1
5dd73cb
- update to 0.20
5dd73cb
- disable hadoop building
5dd73cb
- remove all the test binaries properly
5dd73cb
5dd73cb
* Fri Apr 30 2010 Sage Weil <sage@newdream.net> 0.19.1-5
5dd73cb
- Remove java deps (no need to build hadoop by default)
5dd73cb
- Include all required librados helpers
5dd73cb
- Include fetch_config sample
5dd73cb
- Include rbdtool
5dd73cb
- Remove misc debugging, test binaries
5dd73cb
Josef Bacik 7d1f840
* Fri Apr 30 2010 Josef Bacik <josef@toxicpanda.com> 0.19.1-4
5dd73cb
- Add java-devel and java tricks to get hadoop to build
5dd73cb
5dd73cb
* Mon Apr 26 2010 Josef Bacik <josef@toxicpanda.com> 0.19.1-3
5dd73cb
- Move the rados and cauthtool man pages into the base package
5dd73cb
5dd73cb
* Sun Apr 25 2010 Jonathan Dieter <jdieter@lesbg.com> 0.19.1-2
5dd73cb
- Add missing libhadoopcephfs.so* to file list
5dd73cb
- Add COPYING to all subpackages
5dd73cb
- Fix ownership of /usr/lib[64]/ceph
5dd73cb
- Enhance description of fuse client
5dd73cb
5dd73cb
* Tue Apr 20 2010 Josef Bacik <josef@toxicpanda.com> 0.19.1-1
5dd73cb
- Update to 0.19.1
5dd73cb
5dd73cb
* Mon Feb  8 2010 Josef Bacik <josef@toxicpanda.com> 0.18-1
5dd73cb
- Initial spec file creation, based on the template provided in the ceph src