salimma / rpms / ceph

Forked from rpms/ceph 2 years ago
Clone
5dd73cb
Name:          ceph
Josef Bacik 4707fda
Version:       0.45
0a05e8b
Release:       2%{?dist}
5dd73cb
Summary:       User space components of the Ceph file system
5dd73cb
License:       LGPLv2
5dd73cb
Group:         System Environment/Base
5dd73cb
URL:           http://ceph.newdream.net/
5dd73cb
dc8a12b
Source:        http://ceph.newdream.net/download/%{name}-%{version}.tar.bz2
5dd73cb
Patch0:        ceph-init-fix.patch
David Nalley d10f18b
Patch1:        ceph.logrotate.patch
0a05e8b
# http://tracker.newdream.net/issues/2329
0a05e8b
Patch2:        ceph-gxx-atomic.patch
Jonathan Dieter 0f5f195
5dd73cb
BuildRequires: fuse-devel, libtool, libtool-ltdl-devel, boost-devel, 
Jonathan Dieter f32a9e4
BuildRequires: libedit-devel, fuse-devel, git, perl, gdbm, libaio-devel,
b89a3dc
# google-perftools is not available on these:
6eb8fdf
%ifnarch ppc ppc64 s390 s390x
dc8a12b
BuildRequires: gperftools-devel
fd6c2fa
%endif
David Nalley c0a0a52
BuildRequires: cryptopp-devel, libatomic_ops-devel, gcc-c++
Josef Bacik 9b4a6bb
BuildRequires: pkgconfig, libcurl-devel, keyutils-libs-devel
David Nalley c0a0a52
BuildRequires: gtkmm24-devel, gtk2-devel, libuuid, libuuid-devel
563583e
Josef Bacik 9b4a6bb
Requires(post): chkconfig, binutils, libedit
5dd73cb
Requires(preun): chkconfig
5dd73cb
Requires(preun): initscripts
5dd73cb
5dd73cb
%description
5dd73cb
Ceph is a distributed network file system designed to provide excellent
5dd73cb
performance, reliability, and scalability.
5dd73cb
5dd73cb
%package       fuse
5dd73cb
Summary:       Ceph fuse-based client
5dd73cb
Group:         System Environment/Base
5dd73cb
Requires:      %{name} = %{version}-%{release}
5dd73cb
BuildRequires: fuse-devel
5dd73cb
%description   fuse
5dd73cb
FUSE based client for Ceph distributed network file system
5dd73cb
5dd73cb
%package     devel
5dd73cb
Summary:     Ceph headers
5dd73cb
Group:       Development/Libraries
5dd73cb
License:     LGPLv2
5dd73cb
Requires:    %{name} = %{version}-%{release}
5dd73cb
%description devel
5dd73cb
This package contains the headers needed to develop programs that use Ceph.
5dd73cb
Josef Bacik ca6b4d7
%package radosgw
Josef Bacik ca6b4d7
Summary:        rados REST gateway
Josef Bacik ca6b4d7
Group:          Development/Libraries
Josef Bacik ca6b4d7
Requires:       mod_fcgid
Josef Bacik ca6b4d7
BuildRequires:  fcgi-devel
Josef Bacik ca6b4d7
BuildRequires:  expat-devel
Josef Bacik ca6b4d7
Josef Bacik ca6b4d7
%description radosgw
Josef Bacik ca6b4d7
radosgw is an S3 HTTP REST gateway for the RADOS object store. It is
Josef Bacik ca6b4d7
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
Josef Bacik 9b4a6bb
%package obsync
Josef Bacik 9b4a6bb
Summary:        synchronize data between cloud object storage providers or a local directory
Josef Bacik 9b4a6bb
Group:          Productivity/Networking/Other
Josef Bacik 9b4a6bb
License:        LGPLv2
Josef Bacik 9b4a6bb
Requires:       python, python-boto
Josef Bacik 9b4a6bb
%description obsync
Josef Bacik 9b4a6bb
obsync is a tool to synchronize objects between cloud object
Josef Bacik 9b4a6bb
storage providers, such as Amazon S3 (or compatible services), a
Josef Bacik 9b4a6bb
Ceph RADOS cluster, or a local directory.
Josef Bacik 9b4a6bb
Josef Bacik ca6b4d7
%package gcephtool
Josef Bacik ca6b4d7
Summary:        Ceph graphical monitoring tool
Josef Bacik ca6b4d7
Group:          System Environment/Base
Josef Bacik ca6b4d7
License:        LGPLv2
Josef Bacik ca6b4d7
Requires:       gtk2 gtkmm24
Josef Bacik ca6b4d7
BuildRequires:  gtk2-devel gtkmm24-devel
Josef Bacik ca6b4d7
Josef Bacik ca6b4d7
%description gcephtool
Josef Bacik ca6b4d7
gcephtool is a graphical monitor for the clusters running the Ceph distributed
Josef Bacik ca6b4d7
file system.
Josef Bacik ca6b4d7
5dd73cb
%prep
5dd73cb
%setup -q
5dd73cb
%patch0 -p1 -b .init
Jonathan Dieter f32a9e4
%patch1 -p0
0a05e8b
%patch2 -p1 -b .atomic
5dd73cb
5dd73cb
%build
5dd73cb
./autogen.sh
563583e
563583e
%ifarch armv5tel
563583e
# libatomic_ops does not have correct asm for ARMv5tel
563583e
EXTRA_CFLAGS="-DAO_USE_PTHREAD_DEFS"
563583e
%endif
563583e
%ifarch %{arm}
563583e
# libatomic_ops seems to fallback on some pthread implementation on ARM
563583e
EXTRA_LDFLAGS="-lpthread"
563583e
%endif
563583e
Josef Bacik ca6b4d7
%{configure} --prefix=/usr --sbindir=/sbin \
Josef Bacik ca6b4d7
--localstatedir=/var --sysconfdir=/etc \
6eb8fdf
%ifarch ppc ppc64 s390 s390x
fd6c2fa
--without-tcmalloc \
fd6c2fa
%endif
Jonathan Dieter 0f5f195
--without-hadoop --with-radosgw --with-gtk2 \
563583e
CFLAGS="$RPM_OPT_FLAGS $EXTRA_CFLAGS" \
563583e
CXXFLAGS="$RPM_OPT_FLAGS $EXTRA_CFLAGS" \
563583e
LDFLAGS="$EXTRA_LDFLAGS"
Jonathan Dieter 0f5f195
Jonathan Dieter 0f5f195
make %{?_smp_mflags}
5dd73cb
5dd73cb
%install
5dd73cb
make install DESTDIR=$RPM_BUILD_ROOT
5dd73cb
find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
5dd73cb
find $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';'
Josef Bacik ca6b4d7
install -D src/init-ceph $RPM_BUILD_ROOT%{_initrddir}/ceph
Josef Bacik ca6b4d7
chmod 0644 $RPM_BUILD_ROOT%{_docdir}/ceph/sample.ceph.conf
Josef Bacik ca6b4d7
install -m 0644 -D src/logrotate.conf $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/ceph
Josef Bacik ca6b4d7
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/lib/ceph/tmp/
Josef Bacik ca6b4d7
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/log/ceph/
Josef Bacik ca6b4d7
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/log/ceph/stat
David Nalley d10f18b
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/ceph
David Nalley d10f18b
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d
Jonathan Dieter f32a9e4
5dd73cb
%post
5dd73cb
/sbin/ldconfig
5dd73cb
/sbin/chkconfig --add ceph
5dd73cb
5dd73cb
%preun
5dd73cb
if [ $1 = 0 ] ; then
5dd73cb
    /sbin/service ceph stop >/dev/null 2>&1
