[521] | 1 | Summary: Tools to manage multipath devices using device-mapper |
---|
[9463] | 2 | Summary(ja): Device-mapper を使用してマルチパスデバイスを管理するためのツール集 |
---|
[521] | 3 | Name: device-mapper-multipath |
---|
[3589] | 4 | Version: 0.4.9 |
---|
[9463] | 5 | Release: 5%{?_dist_release} |
---|
| 6 | License: GPLv2+ |
---|
[521] | 7 | Group: System Environment/Base |
---|
| 8 | URL: http://christophe.varoqui.free.fr/ |
---|
[3589] | 9 | Source0: multipath-tools-%{version}.tar.bz2 |
---|
| 10 | Source1: multipath.conf |
---|
| 11 | |
---|
[3839] | 12 | # patch that should go upstream |
---|
| 13 | Patch1: 0001-for-upstream-add-tpg_pref-prioritizer.patch |
---|
| 14 | |
---|
| 15 | # RH patches |
---|
| 16 | Patch1007: 0007-RH-do-not-remove.patch |
---|
| 17 | Patch1008: 0008-RH-Make-build-system-RH-Fedora-friendly.patch |
---|
| 18 | Patch1009: 0009-RH-multipathd-blacklist-all-by-default.patch |
---|
| 19 | Patch1010: 0010-RH-multipath-rules-udev-changes.patch |
---|
| 20 | Patch1014: 0014-RH-add-hp_tur-checker.patch |
---|
| 21 | Patch1017: 0017-RHBZ-554592-man-page-note.patch |
---|
| 22 | Patch1018: 0018-RHBZ-554596-SUN-6540-config.patch |
---|
| 23 | Patch1019: 0019-RHBZ-554598-fix-multipath-locking.patch |
---|
| 24 | Patch1020: 0020-RHBZ-554605-fix-manual-failover.patch |
---|
| 25 | Patch1021: 0021-RHBZ-548874-add-find-multipaths-2.patch |
---|
| 26 | Patch1022: 0022-RHBZ-557845-RHEL5-style-partitions-2.patch |
---|
| 27 | Patch1023: 0023-RHBZ-557810-emc-invista-config.patch |
---|
| 28 | Patch1024: 0024-RHBZ-565933-checker-timeout-2.patch |
---|
| 29 | |
---|
[521] | 30 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) |
---|
| 31 | Requires(post): chkconfig |
---|
| 32 | Requires(preun): chkconfig |
---|
[3839] | 33 | Requires: kpartx = %{version}-%{release} |
---|
| 34 | Requires: device-mapper >= 1.02.39 |
---|
[9463] | 35 | BuildRequires: libsysfs-devel |
---|
| 36 | BuildRequires: device-mapper-devel |
---|
[521] | 37 | #BuildRequires: libselinux-devel, libsepol-devel |
---|
| 38 | BuildRequires: readline-devel, ncurses-devel |
---|
[3589] | 39 | BuildRequires: libaio-devel |
---|
[521] | 40 | |
---|
[3589] | 41 | Vendor: Project Vine |
---|
| 42 | Distribution: Vine Linux |
---|
| 43 | Packager: daisuke |
---|
[521] | 44 | |
---|
| 45 | %description |
---|
| 46 | %{name} provides tools to manage multipath devices by instructing the |
---|
| 47 | device-mapper multipath kernel module what to do. |
---|
| 48 | The tools are : |
---|
| 49 | * multipath : Scan the system for multipath devices and assemble them. |
---|
| 50 | * multipathd : Detects when paths fail and execs multipath to update things. |
---|
| 51 | |
---|
| 52 | |
---|
| 53 | %package -n kpartx |
---|
| 54 | Summary: Partition device manager for device-mapper devices |
---|
[9463] | 55 | Summary(ja): Device-mapper デバイス用のパーティションデバイスマネージャー |
---|
[521] | 56 | Group: System Environment/Base |
---|
| 57 | Provides: kpartx = %{version}-%{release} |
---|
| 58 | |
---|
| 59 | %description -n kpartx |
---|
| 60 | kpartx manages partition creation and removal for device-mapper devices. |
---|
| 61 | |
---|
| 62 | |
---|
| 63 | %prep |
---|
[3589] | 64 | %setup -q -c |
---|
[3839] | 65 | %patch1 -p1 |
---|
| 66 | %patch1007 -p1 |
---|
| 67 | %patch1008 -p1 |
---|
| 68 | %patch1009 -p1 |
---|
| 69 | %patch1010 -p1 |
---|
| 70 | %patch1014 -p1 |
---|
| 71 | %patch1017 -p1 |
---|
| 72 | %patch1018 -p1 |
---|
| 73 | %patch1019 -p1 |
---|
| 74 | %patch1020 -p1 |
---|
| 75 | %patch1021 -p1 |
---|
| 76 | %patch1022 -p1 |
---|
| 77 | %patch1023 -p1 |
---|
| 78 | %patch1024 -p1 |
---|
[521] | 79 | |
---|
| 80 | |
---|
| 81 | %build |
---|
[3589] | 82 | make LIB=%{_lib} |
---|
[521] | 83 | |
---|
| 84 | %install |
---|
| 85 | rm -rf $RPM_BUILD_ROOT |
---|
[3589] | 86 | make install \ |
---|
| 87 | DESTDIR=$RPM_BUILD_ROOT \ |
---|
| 88 | bindir=%{_syssbindir} \ |
---|
| 89 | syslibdir=/%{_lib} \ |
---|
[3734] | 90 | libdir=/%{_lib}/multipath \ |
---|
[3589] | 91 | rcdir=%{_initrddir} |
---|
[521] | 92 | |
---|
[3589] | 93 | install -d %{buildroot}/etc/multipath |
---|
| 94 | install -m644 %{SOURCE1} %{buildroot}/etc/multipath.conf |
---|
[521] | 95 | |
---|
[3589] | 96 | install -m755 multipathd/multipathd.init.redhat %{buildroot}%{_initrddir}/multipathd |
---|
| 97 | |
---|
[521] | 98 | %clean |
---|
| 99 | rm -rf $RPM_BUILD_ROOT |
---|
| 100 | |
---|
| 101 | |
---|
| 102 | %post |
---|
[3589] | 103 | /sbin/ldconfig |
---|
[521] | 104 | /sbin/chkconfig --add multipathd |
---|
[3589] | 105 | if [ "$1" -gt "1" -a ! -e /etc/multipath/bindings -a \ |
---|
| 106 | -f /var/lib/multipath/bindings ]; then |
---|
| 107 | mv /var/lib/multipath/bindings /etc/multipath/bindings |
---|
| 108 | ln -s /etc/multipath/bindings /var/lib/multipath/bindings |
---|
| 109 | fi |
---|
[521] | 110 | |
---|
| 111 | %preun |
---|
| 112 | if [ "$1" = 0 ]; then |
---|
[3589] | 113 | /sbin/service multipathd stop /dev/null 2>&1 |
---|
[521] | 114 | /sbin/chkconfig --del multipathd |
---|
| 115 | fi |
---|
| 116 | |
---|
| 117 | |
---|
[3589] | 118 | %postun |
---|
| 119 | /sbin/ldconfig |
---|
| 120 | if [ "$1" -ge "1" ]; then |
---|
| 121 | /sbin/service multipathd condrestart >/dev/null 2>&1 || : |
---|
| 122 | fi |
---|
| 123 | |
---|
| 124 | |
---|
[521] | 125 | %files |
---|
| 126 | %defattr(-,root,root,-) |
---|
[3589] | 127 | %doc AUTHOR COPYING README* FAQ |
---|
| 128 | %doc multipath.conf.annotated multipath.conf.defaults |
---|
| 129 | %doc multipath.conf.synthetic |
---|
| 130 | %{_syssbindir}/multipath |
---|
| 131 | %{_syssbindir}/multipathd |
---|
[9256] | 132 | %{_syssbindir}/mpathconf |
---|
[3839] | 133 | %config /lib/udev/rules.d/40-multipath.rules |
---|
[521] | 134 | %{_mandir}/man8/multipath.8.gz |
---|
| 135 | %{_mandir}/man8/multipathd.8.gz |
---|
[3589] | 136 | %{_mandir}/man5/multipath.conf.5.gz |
---|
[521] | 137 | %config /etc/rc.d/init.d/multipathd |
---|
| 138 | %config(noreplace) /etc/multipath.conf |
---|
[3589] | 139 | %dir /etc/multipath |
---|
| 140 | /%{_lib}/libmultipath.so* |
---|
[3734] | 141 | %dir /%{_lib}/multipath |
---|
| 142 | /%{_lib}/multipath/* |
---|
[521] | 143 | |
---|
| 144 | %files -n kpartx |
---|
| 145 | %defattr(-,root,root,-) |
---|
[3589] | 146 | %{_syssbindir}/kpartx |
---|
[521] | 147 | %{_mandir}/man8/kpartx.8.gz |
---|
| 148 | |
---|
| 149 | |
---|
| 150 | %changelog |
---|
[9463] | 151 | * Sat Mar 21 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 0.4.9-5 |
---|
| 152 | - rebuilt with readline 6.3 |
---|
| 153 | - changed BuildRequires: libsysfs-devel instead of sysfsutils-devel |
---|
| 154 | - added Japanese summary |
---|
| 155 | |
---|
[9256] | 156 | * Mon Jan 12 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.4.9-4 |
---|
| 157 | - rebuild with VineSeed environment |
---|
| 158 | |
---|
[3839] | 159 | * Wed May 11 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 0.4.9-3 |
---|
| 160 | - import patches from RH package |
---|
| 161 | |
---|
[3734] | 162 | * Wed Apr 20 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 0.4.9-2 |
---|
| 163 | - install multipath libraries to %%{_lib}/multipath |
---|
| 164 | |
---|
| 165 | * Wed Apr 20 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 0.4.9-1 |
---|
[3589] | 166 | - update to 0.4.9 |
---|
| 167 | - drop static version |
---|
| 168 | - add BR: libaio-devel |
---|
| 169 | |
---|
[521] | 170 | * Sun Sep 07 2008 Shu KONNO <owa@bg.wakwak.com> 0.4.7-12vl5 |
---|
| 171 | - applied new versioning policy |
---|
| 172 | |
---|
| 173 | * Thu Feb 14 2008 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.4.7-11vl1 |
---|
| 174 | - initial build for VineSeed |
---|
| 175 | - add Patch100 to disable linking to libselinux and libsepol |
---|
| 176 | |
---|
| 177 | * Mon Feb 05 2007 Alasdair Kergon <agk@redhat.com> - 0.4.7-11.fc7 |
---|
| 178 | - Add build dependency on new device-mapper-devel package. |
---|
| 179 | - Add dependency on device-mapper. |
---|
| 180 | |
---|
| 181 | * Wed Jan 31 2007 Benjamin Marzinksi <bmarzins@redhat.com> - 0.4.7-10.fc7 |
---|
| 182 | - Update BuildRoot and PreReq lines. |
---|
| 183 | |
---|
| 184 | * Mon Jan 15 2007 Benjamin Marzinksi <bmarzins@redhat.com> - 0.4.7-9.fc7 |
---|
| 185 | - Fixed spec file. |
---|
| 186 | |
---|
| 187 | * Mon Jan 15 2007 Benjamin Marzinski <bmarzins@redhat.com> - 0.4.7-8.fc7 |
---|
| 188 | - Update to latest code (t0_4_7_head2) |
---|
| 189 | |
---|
| 190 | * Wed Dec 13 2006 Benjamin Marzinski <bmarzins@redhat.com> - 0.4.7-7.fc7 |
---|
| 191 | - Update to latest code (t0_4_7_head1) |
---|
| 192 | |
---|
| 193 | * Thu Sep 7 2006 Peter Jones <pjones@redhat.com> - 0.4.7-5 |
---|
| 194 | - Fix kpartx to handle with drives >2TB correctly. |
---|
| 195 | |
---|
| 196 | * Thu Aug 31 2006 Peter Jones <pjones@redhat.com> - 0.4.7-4.1 |
---|
| 197 | - Split kpartx out into its own package so dmraid can use it without |
---|
| 198 | installing multipathd |
---|
| 199 | - Fix a segfault in kpartx |
---|
| 200 | |
---|
| 201 | * Mon Jul 17 2006 Benjamin Marzinski <bmarzins@redhat.com> 0.4.7-4.0 |
---|
| 202 | - Updated to latest source. Fixes bug in default multipath.conf |
---|
| 203 | |
---|
| 204 | * Wed Jul 12 2006 Benjamin Marzinski <bmarzins@redhat.com> 0.4.7-3.1 |
---|
| 205 | - Added ncurses-devel to BuildRequires |
---|
| 206 | |
---|
| 207 | * Wed Jul 12 2006 Benjamin Marzinski <bmarzins@redhat.com> 0.4.7-3.0 |
---|
| 208 | - Updated to latest source. deals with change in libsysfs API |
---|
| 209 | |
---|
| 210 | * Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 0.4.7-2.2.1 |
---|
| 211 | - rebuild |
---|
| 212 | |
---|
| 213 | * Mon Jul 10 2006 Benjamin Marzinski <bmarzins@redhat.com> 0.4.7-2.2 |
---|
| 214 | - fix tagging issue. |
---|
| 215 | |
---|
| 216 | * Mon Jul 10 2006 Benjamin Marzinski <bmarzins@redhat.com> 0.4.7-2.1 |
---|
| 217 | - changed BuildRequires from sysfsutils-devel to libsysfs-devel |
---|
| 218 | |
---|
| 219 | * Wed Jun 28 2006 Benjamin Marzinski <bmarzins@redhat.com> 0.4.7-2.0 |
---|
| 220 | - Updated to latest upstream source, fixes kpartx udev rule issue |
---|
| 221 | |
---|
[9256] | 222 | * Tue Jun 06 2006 Benjamin Marzinski <bmarzins@redhat.com> 0.4.7-1.0 |
---|
[521] | 223 | - Updated to Christophe's latest source |
---|
| 224 | |
---|
| 225 | * Mon May 22 2006 Alasdair Kergon <agk@redhat.com> - 0.4.5-16.0 |
---|
| 226 | - Newer upstream source (t0_4_5_post59). |
---|
| 227 | |
---|
| 228 | * Mon May 22 2006 Alasdair Kergon <agk@redhat.com> - 0.4.5-12.3 |
---|
| 229 | - BuildRequires: libsepol-devel, readline-devel |
---|
| 230 | |
---|
| 231 | * Mon Feb 27 2006 Benjamin Marzinski <bmarzins@redhat.com> 0.4.5-12.2 |
---|
| 232 | - Prereq: chkconfig |
---|
| 233 | |
---|
| 234 | * Mon Feb 20 2006 Karsten Hopp <karsten@redhat.de> 0.4.5-12.1 |
---|
| 235 | - BuildRequires: libselinux-devel |
---|
| 236 | |
---|
| 237 | * Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 0.4.5-12.0.1 |
---|
| 238 | - bump again for double-long bug on ppc(64) |
---|
| 239 | |
---|
| 240 | * Tue Feb 07 2006 Benjamin Marzinski <bmarzins@redhat.com> -0.4.5-12.0 |
---|
| 241 | - Updated to latest upstream source (t0_4_5_post56) |
---|
| 242 | |
---|
| 243 | * Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 0.4.5-9.1.1 |
---|
| 244 | - rebuilt for new gcc4.1 snapshot and glibc changes |
---|
| 245 | |
---|
| 246 | * Mon Dec 19 2005 Benjamin Marzinski <bmarzins@redhat.com> - 0.4.5-9.1 |
---|
| 247 | - added patch for fedora changes |
---|
| 248 | |
---|
| 249 | * Fri Dec 16 2005 Benjamin Marzinski <bmarzins@redhat.com> - 0.4.5-9.0 |
---|
| 250 | - Updated to latest upstream source (t)_4_5_post52) |
---|
| 251 | |
---|
| 252 | * Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com> |
---|
| 253 | - rebuilt |
---|
| 254 | |
---|
| 255 | * Sun Dec 4 2005 Peter Jones <pjones@redhat.com> - 0.4.4-2.6 |
---|
| 256 | - rebuild for newer libs |
---|
| 257 | |
---|
| 258 | * Tue Nov 15 2005 Peter Jones <pjones@redhat.com> - 0.4.4-2.5 |
---|
| 259 | - unsplit kpartx. parted knows how to do this now, so we don't |
---|
| 260 | need this in a separate package. |
---|
| 261 | |
---|
| 262 | * Tue Nov 15 2005 Peter Jones <pjones@redhat.com> - 0.4.4-2.4 |
---|
| 263 | - split kpartx out into its own package |
---|
| 264 | |
---|
| 265 | * Fri May 06 2005 Bill Nottingham <notting@redhat.com> - 0.4.4-2.3 |
---|
| 266 | - Fix last fix. |
---|
| 267 | |
---|
| 268 | * Thu May 05 2005 Alasdair Kergon <agk@redhat.com> - 0.4.4-2.2 |
---|
| 269 | - Fix last fix. |
---|
| 270 | |
---|
| 271 | * Wed May 04 2005 Alasdair Kergon <agk@redhat.com> - 0.4.4-2.1 |
---|
| 272 | - By default, disable the multipathd service. |
---|
| 273 | |
---|
| 274 | * Tue Apr 19 2005 Alasdair Kergon <agk@redhat.com> - 0.4.4-2.0 |
---|
| 275 | - Fix core dump from last build. |
---|
| 276 | |
---|
| 277 | * Tue Apr 19 2005 Alasdair Kergon <agk@redhat.com> - 0.4.4-1.0 |
---|
| 278 | - Move cache file into /var/cache/multipath. |
---|
| 279 | |
---|
| 280 | * Fri Apr 08 2005 Alasdair Kergon <agk@redhat.com> - 0.4.4-0.pre8.1 |
---|
| 281 | - Remove pp_balance_units. |
---|
| 282 | |
---|
| 283 | * Mon Apr 04 2005 Alasdair Kergon <agk@redhat.com> - 0.4.4-0.pre8.0 |
---|
| 284 | - Incorporate numerous upstream fixes. |
---|
| 285 | - Update init script to distribution standards. |
---|
| 286 | |
---|
| 287 | * Tue Mar 01 2005 Alasdair Kergon <agk@redhat.com> - 0.4.2-1.0 |
---|
| 288 | - Initial import based on Christophe Varoqui's spec file. |
---|