device-mapper-multipath-vl.spec 7.2 KB

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