|
@@ -1,31 +1,49 @@
|
|
Summary: Tools to manage multipath devices using device-mapper
|
|
Summary: Tools to manage multipath devices using device-mapper
|
|
Summary(ja): Device-mapper を使用してマルチパスデバイスを管理するためのツール集
|
|
Summary(ja): Device-mapper を使用してマルチパスデバイスを管理するためのツール集
|
|
Name: device-mapper-multipath
|
|
Name: device-mapper-multipath
|
|
-Version: 0.4.9
|
|
|
|
-Release: 5%{?_dist_release}
|
|
|
|
-License: GPLv2+
|
|
|
|
|
|
+Version: 0.8.2
|
|
|
|
+Release: 1%{?_dist_release}
|
|
Group: System Environment/Base
|
|
Group: System Environment/Base
|
|
|
|
+License: GPLv2+
|
|
URL: http://christophe.varoqui.free.fr/
|
|
URL: http://christophe.varoqui.free.fr/
|
|
-Source0: multipath-tools-%{version}.tar.bz2
|
|
|
|
|
|
+# The source for this package was pulled from upstream's git repo. Use the
|
|
|
|
+# following command to generate the tarball
|
|
|
|
+# curl "https://git.opensvc.com/?p=multipath-tools/.git;a=snapshot;h=refs/tags/0.8.2;sf=tgz" -o multipath-tools-0.8.2.tgz
|
|
|
|
+Source0: multipath-tools-%{version}.tgz
|
|
Source1: multipath.conf
|
|
Source1: multipath.conf
|
|
-
|
|
|
|
-# patch that should go upstream
|
|
|
|
-Patch1: 0001-for-upstream-add-tpg_pref-prioritizer.patch
|
|
|
|
-
|
|
|
|
-# RH patches
|
|
|
|
-Patch1007: 0007-RH-do-not-remove.patch
|
|
|
|
-Patch1008: 0008-RH-Make-build-system-RH-Fedora-friendly.patch
|
|
|
|
-Patch1009: 0009-RH-multipathd-blacklist-all-by-default.patch
|
|
|
|
-Patch1010: 0010-RH-multipath-rules-udev-changes.patch
|
|
|
|
-Patch1014: 0014-RH-add-hp_tur-checker.patch
|
|
|
|
-Patch1017: 0017-RHBZ-554592-man-page-note.patch
|
|
|
|
-Patch1018: 0018-RHBZ-554596-SUN-6540-config.patch
|
|
|
|
-Patch1019: 0019-RHBZ-554598-fix-multipath-locking.patch
|
|
|
|
-Patch1020: 0020-RHBZ-554605-fix-manual-failover.patch
|
|
|
|
-Patch1021: 0021-RHBZ-548874-add-find-multipaths-2.patch
|
|
|
|
-Patch1022: 0022-RHBZ-557845-RHEL5-style-partitions-2.patch
|
|
|
|
-Patch1023: 0023-RHBZ-557810-emc-invista-config.patch
|
|
|
|
-Patch1024: 0024-RHBZ-565933-checker-timeout-2.patch
|
|
|
|
|
|
+Source2: multipathd.init
|
|
|
|
+
|
|
|
|
+Patch0001: 0001-libmultipath-make-vector_foreach_slot_backwards-work.patch
|
|
|
|
+Patch0002: 0002-libmultipath-add-marginal-paths-and-groups-infrastru.patch
|
|
|
|
+Patch0003: 0003-tests-add-path-grouping-policy-unit-tests.patch
|
|
|
|
+Patch0004: 0004-libmultipath-add-wrapper-function-around-pgpolicyfn.patch
|
|
|
|
+Patch0005: 0005-tests-update-pgpolicy-tests-to-work-with-group_paths.patch
|
|
|
|
+Patch0006: 0006-libmultipath-fix-double-free-in-pgpolicyfn-error-pat.patch
|
|
|
|
+Patch0007: 0007-libmultipath-consolidate-group_by_-functions.patch
|
|
|
|
+Patch0008: 0008-libmultipath-make-pgpolicyfn-take-a-paths-vector.patch
|
|
|
|
+Patch0009: 0009-libmultipath-make-group_paths-handle-marginal-paths.patch
|
|
|
|
+Patch0010: 0010-tests-add-tests-for-grouping-marginal-paths.patch
|
|
|
|
+Patch0011: 0011-libmultipath-add-marginal_pathgroups-config-option.patch
|
|
|
|
+Patch0012: 0012-libmutipath-deprecate-delay_-_checks.patch
|
|
|
|
+Patch0013: 0013-multipathd-use-marginal_pathgroups.patch
|
|
|
|
+Patch0014: 0014-multipath-update-man-pages.patch
|
|
|
|
+Patch0015: 0015-multipath.conf-add-enable_foreign-parameter.patch
|
|
|
|
+Patch0016: 0016-multipath.conf.5-document-foreign-library-support.patch
|
|
|
|
+Patch0017: 0017-mpathpersist-remove-broken-unused-code.patch
|
|
|
|
+Patch0018: 0018-libmultipath-EMC-PowerMax-NVMe-device-config.patch
|
|
|
|
+Patch0019: 0019-mpathpersist-fix-leaks.patch
|
|
|
|
+Patch0020: 0020-libmultipath-fix-mpcontext-initialization.patch
|
|
|
|
+Patch0021: 0021-RH-fixup-udev-rules-for-redhat.patch
|
|
|
|
+Patch0022: 0022-RH-Remove-the-property-blacklist-exception-builtin.patch
|
|
|
|
+Patch0023: 0023-RH-don-t-start-without-a-config-file.patch
|
|
|
|
+Patch0024: 0024-RH-use-rpm-optflags-if-present.patch
|
|
|
|
+Patch0025: 0025-RH-add-mpathconf.patch
|
|
|
|
+Patch0026: 0026-RH-add-wwids-from-kernel-cmdline-mpath.wwids-with-A.patch
|
|
|
|
+Patch0027: 0027-RH-warn-on-invalid-regex-instead-of-failing.patch
|
|
|
|
+Patch0028: 0028-RH-reset-default-find_mutipaths-value-to-off.patch
|
|
|
|
+Patch0029: 0029-RH-Fix-nvme-compilation-warning.patch
|
|
|
|
+Patch0030: 0030-RH-attempt-to-get-ANA-info-via-sysfs-first.patch
|
|
|
|
+Patch0031: 0031-multipath-fix-issues-found-by-compiling-with-gcc-10.patch
|
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
Requires(post): chkconfig
|
|
Requires(post): chkconfig
|
|
@@ -37,6 +55,9 @@ BuildRequires: device-mapper-devel
|
|
#BuildRequires: libselinux-devel, libsepol-devel
|
|
#BuildRequires: libselinux-devel, libsepol-devel
|
|
BuildRequires: readline-devel, ncurses-devel
|
|
BuildRequires: readline-devel, ncurses-devel
|
|
BuildRequires: libaio-devel
|
|
BuildRequires: libaio-devel
|
|
|
|
+BuildRequires: userspace-rcu-devel
|
|
|
|
+BuildRequires: libudev-devel
|
|
|
|
+BuildRequires: json-c-devel
|
|
|
|
|
|
Vendor: Project Vine
|
|
Vendor: Project Vine
|
|
Distribution: Vine Linux
|
|
Distribution: Vine Linux
|
|
@@ -50,6 +71,28 @@ The tools are :
|
|
* multipathd : Detects when paths fail and execs multipath to update things.
|
|
* multipathd : Detects when paths fail and execs multipath to update things.
|
|
|
|
|
|
|
|
|
|
|
|
+%package libs
|
|
|
|
+Summary: The %{name} modules and shared library
|
|
|
|
+# only libmpathcmd is LGPLv2+
|
|
|
|
+License: GPLv2 and LGPLv2+
|
|
|
|
+
|
|
|
|
+%description libs
|
|
|
|
+The %{name}-libs provides the path checker
|
|
|
|
+and prioritizer modules. It also contains the libmpathpersist and
|
|
|
|
+libmpathcmd shared libraries, as well as multipath's internal library,
|
|
|
|
+libmultipath.
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+%package devel
|
|
|
|
+Summary: Development libraries and headers for %{name}
|
|
|
|
+Requires: %{name} = %{version}-%{release}
|
|
|
|
+Requires: %{name}-libs = %{version}-%{release}
|
|
|
|
+
|
|
|
|
+%description devel
|
|
|
|
+This package contains the files need to develop applications that use
|
|
|
|
+device-mapper-multipath's lbmpathpersist and libmpathcmd libraries.
|
|
|
|
+
|
|
|
|
+
|
|
%package -n kpartx
|
|
%package -n kpartx
|
|
Summary: Partition device manager for device-mapper devices
|
|
Summary: Partition device manager for device-mapper devices
|
|
Summary(ja): Device-mapper デバイス用のパーティションデバイスマネージャー
|
|
Summary(ja): Device-mapper デバイス用のパーティションデバイスマネージャー
|
|
@@ -60,47 +103,61 @@ Provides: kpartx = %{version}-%{release}
|
|
kpartx manages partition creation and removal for device-mapper devices.
|
|
kpartx manages partition creation and removal for device-mapper devices.
|
|
|
|
|
|
|
|
|
|
|
|
+%package -n libdmmp
|
|
|
|
+Summary: device-mapper-multipath C API library
|
|
|
|
+License: GPLv3+
|
|
|
|
+Requires: json-c
|
|
|
|
+Requires: %{name} = %{version}-%{release}
|
|
|
|
+Requires: %{name}-libs = %{version}-%{release}
|
|
|
|
+
|
|
|
|
+%description -n libdmmp
|
|
|
|
+This package contains the shared library for the device-mapper-multipath
|
|
|
|
+C API library.
|
|
|
|
+
|
|
|
|
+%package -n libdmmp-devel
|
|
|
|
+Summary: device-mapper-multipath C API library headers
|
|
|
|
+Requires: pkgconfig
|
|
|
|
+Requires: libdmmp = %{version}-%{release}
|
|
|
|
+
|
|
|
|
+%description -n libdmmp-devel
|
|
|
|
+This package contains the files needed to develop applications that use
|
|
|
|
+device-mapper-multipath's libdmmp C API library
|
|
|
|
+
|
|
|
|
+
|
|
%prep
|
|
%prep
|
|
-%setup -q -c
|
|
|
|
-%patch1 -p1
|
|
|
|
-%patch1007 -p1
|
|
|
|
-%patch1008 -p1
|
|
|
|
-%patch1009 -p1
|
|
|
|
-%patch1010 -p1
|
|
|
|
-%patch1014 -p1
|
|
|
|
-%patch1017 -p1
|
|
|
|
-%patch1018 -p1
|
|
|
|
-%patch1019 -p1
|
|
|
|
-%patch1020 -p1
|
|
|
|
-%patch1021 -p1
|
|
|
|
-%patch1022 -p1
|
|
|
|
-%patch1023 -p1
|
|
|
|
-%patch1024 -p1
|
|
|
|
|
|
+%setup -q -n multipath-tools-0.8.2
|
|
|
|
+%autopatch -p1
|
|
|
|
|
|
|
|
|
|
%build
|
|
%build
|
|
-make LIB=%{_lib}
|
|
|
|
|
|
+make %{?_smp_mflags} LIB=%{_lib} SYSTEMDPATH=/lib
|
|
|
|
+
|
|
|
|
|
|
%install
|
|
%install
|
|
-rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
+rm -rf %{buildroot}
|
|
make install \
|
|
make install \
|
|
- DESTDIR=$RPM_BUILD_ROOT \
|
|
|
|
|
|
+ DESTDIR=%{buildroot} \
|
|
bindir=%{_syssbindir} \
|
|
bindir=%{_syssbindir} \
|
|
syslibdir=/%{_lib} \
|
|
syslibdir=/%{_lib} \
|
|
|
|
+ usrlibdir=%{_libdir} \
|
|
libdir=/%{_lib}/multipath \
|
|
libdir=/%{_lib}/multipath \
|
|
- rcdir=%{_initrddir}
|
|
|
|
|
|
+ rcdir=%{_initdir} \
|
|
|
|
+ unitdir=%{_unitdir} \
|
|
|
|
+ pkgconfdir=%{_libdir}/pkgconfig \
|
|
|
|
+ SYSTEMDPATH=/lib
|
|
|
|
|
|
install -d %{buildroot}/etc/multipath
|
|
install -d %{buildroot}/etc/multipath
|
|
install -m644 %{SOURCE1} %{buildroot}/etc/multipath.conf
|
|
install -m644 %{SOURCE1} %{buildroot}/etc/multipath.conf
|
|
|
|
|
|
-install -m755 multipathd/multipathd.init.redhat %{buildroot}%{_initrddir}/multipathd
|
|
|
|
|
|
+install -d %{buildroot}%{_initdir}
|
|
|
|
+install -m755 %{SOURCE2} %{buildroot}%{_initdir}/multipathd
|
|
|
|
+
|
|
|
|
|
|
%clean
|
|
%clean
|
|
-rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
+rm -rf %{buildroot}
|
|
|
|
|
|
|
|
|
|
%post
|
|
%post
|
|
-/sbin/ldconfig
|
|
|
|
/sbin/chkconfig --add multipathd
|
|
/sbin/chkconfig --add multipathd
|
|
if [ "$1" -gt "1" -a ! -e /etc/multipath/bindings -a \
|
|
if [ "$1" -gt "1" -a ! -e /etc/multipath/bindings -a \
|
|
-f /var/lib/multipath/bindings ]; then
|
|
-f /var/lib/multipath/bindings ]; then
|
|
@@ -116,38 +173,91 @@ fi
|
|
|
|
|
|
|
|
|
|
%postun
|
|
%postun
|
|
-/sbin/ldconfig
|
|
|
|
if [ "$1" -ge "1" ]; then
|
|
if [ "$1" -ge "1" ]; then
|
|
/sbin/service multipathd condrestart >/dev/null 2>&1 || :
|
|
/sbin/service multipathd condrestart >/dev/null 2>&1 || :
|
|
fi
|
|
fi
|
|
|
|
|
|
|
|
+%post libs -p /sbin/ldconfig
|
|
|
|
+%postun libs -p /sbin/ldconfig
|
|
|
|
+
|
|
|
|
+%post -n libdmmp -p /sbin/ldconfig
|
|
|
|
+%postun -n libdmmp -p /sbin/ldconfig
|
|
|
|
+
|
|
|
|
|
|
%files
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%defattr(-,root,root,-)
|
|
-%doc AUTHOR COPYING README* FAQ
|
|
|
|
-%doc multipath.conf.annotated multipath.conf.defaults
|
|
|
|
-%doc multipath.conf.synthetic
|
|
|
|
|
|
+%license LICENSES/GPL-2.0 LICENSES/LGPL-2.0
|
|
|
|
+%doc README*
|
|
|
|
+%config /lib/udev/rules.d/62-multipath.rules
|
|
|
|
+%config /lib/udev/rules.d/11-dm-mpath.rules
|
|
%{_syssbindir}/multipath
|
|
%{_syssbindir}/multipath
|
|
%{_syssbindir}/multipathd
|
|
%{_syssbindir}/multipathd
|
|
%{_syssbindir}/mpathconf
|
|
%{_syssbindir}/mpathconf
|
|
-%config /lib/udev/rules.d/40-multipath.rules
|
|
|
|
|
|
+%{_syssbindir}/mpathpersist
|
|
|
|
+%{_mandir}/man5/multipath.conf.5.gz
|
|
%{_mandir}/man8/multipath.8.gz
|
|
%{_mandir}/man8/multipath.8.gz
|
|
%{_mandir}/man8/multipathd.8.gz
|
|
%{_mandir}/man8/multipathd.8.gz
|
|
-%{_mandir}/man5/multipath.conf.5.gz
|
|
|
|
|
|
+%{_mandir}/man8/mpathconf.8.gz
|
|
|
|
+%{_mandir}/man8/mpathpersist.8.gz
|
|
%config /etc/rc.d/init.d/multipathd
|
|
%config /etc/rc.d/init.d/multipathd
|
|
%config(noreplace) /etc/multipath.conf
|
|
%config(noreplace) /etc/multipath.conf
|
|
%dir /etc/multipath
|
|
%dir /etc/multipath
|
|
-/%{_lib}/libmultipath.so*
|
|
|
|
|
|
+
|
|
|
|
+%files libs
|
|
|
|
+%license LICENSES/GPL-2.0 LICENSES/LGPL-2.0
|
|
|
|
+%doc README
|
|
|
|
+/%{_lib}/libmultipath.so
|
|
|
|
+/%{_lib}/libmultipath.so.*
|
|
|
|
+/%{_lib}/libmpathpersist.so.*
|
|
|
|
+/%{_lib}/libmpathcmd.so.*
|
|
%dir /%{_lib}/multipath
|
|
%dir /%{_lib}/multipath
|
|
/%{_lib}/multipath/*
|
|
/%{_lib}/multipath/*
|
|
|
|
|
|
|
|
+%files devel
|
|
|
|
+%doc README
|
|
|
|
+/%{_lib}/libmpathpersist.so
|
|
|
|
+/%{_lib}/libmpathcmd.so
|
|
|
|
+%{_includedir}/mpath_cmd.h
|
|
|
|
+%{_includedir}/mpath_persist.h
|
|
|
|
+%{_mandir}/man3/mpath_persistent_reserve_in.3.gz
|
|
|
|
+%{_mandir}/man3/mpath_persistent_reserve_out.3.gz
|
|
|
|
+
|
|
%files -n kpartx
|
|
%files -n kpartx
|
|
%defattr(-,root,root,-)
|
|
%defattr(-,root,root,-)
|
|
|
|
+%license LICENSES/GPL-2.0 LICENSES/LGPL-2.0
|
|
|
|
+%doc README
|
|
%{_syssbindir}/kpartx
|
|
%{_syssbindir}/kpartx
|
|
|
|
+/lib/udev/kpartx_id
|
|
|
|
+%config /lib/udev/rules.d/11-dm-parts.rules
|
|
|
|
+%config /lib/udev/rules.d/66-kpartx.rules
|
|
|
|
+%config /lib/udev/rules.d/68-del-part-nodes.rules
|
|
%{_mandir}/man8/kpartx.8.gz
|
|
%{_mandir}/man8/kpartx.8.gz
|
|
|
|
|
|
|
|
+%files -n libdmmp
|
|
|
|
+%license LICENSES/GPL-3.0
|
|
|
|
+%doc README
|
|
|
|
+%{_libdir}/libdmmp.so.*
|
|
|
|
+
|
|
|
|
+%files -n libdmmp-devel
|
|
|
|
+%doc README
|
|
|
|
+%{_libdir}/libdmmp.so
|
|
|
|
+%dir %{_includedir}/libdmmp
|
|
|
|
+%{_includedir}/libdmmp/*
|
|
|
|
+%{_mandir}/man3/dmmp_*
|
|
|
|
+%{_mandir}/man3/libdmmp.h.3.gz
|
|
|
|
+%{_libdir}/pkgconfig/libdmmp.pc
|
|
|
|
+
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Sat Mar 28 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.8.2-1
|
|
|
|
+- new upstream release.
|
|
|
|
+- replaced all patches with rawhide's.
|
|
|
|
+- added sub-packages.
|
|
|
|
+ - device-mapper-multipath-libs
|
|
|
|
+ - device-mapper-multipath-devel
|
|
|
|
+ - libdmmp
|
|
|
|
+ - libdmmp-devel
|
|
|
|
+
|
|
* Sat Mar 21 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 0.4.9-5
|
|
* Sat Mar 21 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 0.4.9-5
|
|
- rebuilt with readline 6.3
|
|
- rebuilt with readline 6.3
|
|
- changed BuildRequires: libsysfs-devel instead of sysfsutils-devel
|
|
- changed BuildRequires: libsysfs-devel instead of sysfsutils-devel
|