ceph/ceph.spec

316 lines
9.2 KiB
RPMSpec
Raw Normal View History

2010-05-07 17:57:33 +00:00
Name: ceph
Version: 0.39
Release: 1%{?dist}
2010-05-07 17:57:33 +00:00
Summary: User space components of the Ceph file system
License: LGPLv2
Group: System Environment/Base
URL: http://ceph.newdream.net/
Source: http://ceph.newdream.net/download/%{name}-%{version}.tar.gz
Patch0: ceph-init-fix.patch
Patch1: ceph.logrotate.patch
2010-05-07 17:57:33 +00:00
BuildRequires: fuse-devel, libtool, libtool-ltdl-devel, boost-devel,
2011-03-23 12:37:37 +00:00
BuildRequires: libedit-devel, fuse-devel, git, perl, gdbm,
# google-perftools is not available on these:
%ifnarch ppc64 s390 s390x
BuildRequires: google-perftools-devel
%endif
BuildRequires: cryptopp-devel, libatomic_ops-devel, gcc-c++
2011-07-12 19:20:47 +00:00
BuildRequires: pkgconfig, libcurl-devel, keyutils-libs-devel
BuildRequires: gtkmm24-devel, gtk2-devel, libuuid, libuuid-devel
2010-05-07 17:57:33 +00:00
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
2011-07-12 19:20:47 +00:00
Requires(post): chkconfig, binutils, libedit
2010-05-07 17:57:33 +00:00
Requires(preun): chkconfig
Requires(preun): initscripts
%description
Ceph is a distributed network file system designed to provide excellent
performance, reliability, and scalability.
%package fuse
Summary: Ceph fuse-based client
Group: System Environment/Base
Requires: %{name} = %{version}-%{release}
BuildRequires: fuse-devel
%description fuse
FUSE based client for Ceph distributed network file system
%package devel
Summary: Ceph headers
Group: Development/Libraries
License: LGPLv2
Requires: %{name} = %{version}-%{release}
%description devel
This package contains the headers needed to develop programs that use Ceph.
2011-03-23 12:37:37 +00:00
%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.
2011-07-12 19:20: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
%description obsync
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.
2011-03-23 12:37:37 +00:00
%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.
2010-05-07 17:57:33 +00:00
%prep
%setup -q
%patch0 -p1 -b .init
%patch1 -p0
2010-05-07 17:57:33 +00:00
%build
./autogen.sh
2011-03-23 12:37:37 +00:00
%{configure} --prefix=/usr --sbindir=/sbin \
--localstatedir=/var --sysconfdir=/etc \
%ifarch ppc64 s390 s390x
--without-tcmalloc \
%endif
2011-03-23 12:37:37 +00:00
--without-hadoop --with-radosgw --with-gtk2
make %{?_smp_mflags} CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS"
2010-05-07 17:57:33 +00:00
%install
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 {} ';'
2011-03-23 12:37:37 +00:00
install -D src/init-ceph $RPM_BUILD_ROOT%{_initrddir}/ceph
chmod 0644 $RPM_BUILD_ROOT%{_docdir}/ceph/sample.ceph.conf
install -m 0644 -D src/logrotate.conf $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/ceph
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/lib/ceph/tmp/
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/log/ceph/
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/log/ceph/stat
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/ceph
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d
2010-05-07 17:57:33 +00:00
%clean
rm -rf $RPM_BUILD_ROOT
%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
%files
%defattr(-,root,root,-)
%doc README COPYING
%dir %{_sysconfdir}/ceph
2010-05-07 17:57:33 +00:00
%{_bindir}/ceph
2011-03-23 12:37:37 +00:00
%{_bindir}/cephfs
%{_bindir}/ceph-conf
%{_bindir}/ceph-clsinfo
2010-05-07 17:57:33 +00:00
%{_bindir}/crushtool
%{_bindir}/monmaptool
%{_bindir}/osdmaptool
%{_bindir}/ceph-authtool
%{_bindir}/ceph-syn
%{_bindir}/ceph-run
%{_bindir}/ceph-mon
%{_bindir}/ceph-mds
%{_bindir}/ceph-osd
%{_bindir}/ceph-rbdnamer
2011-03-23 12:37:37 +00:00
%{_bindir}/librados-config
2010-05-07 17:57:33 +00:00
%{_bindir}/rados
2010-08-30 17:30:32 +00:00
%{_bindir}/rbd
%{_bindir}/ceph-debugpack
2011-07-12 19:20:47 +00:00
%{_bindir}/ceph-coverage
2011-03-23 12:37:37 +00:00
%{_initrddir}/ceph
%{_libdir}/libcephfs.so.*
2010-05-07 17:57:33 +00:00
%{_libdir}/librados.so.*
2011-03-23 12:37:37 +00:00
%{_libdir}/librbd.so.*
2011-07-12 19:20:47 +00:00
%{_libdir}/librgw.so.*
2011-03-23 12:37:37 +00:00
%{_libdir}/rados-classes/libcls_rbd.so.*
%{_libdir}/rados-classes/libcls_rgw.so*
2010-08-30 17:30:32 +00:00
/sbin/mkcephfs
2010-05-07 17:57:33 +00:00
/sbin/mount.ceph
%{_libdir}/ceph
2010-08-30 17:30:32 +00:00
%{_docdir}/ceph/sample.ceph.conf
%{_docdir}/ceph/sample.fetch_config
2011-03-23 12:37:37 +00:00
%config(noreplace) %{_sysconfdir}/logrotate.d/ceph
%config(noreplace) %{_sysconfdir}/bash_completion.d/rados
%config(noreplace) %{_sysconfdir}/bash_completion.d/ceph
%config(noreplace) %{_sysconfdir}/bash_completion.d/rbd
%{_mandir}/man8/ceph-mon.8*
%{_mandir}/man8/ceph-mds.8*
%{_mandir}/man8/ceph-osd.8*
2010-05-07 17:57:33 +00:00
%{_mandir}/man8/mkcephfs.8*
%{_mandir}/man8/ceph-run.8*
%{_mandir}/man8/ceph-syn.8*
2010-05-07 17:57:33 +00:00
%{_mandir}/man8/crushtool.8*
%{_mandir}/man8/osdmaptool.8*
%{_mandir}/man8/monmaptool.8*
%{_mandir}/man8/ceph-conf.8*
2010-05-07 17:57:33 +00:00
%{_mandir}/man8/ceph.8*
2011-03-23 12:37:37 +00:00
%{_mandir}/man8/cephfs.8*
2010-05-07 17:57:33 +00:00
%{_mandir}/man8/mount.ceph.8*
%{_mandir}/man8/radosgw.8*
%{_mandir}/man8/radosgw-admin.8*
2010-05-07 17:57:33 +00:00
%{_mandir}/man8/rados.8*
2010-08-30 17:30:32 +00:00
%{_mandir}/man8/rbd.8*
%{_mandir}/man8/ceph-authtool.8*
%{_mandir}/man8/ceph-debugpack.8*
%{_mandir}/man8/ceph-clsinfo.8.gz
%{python_sitelib}/rados.py*
2011-07-12 19:20:47 +00:00
%{python_sitelib}/rgw.py*
%{python_sitelib}/rbd.py*
2011-03-23 12:37:37 +00:00
%dir %{_localstatedir}/lib/ceph/
%dir %{_localstatedir}/lib/ceph/tmp/
%dir %{_localstatedir}/log/ceph/
2010-05-07 17:57:33 +00:00
%files fuse
%defattr(-,root,root,-)
%doc COPYING
%{_bindir}/ceph-fuse
%{_mandir}/man8/ceph-fuse.8*
2010-05-07 17:57:33 +00:00
%files devel
%defattr(-,root,root,-)
%doc COPYING
%{_includedir}/cephfs/libcephfs.h
2010-05-07 17:57:33 +00:00
%{_includedir}/crush/crush.h
%{_includedir}/crush/hash.h
%{_includedir}/crush/mapper.h
%{_includedir}/crush/types.h
%{_includedir}/rados/librados.h
%{_includedir}/rados/librados.hpp
%{_includedir}/rados/buffer.h
%{_includedir}/rados/page.h
%{_includedir}/rados/crc32c.h
2011-07-12 19:20:47 +00:00
%{_includedir}/rados/librgw.h
2011-03-23 12:37:37 +00:00
%{_includedir}/rbd/librbd.h
%{_includedir}/rbd/librbd.hpp
%{_libdir}/libcephfs.so
2010-05-07 17:57:33 +00:00
%{_libdir}/librados.so
2011-07-12 19:20:47 +00:00
%{_libdir}/librgw.so
2011-03-23 12:37:37 +00:00
%{_libdir}/librbd.so*
%{_libdir}/rados-classes/libcls_rbd.so
2011-07-12 19:20:47 +00:00
%{_mandir}/man8/librados-config.8*
2011-03-23 12:37:37 +00:00
%files gcephtool
%defattr(-,root,root,-)
%{_bindir}/gceph
%{_datadir}/ceph_tool/gui_resources/*
%files radosgw
%defattr(-,root,root,-)
%{_bindir}/radosgw
%{_bindir}/radosgw-admin
%{_sysconfdir}/bash_completion.d/radosgw-admin
2010-05-07 17:57:33 +00:00
2011-07-12 19:20:47 +00:00
%files obsync
%defattr(-,root,root,-)
%{_bindir}/obsync
%{_bindir}/boto_tool
2010-05-07 17:57:33 +00:00
%changelog
* Sat Dec 03 2011 David Nalley <david@gnsa.us> 0.38-1
- updating to upstream 0.39
* Sat Nov 05 2011 David Nalley <david@gnsa.us> 0.37-1
- create /etc/ceph - bug 745462
- upgrading to 0.37, fixing 745460, 691033
- fixing various logrotate bugs 748930, 747101
* Fri Aug 19 2011 Dan Horák <dan[at]danny.cz> 0.31-4
- google-perftools not available also on s390(x)
* Mon Jul 25 2011 Karsten Hopp <karsten@redhat.com> 0.31-3
- build without tcmalloc on ppc64, BR google-perftools is not available there
* Tue Jul 12 2011 Josef Bacik <josef@toxicpanda.com> 0.31-2
- Remove curl/types.h include since we don't use it anymore
2011-07-12 19:20:47 +00:00
* Tue Jul 12 2011 Josef Bacik <josef@toxicpanda.com> 0.31-1
- Update to 0.31
2011-04-05 23:11:43 +00:00
* Tue Apr 5 2011 Josef Bacik <josef@toxicpanda.com> 0.26-2
- Add the compile fix patch
2011-04-05 22:58:14 +00:00
* Tue Apr 5 2011 Josef Bacik <josef@toxicpanda.com> 0.26
- Update to 0.26
2011-03-23 12:37:37 +00:00
* Tue Mar 22 2011 Josef Bacik <josef@toxicpanda.com> 0.25.1-1
- Update to 0.25.1
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.21.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
2010-09-29 20:24:43 +00:00
* Wed Sep 29 2010 Steven Pritchard <steve@kspei.com> 0.21.3-1
- Update to 0.21.3.
2010-09-29 17:38:19 +00:00
* Mon Aug 30 2010 Steven Pritchard <steve@kspei.com> 0.21.2-1
- Update to 0.21.2.
2010-08-30 17:30:32 +00:00
* Thu Aug 26 2010 Steven Pritchard <steve@kspei.com> 0.21.1-1
- Update to 0.21.1.
- Sample configs moved to /usr/share/doc/ceph/.
- Added cclass, rbd, and cclsinfo.
- Dropped mkmonfs and rbdtool.
- mkcephfs moved to /sbin.
- Add libcls_rbd.so.
2010-07-06 18:57:23 +00:00
* Tue Jul 6 2010 Josef Bacik <josef@toxicpanda.com> 0.20.2-1
- update to 0.20.2
2010-05-07 17:57:33 +00:00
* Wed May 5 2010 Josef Bacik <josef@toxicpanda.com> 0.20-1
- update to 0.20
- disable hadoop building
- remove all the test binaries properly
* 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
* 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