tstellar / rpms / ceph

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