dmraid-vl.spec 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277
  1. Summary: Device-mapper RAID tool and library.
  2. Summary(ja): Device-mapper RAID ツールおよびライブラリ
  3. Name: dmraid
  4. Version: 1.0.0.rc15
  5. Release: 1%{?_dist_release}
  6. License: GPL
  7. Group: System Environment/Base
  8. URL: http://people.redhat.com/heinzm/sw/dmraid
  9. Source: ftp://people.redhat.com/heinzm/sw/dmraid/src/%{name}-%{version}.tar.bz2
  10. Patch0: dmraid-1.0.0.rc15-whitespace.patch
  11. Patch1: dmraid-1.0.0.rc15-isw-raid10.patch
  12. Patch2: dmraid-1.0.0.rc15-rm_partitions.patch
  13. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  14. BuildRequires: device-mapper-devel >= 1.02.22
  15. Requires: device-mapper >= 1.02.22
  16. Requires(postun): ldconfig
  17. Requires(post): ldconfig
  18. %description
  19. DMRAID supports RAID device discovery, RAID set activation and display of
  20. properties for ATARAID on Linux >= 2.4 using device-mapper.
  21. %package -n dmraid-devel
  22. Summary: Development libraries and headers for dmraid.
  23. Group: Development/Libraries
  24. %description -n dmraid-devel
  25. dmraid-devel provides a library interface for RAID device discovery,
  26. RAID set activation and display of properties for ATARAID volumes.
  27. %prep
  28. %setup -q -n dmraid/%{version}
  29. %patch0 -p1
  30. %patch1 -p1
  31. %patch2 -p1
  32. %build
  33. %configure \
  34. --prefix=${RPM_BUILD_ROOT}/usr --sbindir=${RPM_BUILD_ROOT}/sbin \
  35. --libdir=${RPM_BUILD_ROOT}/%{_libdir} --mandir=${RPM_BUILD_ROOT}/%{_mandir} \
  36. --includedir=${RPM_BUILD_ROOT}/%{_includedir} \
  37. --disable-libselinux --enable-static_link
  38. make DESTDIR=$RPM_BUILD_ROOT
  39. mv tools/dmraid tools/dmraid.static
  40. make clean
  41. %configure \
  42. --prefix=${RPM_BUILD_ROOT}/usr --sbindir=${RPM_BUILD_ROOT}/sbin \
  43. --libdir=${RPM_BUILD_ROOT}/%{_libdir} --mandir=${RPM_BUILD_ROOT}/%{_mandir} \
  44. --includedir=${RPM_BUILD_ROOT}/%{_includedir} \
  45. --disable-libselinux --disable-static_link
  46. make -C lib DESTDIR=$RPM_BUILD_ROOT libdmraid.so
  47. %install
  48. rm -rf $RPM_BUILD_ROOT
  49. install -m 755 -d $RPM_BUILD_ROOT{%{_libdir},/sbin,%{_sbindir},%{_bindir},%{_libdir},%{_includedir}/dmraid/,/var/lock/dmraid}
  50. make DESTDIR=$RPM_BUILD_ROOT install
  51. install -m 755 tools/dmraid.static $RPM_BUILD_ROOT/sbin/dmraid.static
  52. install -m 644 include/dmraid/*.h $RPM_BUILD_ROOT%{_includedir}/dmraid/
  53. # if requested, install the dso
  54. install -m 755 lib/libdmraid.so \
  55. $RPM_BUILD_ROOT%{_libdir}/libdmraid.so.%{version}
  56. (cd $RPM_BUILD_ROOT/%{_libdir} ; ln -sf libdmraid.so.%{version} libdmraid.so)
  57. rm -f $RPM_BUILD_ROOT/%{_libdir}/libdmraid.a
  58. %clean
  59. rm -rf $RPM_BUILD_ROOT
  60. %post -p /sbin/ldconfig
  61. %postun -p /sbin/ldconfig
  62. %files
  63. %defattr(-,root,root)
  64. %doc CHANGELOG CREDITS KNOWN_BUGS LICENSE LICENSE_GPL LICENSE_LGPL README TODO doc/dmraid_design.txt
  65. %{_mandir}/man8/*
  66. /sbin/*
  67. %{_libdir}/libdmraid.so.*
  68. /var/lock/dmraid
  69. %files -n dmraid-devel
  70. %defattr(-,root,root)
  71. %dir %{_includedir}/dmraid
  72. %{_includedir}/dmraid/*
  73. %{_libdir}/libdmraid.so
  74. %changelog
  75. * Sat Mar 28 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.0.rc15-1
  76. - new upstream release
  77. * Mon Dec 03 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.0-0vl0.rc14.1
  78. - initial build for Vine Linux
  79. - disable selinux
  80. - require device-mapper 1.02.22
  81. * Wed Nov 21 2007 Ian Kent <ikent@redhat.com> - 1.0.0.rc14-6
  82. - Bug 379911: dmraid needs to generate UUIDs for lib device-mapper
  83. - add "DMRAID-" prefix to dmraid UUID string.
  84. * Wed Nov 14 2007 Ian Kent <ikent@redhat.com> - 1.0.0.rc14-5
  85. - Bug 379911: dmraid needs to generate UUIDs for lib device-mapper
  86. - Bug 379951: dmraid needs to activate device-mapper mirror resynchronization error handling
  87. * Mon Oct 22 2007 Ian Kent <ikent@redhat.com> - 1.0.0.rc14-4
  88. - Fix SEGV on "dmraid -r -E" (bz 236891).
  89. * Wed Apr 18 2007 Peter Jones <pjones@redhat.com> - 1.0.0.rc14-3
  90. - Fix jmicron name parsing (#219058)
  91. * Mon Feb 05 2007 Alasdair Kergon <agk@redhat.com> - 1.0.0.rc14-2
  92. - Add build dependency on new device-mapper-devel package.
  93. - Add dependency on device-mapper.
  94. - Add post and postun ldconfig.
  95. - Update BuildRoot and Summary.
  96. * Wed Nov 08 2006 Heinz Mauelshagen <heinzm@redhat.com> - 1.0.0.rc14-1
  97. - asr.c: fixed Adaptec HostRAID DDF1 metadata discovery (bz#211016)
  98. - ddf1_crc.c: added crc() routine to avoid linking to zlib alltogether,
  99. because Ubuntu had problems with this
  100. - dropped zlib build requirement
  101. * Thu Oct 26 2006 Heinz Mauelshagen <heinzm@redhat.com> - 1.0.0.rc14-bz211016-1
  102. - ddf1.c: get_size() fixed (bz#211016)
  103. - ddf1_lib.c: ddf1_cr_off_maxpds_helper() fixed (bz#211016)
  104. * Wed Oct 11 2006 Heinz Mauelshagen <heinzm@redhat.com> - 1.0.0.rc13-1
  105. - metadata.c: fixed bug returning wrang unified RAID type (bz#210085)
  106. - pdc.c: fixed magic number check
  107. * Sun Oct 01 2006 Jesse Keating <jkeating@redhat.com> - 1.0.0.rc12-7
  108. - rebuilt for unwind info generation, broken in gcc-4.1.1-21
  109. * Fri Sep 22 2006 Heinz Mauelshagen <heinzm@redhat.com> - 1.0.0.rc12-1
  110. - sil.c: quorate() OBO fix
  111. - activate.c: handler() OBO fix
  112. - added SNIA DDF1 support
  113. - added reload functionality to devmapper.c
  114. - added log_zero_sectors() to various metadata format handlers
  115. - sil.[ch]: added JBOD support
  116. * Fri Sep 1 2006 Peter Jones <pjones@redhat.com> - 1.0.0.rc11-4
  117. - Require kpartx, so initscripts doesn't have to if you're not using dmraid
  118. * Thu Aug 17 2006 Jesse Keating <jkeating@redhat.com> - 1.0.0.rc11-3
  119. - Change Release to follow guidelines, and add dist tag.
  120. * Thu Aug 17 2006 Peter Jones <pjones@redhat.com> - 1.0.0.rc11-FC6.3
  121. - No more excludearch for s390/s390x
  122. * Fri Jul 28 2006 Peter Jones <pjones@redhat.com> - 1.0.0.rc11-FC6.2
  123. - Fix bounds checking on hpt37x error log
  124. - Only build the .so, not the .a
  125. - Fix asc.c duplication in makefile rule
  126. * Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 1.0.0.rc11-FC6.1.1
  127. - rebuild
  128. * Fri Jul 7 2006 Heinz Mauelshagen <heinzm@redhat.com> - 1.0.0.rc11-FC6.1
  129. - rebuilt for FC6 with dos partition discovery fix (#197573)
  130. * Tue May 16 2006 Heinz Mauelshagen <heinzm@redhat.com> - 1.0.0.rc11-FC6
  131. - rebuilt for FC6 with better tag
  132. * Tue May 16 2006 Heinz Mauelshagen <heinzm@redhat.com> - 1.0.0.rc11-FC5_7.2
  133. - rebuilt for FC5
  134. * Tue May 16 2006 Heinz Mauelshagen <heinzm@redhat.com> - 1.0.0.rc11-FC5_7.1
  135. - jm.c: checksum() calculation
  136. - misc.c: support "%d" in p_fmt and fix segfault with wrong format identifier
  137. - nv.c: size fix in setup_rd()
  138. - activate.c:
  139. o striped devices could end on non-chunk boundaries
  140. o calc_region_size() calculated too small sizes causing large
  141. dirty logs in memory
  142. - isw.c: set raid5 type to left asymmetric
  143. - toollib.c: fixed 'No RAID...' message
  144. - support selection of RAID5 allocation algorithm in metadata format handlers
  145. - build
  146. * Mon Mar 27 2006 Milan Broz <mbroz@redhat.com> - 1.0.0.rc10-FC5_6.2
  147. - fixed /var/lock/dmraid in specfile (#168195)
  148. * Fri Feb 17 2006 Heinz Mauelshagen <heinzm@redhat.com> - 1.0.0.rc10-FC5_6
  149. - add doc/dmraid_design.txt to %doc (#181885)
  150. - add --enable-libselinux --enable-libsepol to configure
  151. - rebuilt
  152. * Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 1.0.0.rc9-FC5_5.2
  153. - bump again for double-long bug on ppc(64)
  154. * Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 1.0.0.rc9-FC5_5.1
  155. - rebuilt for new gcc4.1 snapshot and glibc changes
  156. * Sun Jan 22 2006 Peter Jones <pjones@redhat.com> 1.0.0.rc9-FC5_5
  157. - Add selinux build deps
  158. - Don't set owner during make install
  159. * Fri Dec 9 2005 Jesse Keating <jkeating@redhat.com> 1.0.0.rc9-FC5_4.1
  160. - rebuilt
  161. * Sun Dec 3 2005 Peter Jones <pjones@redhat.com> 1.0.0.rc9-FC5_4
  162. - rebuild for device-mapper-1.02.02-2
  163. * Fri Dec 2 2005 Peter Jones <pjones@redhat.com> 1.0.0.rc9-FC5_3
  164. - rebuild for device-mapper-1.02.02-1
  165. * Thu Nov 10 2005 Peter Jones <pjones@redhat.com> 1.0.0.rc9-FC5_2
  166. - update to 1.0.0.rc9
  167. - make "make install" do the right thing with the DSO
  168. - eliminate duplicate definitions in the headers
  169. - export more symbols in the DSO
  170. - add api calls to retrieve dm tables
  171. - fix DESTDIR for 'make install'
  172. - add api calls to identify degraded devices
  173. - remove several arch excludes
  174. * Sat Oct 15 2005 Florian La Roche <laroche@redhat.com>
  175. - add -lselinux -lsepol for new device-mapper deps
  176. * Fri May 20 2005 Heinz Mauelshagen <heinzm@redhat.com> 1.0.0.rc8-FC4_2
  177. - specfile change to build static and dynamic binray into one package
  178. - rebuilt
  179. * Thu May 19 2005 Heinz Mauelshagen <heinzm@redhat.com> 1.0.0.rc8-FC4_1
  180. - nv.c: fixed stripe size
  181. - sil.c: avoid incarnation_no in name creation, because the Windows
  182. driver changes it every time
  183. - added --ignorelocking option to avoid taking out locks in early boot
  184. where no read/write access to /var is given
  185. * Wed Mar 16 2005 Elliot Lee <sopwith@redhat.com>
  186. - rebuilt
  187. * Tue Mar 15 2005 Heinz Mauelshagen <heinzm@redhat.com> 1.0.0.rc6.1-4_FC4
  188. - VIA metadata format handler
  189. - added RAID10 to lsi metadata format handler
  190. - "dmraid -rD": file device size into {devicename}_{formatname}.size
  191. - "dmraid -tay": pretty print multi-line tables ala "dmsetup table"
  192. - "dmraid -l": display supported RAID levels + manual update
  193. - _sil_read() used LOG_NOTICE rather than LOG_INFO in order to
  194. avoid messages about valid metadata areas being displayed
  195. during "dmraid -vay".
  196. - isw, sil filed metadata offset on "-r -D" in sectors rather than in bytes.
  197. - isw needed dev_sort() to sort RAID devices in sets correctly.
  198. - pdc metadata format handler name creation. Lead to
  199. wrong RAID set grouping logic in some configurations.
  200. - pdc RAID1 size calculation fixed (rc6.1)
  201. - dos.c: partition table code fixes by Paul Moore
  202. - _free_dev_pointers(): fixed potential OOB error
  203. - hpt37x_check: deal with raid_disks = 1 in mirror sets
  204. - pdc_check: status & 0x80 doesn't always show a failed device;
  205. removed that check for now. Status definitions needed.
  206. - sil addition of RAID sets to global list of sets
  207. - sil spare device memory leak
  208. - group_set(): removal of RAID set in case of error
  209. - hpt37x: handle total_secs > device size
  210. - allow -p with -f
  211. - enhanced error message by checking target type against list of
  212. registered target types
  213. * Fri Jan 21 2005 Alasdair Kergon <agk@redhat.com> 1.0.0.rc5f-2
  214. - Rebuild to pick up new libdevmapper.
  215. * Fri Nov 26 2004 Heinz Mauelshagen <heinzm@redhat.com> 1.0.0.rc5f
  216. - specfile cleanup
  217. * Tue Aug 20 2004 Heinz Mauelshagen <heinzm@redhat.com> 1.0.0-rc4-pre1
  218. - Removed make flag after fixing make.tmpl.in
  219. * Tue Aug 18 2004 Heinz Mauelshagen <heinzm@redhat.com> 1.0.0-rc3
  220. - Added make flag to prevent make 3.80 from looping infinitely
  221. * Thu Jun 17 2004 Heinz Mauelshagen <heinzm@redhat.com> 1.0.0-pre1
  222. - Created