device-mapper-multipath-vl.spec 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  1. Summary: Tools to manage multipath devices using device-mapper
  2. Name: device-mapper-multipath
  3. Version: 0.4.7
  4. Release: 12%{?_dist_release}
  5. License: GPL
  6. Group: System Environment/Base
  7. URL: http://christophe.varoqui.free.fr/
  8. Source0: multipath-tools-0.4.7.head2.tgz
  9. Patch100: multipath-tools-0.4.7.head2_without_selinux.patch
  10. Requires: kpartx = %{version}-%{release}
  11. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
  12. Requires(post): chkconfig
  13. Requires(preun): chkconfig
  14. Requires: device-mapper >= 1.02.02-2
  15. #BuildRequires: libsysfs-devel, device-mapper-devel
  16. BuildRequires: sysfsutils-devel, device-mapper-devel
  17. #BuildRequires: libselinux-devel, libsepol-devel
  18. BuildRequires: readline-devel, ncurses-devel
  19. %description
  20. %{name} provides tools to manage multipath devices by instructing the
  21. device-mapper multipath kernel module what to do.
  22. The tools are :
  23. * multipath : Scan the system for multipath devices and assemble them.
  24. * multipathd : Detects when paths fail and execs multipath to update things.
  25. %package -n kpartx
  26. Summary: Partition device manager for device-mapper devices
  27. Group: System Environment/Base
  28. Provides: kpartx = %{version}-%{release}
  29. %description -n kpartx
  30. kpartx manages partition creation and removal for device-mapper devices.
  31. %prep
  32. %setup -q -n multipath-tools-0.4.7.head2
  33. %patch100 -p1
  34. %build
  35. make DESTDIR=$RPM_BUILD_ROOT
  36. %install
  37. rm -rf $RPM_BUILD_ROOT
  38. make install DESTDIR=$RPM_BUILD_ROOT bindir=/sbin rcdir=/etc/rc.d/init.d
  39. %clean
  40. rm -rf $RPM_BUILD_ROOT
  41. %post
  42. /sbin/chkconfig --add multipathd
  43. %preun
  44. if [ "$1" = 0 ]; then
  45. /sbin/chkconfig --del multipathd
  46. fi
  47. %files
  48. %defattr(-,root,root,-)
  49. %doc AUTHOR COPYING README* FAQ Multipath-usage.txt
  50. %doc multipath.conf.annotated multipath.conf.defaults multipath.conf.synthetic
  51. /sbin/multipath
  52. /sbin/multipath.static
  53. /sbin/multipathd
  54. /sbin/mpath_prio_alua
  55. /sbin/mpath_prio_emc
  56. /sbin/mpath_prio_netapp
  57. /sbin/mpath_prio_hds_modular
  58. /sbin/mpath_prio_tpc
  59. /sbin/mpath_wait
  60. /sbin/mpath_ctl
  61. /etc/udev/rules.d/40-multipath.rules
  62. %{_mandir}/man8/mpath_prio_alua.8.gz
  63. %{_mandir}/man8/multipath.8.gz
  64. %{_mandir}/man8/multipathd.8.gz
  65. %config /etc/rc.d/init.d/multipathd
  66. %config(noreplace) /etc/multipath.conf
  67. %dir /var/lib/multipath
  68. %files -n kpartx
  69. %defattr(-,root,root,-)
  70. /sbin/kpartx
  71. /sbin/kpartx.static
  72. %{_mandir}/man8/kpartx.8.gz
  73. %changelog
  74. * Sun Sep 07 2008 Shu KONNO <owa@bg.wakwak.com> 0.4.7-12vl5
  75. - applied new versioning policy
  76. * Thu Feb 14 2008 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.4.7-11vl1
  77. - initial build for VineSeed
  78. - add Patch100 to disable linking to libselinux and libsepol
  79. * Mon Feb 05 2007 Alasdair Kergon <agk@redhat.com> - 0.4.7-11.fc7
  80. - Add build dependency on new device-mapper-devel package.
  81. - Add dependency on device-mapper.
  82. * Wed Jan 31 2007 Benjamin Marzinksi <bmarzins@redhat.com> - 0.4.7-10.fc7
  83. - Update BuildRoot and PreReq lines.
  84. * Mon Jan 15 2007 Benjamin Marzinksi <bmarzins@redhat.com> - 0.4.7-9.fc7
  85. - Fixed spec file.
  86. * Mon Jan 15 2007 Benjamin Marzinski <bmarzins@redhat.com> - 0.4.7-8.fc7
  87. - Update to latest code (t0_4_7_head2)
  88. * Wed Dec 13 2006 Benjamin Marzinski <bmarzins@redhat.com> - 0.4.7-7.fc7
  89. - Update to latest code (t0_4_7_head1)
  90. * Thu Sep 7 2006 Peter Jones <pjones@redhat.com> - 0.4.7-5
  91. - Fix kpartx to handle with drives >2TB correctly.
  92. * Thu Aug 31 2006 Peter Jones <pjones@redhat.com> - 0.4.7-4.1
  93. - Split kpartx out into its own package so dmraid can use it without
  94. installing multipathd
  95. - Fix a segfault in kpartx
  96. * Mon Jul 17 2006 Benjamin Marzinski <bmarzins@redhat.com> 0.4.7-4.0
  97. - Updated to latest source. Fixes bug in default multipath.conf
  98. * Wed Jul 12 2006 Benjamin Marzinski <bmarzins@redhat.com> 0.4.7-3.1
  99. - Added ncurses-devel to BuildRequires
  100. * Wed Jul 12 2006 Benjamin Marzinski <bmarzins@redhat.com> 0.4.7-3.0
  101. - Updated to latest source. deals with change in libsysfs API
  102. * Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 0.4.7-2.2.1
  103. - rebuild
  104. * Mon Jul 10 2006 Benjamin Marzinski <bmarzins@redhat.com> 0.4.7-2.2
  105. - fix tagging issue.
  106. * Mon Jul 10 2006 Benjamin Marzinski <bmarzins@redhat.com> 0.4.7-2.1
  107. - changed BuildRequires from sysfsutils-devel to libsysfs-devel
  108. * Wed Jun 28 2006 Benjamin Marzinski <bmarzins@redhat.com> 0.4.7-2.0
  109. - Updated to latest upstream source, fixes kpartx udev rule issue
  110. * Mon Jun 06 2006 Benjamin Marzinski <bmarzins@redhat.com> 0.4.7-1.0
  111. - Updated to Christophe's latest source
  112. * Mon May 22 2006 Alasdair Kergon <agk@redhat.com> - 0.4.5-16.0
  113. - Newer upstream source (t0_4_5_post59).
  114. * Mon May 22 2006 Alasdair Kergon <agk@redhat.com> - 0.4.5-12.3
  115. - BuildRequires: libsepol-devel, readline-devel
  116. * Mon Feb 27 2006 Benjamin Marzinski <bmarzins@redhat.com> 0.4.5-12.2
  117. - Prereq: chkconfig
  118. * Mon Feb 20 2006 Karsten Hopp <karsten@redhat.de> 0.4.5-12.1
  119. - BuildRequires: libselinux-devel
  120. * Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 0.4.5-12.0.1
  121. - bump again for double-long bug on ppc(64)
  122. * Tue Feb 07 2006 Benjamin Marzinski <bmarzins@redhat.com> -0.4.5-12.0
  123. - Updated to latest upstream source (t0_4_5_post56)
  124. * Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 0.4.5-9.1.1
  125. - rebuilt for new gcc4.1 snapshot and glibc changes
  126. * Mon Dec 19 2005 Benjamin Marzinski <bmarzins@redhat.com> - 0.4.5-9.1
  127. - added patch for fedora changes
  128. * Fri Dec 16 2005 Benjamin Marzinski <bmarzins@redhat.com> - 0.4.5-9.0
  129. - Updated to latest upstream source (t)_4_5_post52)
  130. * Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
  131. - rebuilt
  132. * Sun Dec 4 2005 Peter Jones <pjones@redhat.com> - 0.4.4-2.6
  133. - rebuild for newer libs
  134. * Tue Nov 15 2005 Peter Jones <pjones@redhat.com> - 0.4.4-2.5
  135. - unsplit kpartx. parted knows how to do this now, so we don't
  136. need this in a separate package.
  137. * Tue Nov 15 2005 Peter Jones <pjones@redhat.com> - 0.4.4-2.4
  138. - split kpartx out into its own package
  139. * Fri May 06 2005 Bill Nottingham <notting@redhat.com> - 0.4.4-2.3
  140. - Fix last fix.
  141. * Thu May 05 2005 Alasdair Kergon <agk@redhat.com> - 0.4.4-2.2
  142. - Fix last fix.
  143. * Wed May 04 2005 Alasdair Kergon <agk@redhat.com> - 0.4.4-2.1
  144. - By default, disable the multipathd service.
  145. * Tue Apr 19 2005 Alasdair Kergon <agk@redhat.com> - 0.4.4-2.0
  146. - Fix core dump from last build.
  147. * Tue Apr 19 2005 Alasdair Kergon <agk@redhat.com> - 0.4.4-1.0
  148. - Move cache file into /var/cache/multipath.
  149. * Fri Apr 08 2005 Alasdair Kergon <agk@redhat.com> - 0.4.4-0.pre8.1
  150. - Remove pp_balance_units.
  151. * Mon Apr 04 2005 Alasdair Kergon <agk@redhat.com> - 0.4.4-0.pre8.0
  152. - Incorporate numerous upstream fixes.
  153. - Update init script to distribution standards.
  154. * Tue Mar 01 2005 Alasdair Kergon <agk@redhat.com> - 0.4.2-1.0
  155. - Initial import based on Christophe Varoqui's spec file.