2010-07-09 09:13:04 +00:00
|
|
|
%define with_radosgw %{?_with_radosgw: 1} %{!?_with_radosgw: 0}
|
2010-12-09 19:46:28 +00:00
|
|
|
%define with_gtk2 %{?_with_gtk2: 1} %{!?_with_gtk2: 0}
|
2010-07-09 09:13:04 +00:00
|
|
|
|
2011-03-21 15:43:47 +00:00
|
|
|
%if ! (0%{?fedora} > 12 || 0%{?rhel} > 5)
|
|
|
|
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
|
|
|
|
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
|
|
|
|
%endif
|
|
|
|
|
2008-07-11 22:55:19 +00:00
|
|
|
Name: ceph
|
2010-04-30 20:39:49 +00:00
|
|
|
Version: @VERSION@
|
|
|
|
Release: 4%{?dist}
|
2010-04-30 20:51:44 +00:00
|
|
|
Summary: User space components of the Ceph file system
|
2010-04-30 20:39:49 +00:00
|
|
|
License: LGPLv2
|
|
|
|
Group: System Environment/Base
|
2008-07-11 22:55:19 +00:00
|
|
|
URL: http://ceph.newdream.net/
|
2010-04-30 20:39:49 +00:00
|
|
|
|
|
|
|
Source: http://ceph.newdream.net/download/%{name}-%{version}.tar.gz
|
|
|
|
BuildRequires: fuse-devel, libtool, libtool-ltdl-devel, boost-devel,
|
2010-05-27 21:24:37 +00:00
|
|
|
BuildRequires: libedit-devel, fuse-devel, git, perl, gdbm,
|
2011-03-19 00:04:17 +00:00
|
|
|
BuildRequires: nss-devel, libatomic_ops-devel
|
2011-03-29 22:37:10 +00:00
|
|
|
BuildRequires: pkgconfig, python, keyutils-libs-devel
|
2010-04-30 20:39:49 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
2011-03-19 00:04:17 +00:00
|
|
|
Requires(post): chkconfig, binutils, libedit
|
2010-04-30 20:39:49 +00:00
|
|
|
Requires(preun): chkconfig
|
|
|
|
Requires(preun): initscripts
|
2008-07-11 00:24:26 +00:00
|
|
|
|
|
|
|
%description
|
2010-04-30 20:51:44 +00:00
|
|
|
Ceph is a distributed network file system designed to provide excellent
|
2008-07-11 00:24:26 +00:00
|
|
|
performance, reliability, and scalability.
|
|
|
|
|
2010-04-30 20:39:49 +00:00
|
|
|
%package fuse
|
2010-04-30 20:51:44 +00:00
|
|
|
Summary: Ceph fuse-based client
|
2010-04-30 20:39:49 +00:00
|
|
|
Group: System Environment/Base
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
BuildRequires: fuse-devel
|
|
|
|
%description fuse
|
2010-04-30 20:51:44 +00:00
|
|
|
FUSE based client for Ceph distributed network file system
|
2010-04-30 20:39:49 +00:00
|
|
|
|
|
|
|
%package devel
|
2010-04-30 20:51:44 +00:00
|
|
|
Summary: Ceph headers
|
2010-04-30 20:39:49 +00:00
|
|
|
Group: Development/Libraries
|
|
|
|
License: LGPLv2
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
%description devel
|
2010-04-30 20:51:44 +00:00
|
|
|
This package contains the headers needed to develop programs that use Ceph.
|
2008-07-11 00:24:26 +00:00
|
|
|
|
2010-07-09 09:13:04 +00:00
|
|
|
%if %{with_radosgw}
|
|
|
|
%package radosgw
|
|
|
|
Summary: rados REST gateway
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: mod_fcgid
|
|
|
|
BuildRequires: fcgi-devel
|
|
|
|
BuildRequires: expat-devel
|
|
|
|
|
|
|
|
%description radosgw
|
|
|
|
radosgw is an S3 HTTP REST gateway for the RADOS object store. It is
|
|
|
|
implemented as a FastCGI module using libfcgi, and can be used in
|
|
|
|
conjunction with any FastCGI capable web server.
|
|
|
|
%endif
|
|
|
|
|
2011-05-17 21:25:47 +00:00
|
|
|
%package obsync
|
|
|
|
Summary: synchronize data between cloud object storage providers or a local directory
|
|
|
|
Group: Productivity/Networking/Other
|
|
|
|
License: LGPLv2
|
|
|
|
Requires: python, python-boto
|
2011-05-19 17:13:20 +00:00
|
|
|
%description obsync
|
2011-05-17 21:25:47 +00:00
|
|
|
obsync is a tool to synchronize objects between cloud object
|
|
|
|
storage providers, such as Amazon S3 (or compatible services), a
|
|
|
|
Ceph RADOS cluster, or a local directory.
|
|
|
|
|
2010-12-09 19:46:28 +00:00
|
|
|
%if %{with_gtk2}
|
|
|
|
%package gcephtool
|
|
|
|
Summary: Ceph graphical monitoring tool
|
|
|
|
Group: System Environment/Base
|
|
|
|
License: LGPLv2
|
|
|
|
Requires: gtk2 gtkmm24
|
|
|
|
BuildRequires: gtk2-devel gtkmm24-devel
|
|
|
|
|
|
|
|
%description gcephtool
|
|
|
|
gcephtool is a graphical monitor for the clusters running the Ceph distributed
|
|
|
|
file system.
|
|
|
|
%endif
|
|
|
|
|
2008-07-11 00:24:26 +00:00
|
|
|
%prep
|
2010-04-30 20:39:49 +00:00
|
|
|
%setup -q
|
2008-07-11 00:24:26 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
./autogen.sh
|
2010-12-09 19:46:28 +00:00
|
|
|
MY_CONF_OPT=""
|
|
|
|
|
2010-07-09 09:13:04 +00:00
|
|
|
%if %{with_radosgw}
|
2010-12-09 19:46:28 +00:00
|
|
|
MY_CONF_OPT="$MY_CONF_OPT --with-radosgw"
|
2010-07-09 09:13:04 +00:00
|
|
|
%else
|
2010-12-09 19:46:28 +00:00
|
|
|
MY_CONF_OPT="$MY_CONF_OPT --without-radosgw"
|
2010-07-09 09:13:04 +00:00
|
|
|
%endif
|
2010-12-09 19:46:28 +00:00
|
|
|
|
|
|
|
%if %{with_gtk2}
|
|
|
|
MY_CONF_OPT="$MY_CONF_OPT --with-gtk2"
|
|
|
|
%else
|
|
|
|
MY_CONF_OPT="$MY_CONF_OPT --without-gtk2"
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%{configure} --prefix=/usr --sbindir=/sbin \
|
|
|
|
--localstatedir=/var --sysconfdir=/etc \
|
|
|
|
--without-hadoop $MY_CONF_OPT
|
|
|
|
|
2010-07-05 07:10:01 +00:00
|
|
|
make -j$(getconf _NPROCESSORS_ONLN) CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS"
|
2008-07-11 00:24:26 +00:00
|
|
|
|
|
|
|
%install
|
2010-04-30 20:39:49 +00:00
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
|
|
|
|
find $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';'
|
2010-07-02 14:55:34 +00:00
|
|
|
install -D src/init-ceph $RPM_BUILD_ROOT%{_initrddir}/ceph
|
2010-08-04 16:56:05 +00:00
|
|
|
chmod 0644 $RPM_BUILD_ROOT%{_docdir}/ceph/sample.ceph.conf
|
2010-08-02 16:15:34 +00:00
|
|
|
install -m 0644 -D src/logrotate.conf $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/ceph
|
2010-07-09 09:12:39 +00:00
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/lib/ceph/tmp/
|
2010-07-09 14:01:47 +00:00
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/log/ceph/
|
2010-07-29 15:52:05 +00:00
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/log/ceph/stat
|
2008-07-11 00:24:26 +00:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
2010-04-30 20:39:49 +00:00
|
|
|
%post
|
|
|
|
/sbin/ldconfig
|
|
|
|
/sbin/chkconfig --add ceph
|
|
|
|
|
|
|
|
%preun
|
|
|
|
if [ $1 = 0 ] ; then
|
|
|
|
/sbin/service ceph stop >/dev/null 2>&1
|
|
|
|
/sbin/chkconfig --del ceph
|
|
|
|
fi
|
|
|
|
|
|
|
|
%postun
|
|
|
|
/sbin/ldconfig
|
|
|
|
if [ "$1" -ge "1" ] ; then
|
|
|
|
/sbin/service ceph condrestart >/dev/null 2>&1 || :
|
|
|
|
fi
|
|
|
|
|
2008-07-11 00:24:26 +00:00
|
|
|
%files
|
2010-04-30 20:39:49 +00:00
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc README COPYING
|
2008-12-15 20:33:10 +00:00
|
|
|
%{_bindir}/ceph
|
2010-10-25 22:03:32 +00:00
|
|
|
%{_bindir}/cephfs
|
2009-11-26 05:45:11 +00:00
|
|
|
%{_bindir}/cconf
|
2010-07-05 07:10:01 +00:00
|
|
|
%{_bindir}/cclsinfo
|
2008-07-11 00:24:26 +00:00
|
|
|
%{_bindir}/crushtool
|
|
|
|
%{_bindir}/monmaptool
|
|
|
|
%{_bindir}/osdmaptool
|
2010-04-30 20:39:49 +00:00
|
|
|
%{_bindir}/cauthtool
|
2008-07-11 00:24:26 +00:00
|
|
|
%{_bindir}/csyn
|
2008-10-08 16:28:32 +00:00
|
|
|
%{_bindir}/crun
|
2009-11-26 05:45:11 +00:00
|
|
|
%{_bindir}/cmon
|
2008-07-11 00:24:26 +00:00
|
|
|
%{_bindir}/cmds
|
|
|
|
%{_bindir}/cosd
|
2011-03-19 00:04:17 +00:00
|
|
|
%{_bindir}/crbdnamer
|
|
|
|
%{_bindir}/librados-config
|
2010-04-30 20:39:49 +00:00
|
|
|
%{_bindir}/rados
|
2010-07-29 03:39:52 +00:00
|
|
|
%{_bindir}/rbd
|
2010-10-07 16:25:26 +00:00
|
|
|
%{_bindir}/cdebugpack
|
2010-07-02 14:55:34 +00:00
|
|
|
%{_initrddir}/ceph
|
2010-04-30 20:39:49 +00:00
|
|
|
%{_libdir}/libceph.so.*
|
|
|
|
%{_libdir}/librados.so.*
|
2011-02-11 21:46:04 +00:00
|
|
|
%{_libdir}/librbd.so.*
|
2010-07-09 09:11:49 +00:00
|
|
|
%{_libdir}/rados-classes/libcls_rbd.so.*
|
2010-07-30 19:06:10 +00:00
|
|
|
/sbin/mkcephfs
|
2010-04-30 20:39:49 +00:00
|
|
|
/sbin/mount.ceph
|
|
|
|
%{_libdir}/ceph
|
2010-08-04 16:56:05 +00:00
|
|
|
%{_docdir}/ceph/sample.ceph.conf
|
|
|
|
%{_docdir}/ceph/sample.fetch_config
|
2010-07-09 09:12:16 +00:00
|
|
|
%config(noreplace) %{_sysconfdir}/logrotate.d/ceph
|
2010-04-30 20:39:49 +00:00
|
|
|
%{_mandir}/man8/cmon.8*
|
|
|
|
%{_mandir}/man8/cmds.8*
|
|
|
|
%{_mandir}/man8/cosd.8*
|
|
|
|
%{_mandir}/man8/mkcephfs.8*
|
|
|
|
%{_mandir}/man8/crun.8*
|
|
|
|
%{_mandir}/man8/csyn.8*
|
|
|
|
%{_mandir}/man8/crushtool.8*
|
|
|
|
%{_mandir}/man8/osdmaptool.8*
|
|
|
|
%{_mandir}/man8/monmaptool.8*
|
|
|
|
%{_mandir}/man8/cconf.8*
|
|
|
|
%{_mandir}/man8/ceph.8*
|
2010-12-02 22:14:50 +00:00
|
|
|
%{_mandir}/man8/cephfs.8*
|
2010-04-30 20:39:49 +00:00
|
|
|
%{_mandir}/man8/mount.ceph.8*
|
|
|
|
%{_mandir}/man8/radosgw.8*
|
|
|
|
%{_mandir}/man8/radosgw_admin.8*
|
|
|
|
%{_mandir}/man8/rados.8*
|
2010-07-29 03:39:52 +00:00
|
|
|
%{_mandir}/man8/rbd.8*
|
2010-04-30 20:39:49 +00:00
|
|
|
%{_mandir}/man8/cauthtool.8*
|
2010-10-07 16:38:37 +00:00
|
|
|
%{_mandir}/man8/cdebugpack.8*
|
2010-07-05 07:10:01 +00:00
|
|
|
%{_mandir}/man8/cclsinfo.8.gz
|
2011-03-21 15:43:47 +00:00
|
|
|
%{python_sitelib}/rados.py
|
|
|
|
%{python_sitelib}/rados.pyc
|
|
|
|
%{python_sitelib}/rados.pyo
|
2010-07-09 09:12:39 +00:00
|
|
|
%dir %{_localstatedir}/lib/ceph/
|
|
|
|
%dir %{_localstatedir}/lib/ceph/tmp/
|
2010-07-09 14:01:47 +00:00
|
|
|
%dir %{_localstatedir}/log/ceph/
|
2009-11-26 05:45:11 +00:00
|
|
|
|
|
|
|
%files fuse
|
2010-04-30 20:39:49 +00:00
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc COPYING
|
2008-07-11 00:24:26 +00:00
|
|
|
%{_bindir}/cfuse
|
2010-04-30 20:39:49 +00:00
|
|
|
%{_mandir}/man8/cfuse.8*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc COPYING
|
|
|
|
%{_includedir}/ceph/libceph.h
|
|
|
|
%{_includedir}/crush/crush.h
|
|
|
|
%{_includedir}/crush/hash.h
|
|
|
|
%{_includedir}/crush/mapper.h
|
|
|
|
%{_includedir}/crush/types.h
|
|
|
|
%{_includedir}/rados/librados.h
|
2010-04-30 20:51:44 +00:00
|
|
|
%{_includedir}/rados/librados.hpp
|
|
|
|
%{_includedir}/rados/buffer.h
|
|
|
|
%{_includedir}/rados/page.h
|
|
|
|
%{_includedir}/rados/crc32c.h
|
2011-02-11 21:46:04 +00:00
|
|
|
%{_includedir}/rbd/librbd.h
|
|
|
|
%{_includedir}/rbd/librbd.hpp
|
2010-04-30 20:39:49 +00:00
|
|
|
%{_libdir}/libceph.so
|
|
|
|
%{_libdir}/librados.so
|
2011-02-11 21:46:04 +00:00
|
|
|
%{_libdir}/librbd.so
|
2010-07-09 09:11:49 +00:00
|
|
|
%{_libdir}/rados-classes/libcls_rbd.so
|
2010-04-30 20:39:49 +00:00
|
|
|
|
2010-07-09 09:13:04 +00:00
|
|
|
%if %{with_radosgw}
|
|
|
|
%files radosgw
|
2010-12-09 18:26:55 +00:00
|
|
|
%defattr(-,root,root,-)
|
2010-07-09 09:13:04 +00:00
|
|
|
%{_bindir}/radosgw
|
|
|
|
%{_bindir}/radosgw_admin
|
|
|
|
%endif
|
|
|
|
|
2010-12-09 19:46:28 +00:00
|
|
|
%if %{with_gtk2}
|
|
|
|
%files gcephtool
|
|
|
|
%defattr(-,root,root,-)
|
2010-12-11 04:34:29 +00:00
|
|
|
%{_bindir}/gceph
|
2010-12-09 19:46:28 +00:00
|
|
|
%{_datadir}/ceph_tool/gui_resources/*
|
|
|
|
%endif
|
|
|
|
|
2010-04-30 20:39:49 +00:00
|
|
|
%changelog
|
2010-12-09 22:38:08 +00:00
|
|
|
* Thu Dec 9 2010 Colin McCabe <colinm@hq.newdream.net> 0.19.1-6
|
|
|
|
- Remove radosacl, since it's a debug binary
|
|
|
|
- Fix GUI dependencies
|
|
|
|
- Miscellaneous cleanups
|
|
|
|
|
2010-04-30 20:51:44 +00:00
|
|
|
* Fri Apr 30 2010 Sage Weil <sage@newdream.net> 0.19.1-5
|
|
|
|
- Remove java deps (no need to build hadoop by default)
|
|
|
|
- Include all required librados helpers
|
|
|
|
- Include fetch_config sample
|
|
|
|
- Include rbdtool
|
|
|
|
- Remove misc debugging, test binaries
|
|
|
|
|
2010-04-30 20:39:49 +00:00
|
|
|
* Thu Apr 30 2010 Josef Bacik <josef@toxicpanda.com> 0.19.1-4
|
|
|
|
- Add java-devel and java tricks to get hadoop to build
|
|
|
|
|
|
|
|
* Mon Apr 26 2010 Josef Bacik <josef@toxicpanda.com> 0.19.1-3
|
|
|
|
- Move the rados and cauthtool man pages into the base package
|
|
|
|
|
|
|
|
* Sun Apr 25 2010 Jonathan Dieter <jdieter@lesbg.com> 0.19.1-2
|
|
|
|
- Add missing libhadoopcephfs.so* to file list
|
|
|
|
- Add COPYING to all subpackages
|
|
|
|
- Fix ownership of /usr/lib[64]/ceph
|
|
|
|
- Enhance description of fuse client
|
|
|
|
|
|
|
|
* Tue Apr 20 2010 Josef Bacik <josef@toxicpanda.com> 0.19.1-1
|
|
|
|
- Update to 0.19.1
|
|
|
|
|
|
|
|
* Mon Feb 8 2010 Josef Bacik <josef@toxicpanda.com> 0.18-1
|
|
|
|
- Initial spec file creation, based on the template provided in the ceph src
|