Guest User

ceph.spec 0.20.1 for Centos 5

a guest
May 27th, 2010
244
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.74 KB | None | 0 0
  1. Name: ceph
  2. Version: 0.20.1
  3. Release: 4%{?dist}
  4. Summary: User space components of the Ceph file system
  5. License: LGPLv2
  6. Group: System Environment/Base
  7. URL: http://ceph.newdream.net/
  8.  
  9. Source: http://ceph.newdream.net/download/%{name}-%{version}.tar.gz
  10. BuildRequires: fuse-devel, libtool, libtool-ltdl-devel, boost-devel,
  11. BuildRequires: libedit-devel, fuse-devel, git, perl, gdbm,
  12. BuildRequires: openssl-devel, libatomic_ops-devel
  13. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
  14. Requires(post): chkconfig
  15. Requires(preun): chkconfig
  16. Requires(preun): initscripts
  17.  
  18. %description
  19. Ceph is a distributed network file system designed to provide excellent
  20. performance, reliability, and scalability.
  21.  
  22. %package fuse
  23. Summary: Ceph fuse-based client
  24. Group: System Environment/Base
  25. Requires: %{name} = %{version}-%{release}
  26. BuildRequires: fuse-devel
  27. %description fuse
  28. FUSE based client for Ceph distributed network file system
  29.  
  30. %package devel
  31. Summary: Ceph headers
  32. Group: Development/Libraries
  33. License: LGPLv2
  34. Requires: %{name} = %{version}-%{release}
  35. %description devel
  36. This package contains the headers needed to develop programs that use Ceph.
  37.  
  38. %prep
  39. %setup -q
  40. chmod 0644 src/common/Mutex.h
  41.  
  42. %build
  43. #./autogen.sh
  44. %configure
  45. make CFLAGS="$RPM_OPT_FLAGS"
  46.  
  47. %install
  48. rm -rf $RPM_BUILD_ROOT
  49. make install DESTDIR=$RPM_BUILD_ROOT
  50. find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
  51. find $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';'
  52. install -D src/init-ceph $RPM_BUILD_ROOT%{_initrddir}/ceph
  53. chmod 0644 $RPM_BUILD_ROOT%{_sysconfdir}/ceph/sample.ceph.conf
  54.  
  55. %clean
  56. rm -rf $RPM_BUILD_ROOT
  57.  
  58. %post
  59. /sbin/ldconfig
  60. /sbin/chkconfig --add ceph
  61.  
  62. %preun
  63. if [ $1 = 0 ] ; then
  64. /sbin/service ceph stop >/dev/null 2>&1
  65. /sbin/chkconfig --del ceph
  66. fi
  67.  
  68. %postun
  69. /sbin/ldconfig
  70. if [ "$1" -ge "1" ] ; then
  71. /sbin/service ceph condrestart >/dev/null 2>&1 || :
  72. fi
  73.  
  74. %files
  75. %defattr(-,root,root,-)
  76. %doc README COPYING
  77. %{_bindir}/ceph
  78. %{_bindir}/cconf
  79. %{_bindir}/crushtool
  80. %{_bindir}/monmaptool
  81. %{_bindir}/osdmaptool
  82. %{_bindir}/cauthtool
  83. %{_bindir}/csyn
  84. %{_bindir}/crun
  85. %{_bindir}/cmon
  86. %{_bindir}/cmds
  87. %{_bindir}/cosd
  88. %{_bindir}/mkmonfs
  89. %{_bindir}/rados
  90. %{_bindir}/rbdtool
  91. %{_bindir}/dumpjournal
  92. %{_bindir}/dupstore
  93. %{_bindir}/radosacl
  94. %{_bindir}/streamtest
  95. %{_bindir}/test*
  96. %{_initrddir}/ceph
  97. %{_libdir}/libceph.so.*
  98. %{_libdir}/libcrush.so.*
  99. %{_libdir}/librados.so.*
  100. %{_sbindir}/mkcephfs
  101. /sbin/mount.ceph
  102. %{_libdir}/ceph
  103. %config(noreplace) %{_sysconfdir}/ceph/sample.ceph.conf
  104. %config(noreplace) %{_sysconfdir}/ceph/sample.fetch_config
  105. %{_mandir}/man8/cmon.8*
  106. %{_mandir}/man8/cmds.8*
  107. %{_mandir}/man8/cosd.8*
  108. %{_mandir}/man8/mkcephfs.8*
  109. %{_mandir}/man8/mkmonfs.8*
  110. %{_mandir}/man8/crun.8*
  111. %{_mandir}/man8/csyn.8*
  112. %{_mandir}/man8/crushtool.8*
  113. %{_mandir}/man8/osdmaptool.8*
  114. %{_mandir}/man8/monmaptool.8*
  115. %{_mandir}/man8/cconf.8*
  116. %{_mandir}/man8/ceph.8*
  117. %{_mandir}/man8/mount.ceph.8*
  118. %{_mandir}/man8/radosgw.8*
  119. %{_mandir}/man8/radosgw_admin.8*
  120. %{_mandir}/man8/rados.8*
  121. %{_mandir}/man8/rbdtool.8*
  122. %{_mandir}/man8/cauthtool.8*
  123.  
  124. %files fuse
  125. %defattr(-,root,root,-)
  126. %doc COPYING
  127. %{_bindir}/cfuse
  128. %{_mandir}/man8/cfuse.8*
  129.  
  130. %files devel
  131. %defattr(-,root,root,-)
  132. %doc COPYING
  133. %{_includedir}/ceph/libceph.h
  134. %{_includedir}/crush/crush.h
  135. %{_includedir}/crush/hash.h
  136. %{_includedir}/crush/mapper.h
  137. %{_includedir}/crush/types.h
  138. %{_includedir}/rados/librados.h
  139. %{_includedir}/rados/librados.hpp
  140. %{_includedir}/rados/buffer.h
  141. %{_includedir}/rados/atomic.h
  142. %{_includedir}/rados/page.h
  143. %{_includedir}/rados/crc32c.h
  144. %{_includedir}/rados/Spinlock.h
  145. %{_includedir}/rados/assert.h
  146. %{_libdir}/libceph.so
  147. %{_libdir}/libcrush.so
  148. %{_libdir}/librados.so
  149.  
  150. %changelog
  151. * Fri Apr 30 2010 Sage Weil <[email protected]> 0.19.1-5
  152. - Remove java deps (no need to build hadoop by default)
  153. - Include all required librados helpers
  154. - Include fetch_config sample
  155. - Include rbdtool
  156. - Remove misc debugging, test binaries
  157.  
  158. * Thu Apr 30 2010 Josef Bacik <[email protected]> 0.19.1-4
  159. - Add java-devel and java tricks to get hadoop to build
  160.  
  161. * Mon Apr 26 2010 Josef Bacik <[email protected]> 0.19.1-3
  162. - Move the rados and cauthtool man pages into the base package
  163.  
  164. * Sun Apr 25 2010 Jonathan Dieter <[email protected]> 0.19.1-2
  165. - Add missing libhadoopcephfs.so* to file list
  166. - Add COPYING to all subpackages
  167. - Fix ownership of /usr/lib[64]/ceph
  168. - Enhance description of fuse client
  169.  
  170. * Tue Apr 20 2010 Josef Bacik <[email protected]> 0.19.1-1
  171. - Update to 0.19.1
  172.  
  173. * Mon Feb 8 2010 Josef Bacik <[email protected]> 0.18-1
  174. - Initial spec file creation, based on the template provided in the ceph src
Advertisement
Add Comment
Please, Sign In to add comment