5dd73cb
    /sbin/chkconfig --del ceph
5dd73cb
fi
5dd73cb
5dd73cb
%postun
5dd73cb
/sbin/ldconfig
5dd73cb
if [ "$1" -ge "1" ] ; then
5dd73cb
    /sbin/service ceph condrestart >/dev/null 2>&1 || :
5dd73cb
fi
5dd73cb
5dd73cb
%files
5dd73cb
%defattr(-,root,root,-)
5dd73cb
%doc README COPYING
David Nalley d10f18b
%dir %{_sysconfdir}/ceph
5dd73cb
%{_bindir}/ceph
Josef Bacik ca6b4d7
%{_bindir}/cephfs
David Nalley d10f18b
%{_bindir}/ceph-conf
David Nalley d10f18b
%{_bindir}/ceph-clsinfo
5dd73cb
%{_bindir}/crushtool
5dd73cb
%{_bindir}/monmaptool
5dd73cb
%{_bindir}/osdmaptool
David Nalley d10f18b
%{_bindir}/ceph-authtool
David Nalley d10f18b
%{_bindir}/ceph-syn
David Nalley d10f18b
%{_bindir}/ceph-run
David Nalley d10f18b
%{_bindir}/ceph-mon
David Nalley d10f18b
%{_bindir}/ceph-mds
David Nalley d10f18b
%{_bindir}/ceph-osd
David Nalley d10f18b
%{_bindir}/ceph-rbdnamer
Josef Bacik ca6b4d7
%{_bindir}/librados-config
5dd73cb
%{_bindir}/rados
Steven Pritchard cf2b700
%{_bindir}/rbd
David Nalley d10f18b
%{_bindir}/ceph-debugpack
Josef Bacik 9b4a6bb
%{_bindir}/ceph-coverage
Jonathan Dieter f32a9e4
%{_bindir}/ceph-dencoder
Josef Bacik ca6b4d7
%{_initrddir}/ceph
David Nalley d10f18b
%{_libdir}/libcephfs.so.*
5dd73cb
%{_libdir}/librados.so.*
Josef Bacik ca6b4d7
%{_libdir}/librbd.so.*
Josef Bacik 9b4a6bb
%{_libdir}/librgw.so.*
Josef Bacik ca6b4d7
%{_libdir}/rados-classes/libcls_rbd.so.*
David Nalley d10f18b
%{_libdir}/rados-classes/libcls_rgw.so*
Steven Pritchard cf2b700
/sbin/mkcephfs
5dd73cb
/sbin/mount.ceph
5dd73cb
%{_libdir}/ceph
Steven Pritchard cf2b700
%{_docdir}/ceph/sample.ceph.conf
Steven Pritchard cf2b700
%{_docdir}/ceph/sample.fetch_config
Josef Bacik ca6b4d7
%config(noreplace) %{_sysconfdir}/logrotate.d/ceph
David Nalley d10f18b
%config(noreplace) %{_sysconfdir}/bash_completion.d/rados
David Nalley d10f18b
%config(noreplace) %{_sysconfdir}/bash_completion.d/ceph
David Nalley d10f18b
%config(noreplace) %{_sysconfdir}/bash_completion.d/rbd
David Nalley d10f18b
%{_mandir}/man8/ceph-mon.8*
David Nalley d10f18b
%{_mandir}/man8/ceph-mds.8*
David Nalley d10f18b
%{_mandir}/man8/ceph-osd.8*
5dd73cb
%{_mandir}/man8/mkcephfs.8*
David Nalley d10f18b
%{_mandir}/man8/ceph-run.8*
David Nalley d10f18b
%{_mandir}/man8/ceph-syn.8*
5dd73cb
%{_mandir}/man8/crushtool.8*
5dd73cb
%{_mandir}/man8/osdmaptool.8*
5dd73cb
%{_mandir}/man8/monmaptool.8*
David Nalley d10f18b
%{_mandir}/man8/ceph-conf.8*
5dd73cb
%{_mandir}/man8/ceph.8*
Josef Bacik ca6b4d7
%{_mandir}/man8/cephfs.8*
5dd73cb
%{_mandir}/man8/mount.ceph.8*
5dd73cb
%{_mandir}/man8/radosgw.8*
David Nalley d10f18b
%{_mandir}/man8/radosgw-admin.8*
5dd73cb
%{_mandir}/man8/rados.8*
Steven Pritchard cf2b700
%{_mandir}/man8/rbd.8*
David Nalley d10f18b
%{_mandir}/man8/ceph-authtool.8*
David Nalley d10f18b
%{_mandir}/man8/ceph-debugpack.8*
Jonathan Dieter f32a9e4
%{_mandir}/man8/ceph-clsinfo.8*
Jonathan Dieter f32a9e4
%{_mandir}/man8/ceph-dencoder.8*
David Nalley d10f18b
%{python_sitelib}/rados.py*
Josef Bacik 9b4a6bb
%{python_sitelib}/rgw.py*
David Nalley d10f18b
%{python_sitelib}/rbd.py*
Josef Bacik ca6b4d7
%dir %{_localstatedir}/lib/ceph/
Josef Bacik ca6b4d7
%dir %{_localstatedir}/lib/ceph/tmp/
Josef Bacik ca6b4d7
%dir %{_localstatedir}/log/ceph/
5dd73cb
5dd73cb
%files fuse
5dd73cb
%defattr(-,root,root,-)
5dd73cb
%doc COPYING
David Nalley d10f18b
%{_bindir}/ceph-fuse
David Nalley d10f18b
%{_mandir}/man8/ceph-fuse.8*
5dd73cb
5dd73cb
%files devel
5dd73cb
%defattr(-,root,root,-)
5dd73cb
%doc COPYING
David Nalley d10f18b
%{_includedir}/cephfs/libcephfs.h
5dd73cb
%{_includedir}/crush/crush.h
5dd73cb
%{_includedir}/crush/hash.h
5dd73cb
%{_includedir}/crush/mapper.h
5dd73cb
%{_includedir}/crush/types.h
5dd73cb
%{_includedir}/rados/librados.h
5dd73cb
%{_includedir}/rados/librados.hpp
5dd73cb
%{_includedir}/rados/buffer.h
5dd73cb
%{_includedir}/rados/page.h
5dd73cb
%{_includedir}/rados/crc32c.h
Josef Bacik 9b4a6bb
%{_includedir}/rados/librgw.h
Josef Bacik ca6b4d7
%{_includedir}/rbd/librbd.h
Josef Bacik ca6b4d7
%{_includedir}/rbd/librbd.hpp
David Nalley d10f18b
%{_libdir}/libcephfs.so
5dd73cb
%{_libdir}/librados.so
Josef Bacik 9b4a6bb
%{_libdir}/librgw.so
Josef Bacik ca6b4d7
%{_libdir}/librbd.so*
Josef Bacik ca6b4d7
%{_libdir}/rados-classes/libcls_rbd.so
Josef Bacik 9b4a6bb
%{_mandir}/man8/librados-config.8*
Josef Bacik ca6b4d7
Josef Bacik ca6b4d7
%files gcephtool
Josef Bacik ca6b4d7
%defattr(-,root,root,-)
Josef Bacik ca6b4d7
%{_bindir}/gceph
Josef Bacik ca6b4d7
%{_datadir}/ceph_tool/gui_resources/*
Josef Bacik ca6b4d7
Josef Bacik ca6b4d7
%files radosgw
Josef Bacik ca6b4d7
%defattr(-,root,root,-)
Josef Bacik ca6b4d7
%{_bindir}/radosgw
David Nalley d10f18b
%{_bindir}/radosgw-admin
David Nalley d10f18b
%{_sysconfdir}/bash_completion.d/radosgw-admin
5dd73cb
Josef Bacik 9b4a6bb
%files obsync
Josef Bacik 9b4a6bb
%defattr(-,root,root,-)
Josef Bacik 9b4a6bb
%{_bindir}/obsync
Josef Bacik 9b4a6bb
%{_bindir}/boto_tool
Josef Bacik 9b4a6bb
5dd73cb
%changelog
0a05e8b
* Mon Apr 23 2012 Dan Horák <dan[at]danny.cz> - 0.45-2
0a05e8b
- fix detection of C++11 atomic header
0a05e8b
Josef Bacik 4707fda
* Thu Apr 12 2012 Josef Bacik <josef@toxicpanda.com> - 0.45-1
Josef Bacik 4707fda
- updating to upstream 0.45
Josef Bacik 4707fda
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
5dd73cb
* Thu 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