tstellar / rpms / ceph

Forked from rpms/ceph 2 years ago
Clone
b54c831
Name:          ceph
b54c831
Version:       0.20
b54c831
Release:       1%{?dist}
b54c831
Summary:       User space components of the Ceph file system
b54c831
License:       LGPLv2
b54c831
Group:         System Environment/Base
b54c831
URL:           http://ceph.newdream.net/
b54c831
b54c831
Source:        http://ceph.newdream.net/download/%{name}-%{version}.tar.gz
b54c831
Patch0:        ceph-init-fix.patch
b54c831
BuildRequires: fuse-devel, libtool, libtool-ltdl-devel, boost-devel, 
b54c831
BuildRequires: libedit-devel, fuse-devel, git, perl, perl-devel, gdbm,
b54c831
BuildRequires: openssl-devel, libatomic_ops-devel
b54c831
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
b54c831
Requires(post): chkconfig
b54c831
Requires(preun): chkconfig
b54c831
Requires(preun): initscripts
b54c831
b54c831
%description
b54c831
Ceph is a distributed network file system designed to provide excellent
b54c831
performance, reliability, and scalability.
b54c831
b54c831
%package       fuse
b54c831
Summary:       Ceph fuse-based client
b54c831
Group:         System Environment/Base
b54c831
Requires:      %{name} = %{version}-%{release}
b54c831
BuildRequires: fuse-devel
b54c831
%description   fuse
b54c831
FUSE based client for Ceph distributed network file system
b54c831
b54c831
%package     devel
b54c831
Summary:     Ceph headers
b54c831
Group:       Development/Libraries
b54c831
License:     LGPLv2
b54c831
Requires:    %{name} = %{version}-%{release}
b54c831
%description devel
b54c831
This package contains the headers needed to develop programs that use Ceph.
b54c831
b54c831
%prep
b54c831
%setup -q
b54c831
%patch0 -p1 -b .init
b54c831
chmod 0644 src/common/Mutex.h
b54c831
b54c831
%build
b54c831
./autogen.sh
b54c831
%configure --without-hadoop --without-debug
b54c831
make CFLAGS="$RPM_OPT_FLAGS"
b54c831
b54c831
%install
b54c831
rm -rf $RPM_BUILD_ROOT
b54c831
make install DESTDIR=$RPM_BUILD_ROOT
b54c831
find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
b54c831
find $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';'
b54c831
install -D src/init-ceph $RPM_BUILD_ROOT%{_initddir}/ceph
b54c831
chmod 0644 $RPM_BUILD_ROOT%{_sysconfdir}/ceph/sample.ceph.conf
b54c831
b54c831
# remove debug binaries
b54c831
rm -f $RPM_BUILD_ROOT%{_bindir}/dumpjournal
b54c831
rm -f $RPM_BUILD_ROOT%{_bindir}/dupstore
b54c831
rm -f $RPM_BUILD_ROOT%{_bindir}/radosacl
b54c831
rm -f $RPM_BUILD_ROOT%{_bindir}/streamtest
b54c831
rm -f $RPM_BUILD_ROOT%{_bindir}/test_ioctls
b54c831
rm -f $RPM_BUILD_ROOT%{_bindir}/test_trans
b54c831
rm -f $RPM_BUILD_ROOT%{_bindir}/testceph
b54c831
rm -f $RPM_BUILD_ROOT%{_bindir}/testcrypto
b54c831
rm -f $RPM_BUILD_ROOT%{_bindir}/testkeys
b54c831
rm -f $RPM_BUILD_ROOT%{_bindir}/testmsgr
b54c831
rm -f $RPM_BUILD_ROOT%{_bindir}/testrados
b54c831
rm -f $RPM_BUILD_ROOT%{_bindir}/testradospp
b54c831
b54c831
%clean
b54c831
rm -rf $RPM_BUILD_ROOT
b54c831
b54c831
%post
b54c831
/sbin/ldconfig
b54c831
/sbin/chkconfig --add ceph
b54c831
b54c831
%preun
b54c831
if [ $1 = 0 ] ; then
b54c831
    /sbin/service ceph stop >/dev/null 2>&1
b54c831
    /sbin/chkconfig --del ceph
b54c831
fi
b54c831
b54c831
%postun
b54c831
/sbin/ldconfig
b54c831
if [ "$1" -ge "1" ] ; then
b54c831
    /sbin/service ceph condrestart >/dev/null 2>&1 || :
