Seperate kpartx from the maie package

There is no need to default install multipath-tools when install
OS, while some package depend on kpartx tool, so seperate kpartx
from the main package.

signed-off-by: wangjufeng <wangjufeng@huawei.com>
This commit is contained in:
wangjufeng 2020-03-09 11:26:56 +08:00
parent 9a982acba9
commit 2e60c377c7

View File

@ -1,6 +1,6 @@
Name: multipath-tools Name: multipath-tools
Version: 0.7.7 Version: 0.7.7
Release: 15 Release: 16
Summary: Tools to manage multipath devices with the device-mapper Summary: Tools to manage multipath devices with the device-mapper
License: GPLv2-or-later and LGPLv2+ License: GPLv2-or-later and LGPLv2+
URL: http://christophe.varoqui.free.fr/ URL: http://christophe.varoqui.free.fr/
@ -74,6 +74,7 @@ BuildRequires: gcc, libaio-devel, userspace-rcu-devel, device-mapper-devel >=
BuildRequires: libselinux-devel, libsepol-devel, readline-devel, ncurses-devel, git BuildRequires: libselinux-devel, libsepol-devel, readline-devel, ncurses-devel, git
BuildRequires: systemd-units, systemd-devel, json-c-devel, perl-interpreter, pkgconfig BuildRequires: systemd-units, systemd-devel, json-c-devel, perl-interpreter, pkgconfig
Requires: userspace-rcu, json-c, device-mapper >= 1.02.96 Requires: userspace-rcu, json-c, device-mapper >= 1.02.96
Requires: kpartx = %{version}-%{release}
Requires(post): systemd-units Requires(post): systemd-units
Requires(preun): systemd-units Requires(preun): systemd-units
Requires(postun): systemd-units Requires(postun): systemd-units
@ -83,8 +84,6 @@ Provides: device-mapper-multipath
Obsoletes: device-mapper-multipath Obsoletes: device-mapper-multipath
Provides: device-mapper-multipath-libs Provides: device-mapper-multipath-libs
Obsoletes: device-mapper-multipath-libs Obsoletes: device-mapper-multipath-libs
Provides: kpartx
Obsoletes: kpartx
Provides: libdmmp Provides: libdmmp
Obsoletes: libdmmp Obsoletes: libdmmp
@ -119,6 +118,12 @@ Obsoletes: device-mapper-multipath-help
%description help %description help
This contains man files for the using of multipath-tools. This contains man files for the using of multipath-tools.
%package -n kpartx
Summary: Create device maps from partition tables.
%description -n kpartx
Reads partition tables and create device maps over partitions segments detected.
%prep %prep
%autosetup -Sgit -n multipath-tools-ef6d98b %autosetup -Sgit -n multipath-tools-ef6d98b
cp %{SOURCE1} . cp %{SOURCE1} .
@ -163,7 +168,10 @@ fi
%doc README README.alua multipath.conf %doc README README.alua multipath.conf
%license LICENSES/GPL-2.0 LICENSES/LGPL-2.0 LICENSES/GPL-3.0 %license LICENSES/GPL-2.0 LICENSES/LGPL-2.0 LICENSES/GPL-3.0
%{_unitdir}/* %{_unitdir}/*
/usr/sbin/* /usr/sbin/multipath
/usr/sbin/multipathd
/usr/sbin/mpathconf
/usr/sbin/mpathpersist
/usr/%{_lib}/libmultipath.so /usr/%{_lib}/libmultipath.so
/usr/%{_lib}/libmultipath.so.* /usr/%{_lib}/libmultipath.so.*
/usr/%{_lib}/libmpathpersist.so.* /usr/%{_lib}/libmpathpersist.so.*
@ -172,8 +180,9 @@ fi
%dir /etc/multipath %dir /etc/multipath
%dir /usr/%{_lib}/multipath %dir /usr/%{_lib}/multipath
/usr/%{_lib}/multipath/* /usr/%{_lib}/multipath/*
/usr/lib/udev/kpartx_id %config /usr/lib/udev/rules.d/62-multipath.rules
%config /usr/lib/udev/rules.d/* %config /usr/lib/udev/rules.d/11-dm-mpath.rules
%files devel %files devel
%doc README %doc README
@ -190,8 +199,23 @@ fi
%{_mandir}/man5/* %{_mandir}/man5/*
%{_mandir}/man8/* %{_mandir}/man8/*
%files -n kpartx
%license LICENSES/GPL-2.0
%doc README
/usr/sbin/kpartx
/usr/lib/udev/kpartx_id
%config /usr/lib/udev/rules.d/11-dm-parts.rules
%config /usr/lib/udev/rules.d/66-kpartx.rules
%config /usr/lib/udev/rules.d/68-del-part-nodes.rules
%changelog %changelog
* Mon Mar 09 2020 wangjufeng <wangjufeng@huawei.com> - 0.7.7-16
- Type:enhancement
- ID:NA
- SUG:NA
- DESC: separate kpartx from the main package
* Thu Jan 16 2020 openEuler Buildteam <buildteam@openeuler.org> - 0.7.7-15 * Thu Jan 16 2020 openEuler Buildteam <buildteam@openeuler.org> - 0.7.7-15
- Type:enhancement - Type:enhancement
- ID:NA - ID:NA