|
@@ -1,22 +1,26 @@
|
|
|
Summary: Tools to manage multipath devices using device-mapper
|
|
|
Name: device-mapper-multipath
|
|
|
-Version: 0.4.7
|
|
|
-Release: 12%{?_dist_release}
|
|
|
+Version: 0.4.9
|
|
|
+Release: 1%{?_dist_release}
|
|
|
License: GPL
|
|
|
Group: System Environment/Base
|
|
|
URL: http://christophe.varoqui.free.fr/
|
|
|
-Source0: multipath-tools-0.4.7.head2.tgz
|
|
|
-Patch100: multipath-tools-0.4.7.head2_without_selinux.patch
|
|
|
+Source0: multipath-tools-%{version}.tar.bz2
|
|
|
+Source1: multipath.conf
|
|
|
+
|
|
|
Requires: kpartx = %{version}-%{release}
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
Requires(post): chkconfig
|
|
|
Requires(preun): chkconfig
|
|
|
Requires: device-mapper >= 1.02.02-2
|
|
|
-#BuildRequires: libsysfs-devel, device-mapper-devel
|
|
|
BuildRequires: sysfsutils-devel, device-mapper-devel
|
|
|
#BuildRequires: libselinux-devel, libsepol-devel
|
|
|
BuildRequires: readline-devel, ncurses-devel
|
|
|
+BuildRequires: libaio-devel
|
|
|
|
|
|
+Vendor: Project Vine
|
|
|
+Distribution: Vine Linux
|
|
|
+Packager: daisuke
|
|
|
|
|
|
%description
|
|
|
%{name} provides tools to manage multipath devices by instructing the
|
|
@@ -37,65 +41,85 @@ kpartx manages partition creation and removal for device-mapper devices.
|
|
|
|
|
|
|
|
|
%prep
|
|
|
-%setup -q -n multipath-tools-0.4.7.head2
|
|
|
-
|
|
|
-%patch100 -p1
|
|
|
+%setup -q -c
|
|
|
|
|
|
|
|
|
%build
|
|
|
-make DESTDIR=$RPM_BUILD_ROOT
|
|
|
-
|
|
|
+make LIB=%{_lib}
|
|
|
|
|
|
%install
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
-make install DESTDIR=$RPM_BUILD_ROOT bindir=/sbin rcdir=/etc/rc.d/init.d
|
|
|
+make install \
|
|
|
+ DESTDIR=$RPM_BUILD_ROOT \
|
|
|
+ bindir=%{_syssbindir} \
|
|
|
+ syslibdir=/%{_lib} \
|
|
|
+ libdir=%{_libdir}/multipath \
|
|
|
+ rcdir=%{_initrddir}
|
|
|
|
|
|
+install -d %{buildroot}/etc/multipath
|
|
|
+install -m644 %{SOURCE1} %{buildroot}/etc/multipath.conf
|
|
|
+
|
|
|
+install -m755 multipathd/multipathd.init.redhat %{buildroot}%{_initrddir}/multipathd
|
|
|
|
|
|
%clean
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
%post
|
|
|
+/sbin/ldconfig
|
|
|
/sbin/chkconfig --add multipathd
|
|
|
-
|
|
|
+if [ "$1" -gt "1" -a ! -e /etc/multipath/bindings -a \
|
|
|
+ -f /var/lib/multipath/bindings ]; then
|
|
|
+ mv /var/lib/multipath/bindings /etc/multipath/bindings
|
|
|
+ ln -s /etc/multipath/bindings /var/lib/multipath/bindings
|
|
|
+fi
|
|
|
|
|
|
%preun
|
|
|
if [ "$1" = 0 ]; then
|
|
|
+ /sbin/service multipathd stop /dev/null 2>&1
|
|
|
/sbin/chkconfig --del multipathd
|
|
|
fi
|
|
|
|
|
|
|
|
|
+%postun
|
|
|
+/sbin/ldconfig
|
|
|
+if [ "$1" -ge "1" ]; then
|
|
|
+ /sbin/service multipathd condrestart >/dev/null 2>&1 || :
|
|
|
+fi
|
|
|
+
|
|
|
+
|
|
|
%files
|
|
|
%defattr(-,root,root,-)
|
|
|
-%doc AUTHOR COPYING README* FAQ Multipath-usage.txt
|
|
|
-%doc multipath.conf.annotated multipath.conf.defaults multipath.conf.synthetic
|
|
|
-/sbin/multipath
|
|
|
-/sbin/multipath.static
|
|
|
-/sbin/multipathd
|
|
|
-/sbin/mpath_prio_alua
|
|
|
-/sbin/mpath_prio_emc
|
|
|
-/sbin/mpath_prio_netapp
|
|
|
-/sbin/mpath_prio_hds_modular
|
|
|
-/sbin/mpath_prio_tpc
|
|
|
-/sbin/mpath_wait
|
|
|
-/sbin/mpath_ctl
|
|
|
-/etc/udev/rules.d/40-multipath.rules
|
|
|
-%{_mandir}/man8/mpath_prio_alua.8.gz
|
|
|
+%doc AUTHOR COPYING README* FAQ
|
|
|
+%doc multipath.conf.annotated multipath.conf.defaults
|
|
|
+%doc multipath.conf.synthetic
|
|
|
+%{_syssbindir}/multipath
|
|
|
+%{_syssbindir}/multipathd
|
|
|
+%config /etc/udev/rules.d/multipath.rules
|
|
|
%{_mandir}/man8/multipath.8.gz
|
|
|
%{_mandir}/man8/multipathd.8.gz
|
|
|
+%{_mandir}/man5/multipath.conf.5.gz
|
|
|
%config /etc/rc.d/init.d/multipathd
|
|
|
%config(noreplace) /etc/multipath.conf
|
|
|
-%dir /var/lib/multipath
|
|
|
-
|
|
|
+%dir /etc/multipath
|
|
|
+/%{_lib}/libmultipath.so*
|
|
|
+%dir %{_libdir}/multipath
|
|
|
+%{_libdir}/multipath/*
|
|
|
|
|
|
%files -n kpartx
|
|
|
%defattr(-,root,root,-)
|
|
|
-/sbin/kpartx
|
|
|
-/sbin/kpartx.static
|
|
|
+%{_syssbindir}/kpartx
|
|
|
+/lib/udev/kpartx_id
|
|
|
+%config /etc/udev/rules.d/kpartx.rules
|
|
|
%{_mandir}/man8/kpartx.8.gz
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
+* Wed Apr 20 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 0.4.9-13
|
|
|
+- update to 0.4.9
|
|
|
+- drop static version
|
|
|
+- add BR: libaio-devel
|
|
|
+
|
|
|
* Sun Sep 07 2008 Shu KONNO <owa@bg.wakwak.com> 0.4.7-12vl5
|
|
|
- applied new versioning policy
|
|
|
|