b54c831
fi
b54c831
b54c831
%files
b54c831
%defattr(-,root,root,-)
b54c831
%doc README COPYING
b54c831
%{_bindir}/ceph
b54c831
%{_bindir}/cconf
b54c831
%{_bindir}/crushtool
b54c831
%{_bindir}/monmaptool
b54c831
%{_bindir}/osdmaptool
b54c831
%{_bindir}/cauthtool
b54c831
%{_bindir}/csyn
b54c831
%{_bindir}/crun
b54c831
%{_bindir}/cmon
b54c831
%{_bindir}/cmds
b54c831
%{_bindir}/cosd
b54c831
%{_bindir}/mkmonfs
b54c831
%{_bindir}/rados
b54c831
%{_bindir}/rbdtool
b54c831
%{_bindir}/psim
b54c831
%{_initddir}/ceph
b54c831
%{_libdir}/libceph.so.*
b54c831
%{_libdir}/libcrush.so.*
b54c831
%{_libdir}/librados.so.*
b54c831
%{_sbindir}/mkcephfs
b54c831
/sbin/mount.ceph
b54c831
%{_libdir}/ceph
b54c831
%config(noreplace) %{_sysconfdir}/ceph/sample.ceph.conf
b54c831
%config(noreplace) %{_sysconfdir}/ceph/sample.fetch_config
b54c831
%{_mandir}/man8/cmon.8*
b54c831
%{_mandir}/man8/cmds.8*
b54c831
%{_mandir}/man8/cosd.8*
b54c831
%{_mandir}/man8/mkcephfs.8*
b54c831
%{_mandir}/man8/mkmonfs.8*
b54c831
%{_mandir}/man8/crun.8*
b54c831
%{_mandir}/man8/csyn.8*
b54c831
%{_mandir}/man8/crushtool.8*
b54c831
%{_mandir}/man8/osdmaptool.8*
b54c831
%{_mandir}/man8/monmaptool.8*
b54c831
%{_mandir}/man8/cconf.8*
b54c831
%{_mandir}/man8/ceph.8*
b54c831
%{_mandir}/man8/mount.ceph.8*
b54c831
%{_mandir}/man8/radosgw.8*
b54c831
%{_mandir}/man8/radosgw_admin.8*
b54c831
%{_mandir}/man8/rados.8*
b54c831
%{_mandir}/man8/rbdtool.8*
b54c831
%{_mandir}/man8/cauthtool.8*
b54c831
b54c831
%files fuse
b54c831
%defattr(-,root,root,-)
b54c831
%doc COPYING
b54c831
%{_bindir}/cfuse
b54c831
%{_mandir}/man8/cfuse.8*
b54c831
b54c831
%files devel
b54c831
%defattr(-,root,root,-)
b54c831
%doc COPYING
b54c831
%{_includedir}/ceph/libceph.h
b54c831
%{_includedir}/crush/crush.h
b54c831
%{_includedir}/crush/hash.h
b54c831
%{_includedir}/crush/mapper.h
b54c831
%{_includedir}/crush/types.h
b54c831
%{_includedir}/rados/librados.h
b54c831
%{_includedir}/rados/librados.hpp
b54c831
%{_includedir}/rados/buffer.h
b54c831
%{_includedir}/rados/atomic.h
b54c831
%{_includedir}/rados/page.h
b54c831
%{_includedir}/rados/crc32c.h
b54c831
%{_includedir}/rados/Spinlock.h
b54c831
%{_includedir}/rados/assert.h
b54c831
%{_libdir}/libceph.so
b54c831
%{_libdir}/libcrush.so
b54c831
%{_libdir}/librados.so
b54c831
b54c831
%changelog
b54c831
* Wed May  5 2010 Josef Bacik <josef@toxicpanda.com> 0.20-1
b54c831
- update to 0.20
b54c831
- disable hadoop building
b54c831
- remove all the test binaries properly
b54c831
b54c831
* Fri Apr 30 2010 Sage Weil <sage@newdream.net> 0.19.1-5
b54c831
- Remove java deps (no need to build hadoop by default)
b54c831
- Include all required librados helpers
b54c831
- Include fetch_config sample
b54c831
- Include rbdtool
b54c831
- Remove misc debugging, test binaries
b54c831
b54c831
* Thu Apr 30 2010 Josef Bacik <josef@toxicpanda.com> 0.19.1-4
b54c831
- Add java-devel and java tricks to get hadoop to build
b54c831
b54c831
* Mon Apr 26 2010 Josef Bacik <josef@toxicpanda.com> 0.19.1-3
b54c831
- Move the rados and cauthtool man pages into the base package
b54c831
b54c831
* Sun Apr 25 2010 Jonathan Dieter <jdieter@lesbg.com> 0.19.1-2
b54c831
- Add missing libhadoopcephfs.so* to file list
b54c831
- Add COPYING to all subpackages
b54c831
- Fix ownership of /usr/lib[64]/ceph
b54c831
- Enhance description of fuse client
b54c831
b54c831
* Tue Apr 20 2010 Josef Bacik <josef@toxicpanda.com> 0.19.1-1
b54c831
- Update to 0.19.1
b54c831
b54c831
* Mon Feb  8 2010 Josef Bacik <josef@toxicpanda.com> 0.18-1
b54c831
- Initial spec file creation, based on the template provided in the ceph src