2007-01-16 00:25:57 +01:00
|
|
|
#
|
2011-04-05 18:02:12 +02:00
|
|
|
# spec file for package multipath-tools
|
2007-01-16 00:25:57 +01:00
|
|
|
#
|
2023-01-18 10:28:27 +01:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2007-01-16 00:25:57 +01:00
|
|
|
#
|
2008-08-29 00:55:27 +02:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2018-10-03 15:02:51 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2007-01-16 00:25:57 +01:00
|
|
|
#
|
|
|
|
|
2021-05-19 21:42:39 +02:00
|
|
|
|
Accepting request 894131 from home:mwilck:branches:Base:System
- Update to version 0.8.6+10+suse.47711374:
* Github workflows: add CI for SUSE-specific branches
- Disabled LTO for multipath-tools
* The test for is_valid_path fails if LTO is enabled, just
disabling it for %check is insufficient.
- Update to version 0.8.6+9+suse.6c05a61:
Update to upstream 0.8.6.
* add eh_deadline option to avoid endless SCSI error handling
* add wwid_recheck option to detect storage configuration changes
* add library versioning for libmultipath, libmpathpersist etc. and
to libmultipath plugins
* move some global symbols to libmultipath (udev, logsink, etc)
and provide default implementations for get_multipath_config() etc.
This allows simplifiying libmpathpersist_example.c drastically.
* fixes for shutdown issues and various race conditions on exit
* improve cleanup on exit, fix memory leaks
* add libmpathvalid library
* fixes for SAS expanders (bsc#1178377, bsc#1178379, bsc#1177081)
* Avoid access to root FS while queueing IO (bsc#1178049,
bsc#1181234)
* lots of bug fixes, additions to built-in hardware table, and
CI improvements (bsc#1186212)
* kpartx: free loop device after listing partitions (boo#1107187)
Bug fixes on top of 0.8.5 mentioned below are also included in
this upstream version.
(bsc#1182072, bsc#1177371)
(bsc#1181435, bsc#1183666)
OBS-URL: https://build.opensuse.org/request/show/894131
OBS-URL: https://build.opensuse.org/package/show/Base:System/multipath-tools?expand=0&rev=253
2021-05-18 21:47:44 +02:00
|
|
|
%global _lto_cflags %{nil}
|
2020-08-21 18:01:08 +02:00
|
|
|
|
2022-05-11 16:38:16 +02:00
|
|
|
# multipath-tools auto-detects support for -D_FORTFY_SOURCE.
|
|
|
|
# This will lead to a compilation error if the distro overrides
|
|
|
|
# -D_FORTIFY_SOURCE in optflags, unless we precede it with -U
|
|
|
|
%global mp_optflags %(echo %{optflags} | sed 's/-D_FORTIFY_SOURCE=[0-9]/-U_FORTIFY_SOURCE &/')
|
|
|
|
|
2021-08-13 13:06:08 +02:00
|
|
|
# Whether to build libdmmp - default YES
|
2017-03-20 13:52:30 +01:00
|
|
|
%bcond_without libdmmp
|
2020-05-13 16:11:02 +02:00
|
|
|
|
2021-08-13 13:06:08 +02:00
|
|
|
# Whether to run tests - default YES
|
2020-05-13 16:11:02 +02:00
|
|
|
%bcond_without check
|
2017-03-20 13:52:30 +01:00
|
|
|
|
|
|
|
# This should match the version in libdmmp/Makefile
|
2018-07-02 10:57:41 +02:00
|
|
|
%define _libdmmp_version 0.2.0
|
2017-03-20 13:52:30 +01:00
|
|
|
%define libdmmp_version %(echo %{_libdmmp_version} | tr . _)
|
2016-06-14 14:45:24 +02:00
|
|
|
|
2007-01-16 00:25:57 +01:00
|
|
|
Name: multipath-tools
|
2022-10-26 08:57:02 +02:00
|
|
|
Version: 0.9.2+59+suse.ac8942d
|
2017-03-24 16:23:05 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Tools to Manage Multipathed Devices with the device-mapper
|
2022-09-09 21:40:03 +02:00
|
|
|
License: GPL-2.0-only AND GPL-3.0-or-later
|
2017-03-24 16:23:05 +01:00
|
|
|
Group: System/Base
|
2019-04-17 20:57:45 +02:00
|
|
|
URL: http://christophe.varoqui.free.fr/
|
2022-10-24 11:10:55 +02:00
|
|
|
Source: multipath-tools-%{version}.tar
|
2017-03-24 16:23:05 +01:00
|
|
|
Source1: multipath.conf
|
2017-09-03 01:30:12 +02:00
|
|
|
# SUSE policy: disable partition deletion by default
|
|
|
|
Source2: dont-del-part-nodes.rules
|
|
|
|
# Dracut conf file to make sure 11-dm-parts.rules is included in initrd
|
|
|
|
Source3: dm-parts.conf
|
2017-11-06 16:16:39 +01:00
|
|
|
Source4: libmpathpersist-example.c
|
Accepting request 894131 from home:mwilck:branches:Base:System
- Update to version 0.8.6+10+suse.47711374:
* Github workflows: add CI for SUSE-specific branches
- Disabled LTO for multipath-tools
* The test for is_valid_path fails if LTO is enabled, just
disabling it for %check is insufficient.
- Update to version 0.8.6+9+suse.6c05a61:
Update to upstream 0.8.6.
* add eh_deadline option to avoid endless SCSI error handling
* add wwid_recheck option to detect storage configuration changes
* add library versioning for libmultipath, libmpathpersist etc. and
to libmultipath plugins
* move some global symbols to libmultipath (udev, logsink, etc)
and provide default implementations for get_multipath_config() etc.
This allows simplifiying libmpathpersist_example.c drastically.
* fixes for shutdown issues and various race conditions on exit
* improve cleanup on exit, fix memory leaks
* add libmpathvalid library
* fixes for SAS expanders (bsc#1178377, bsc#1178379, bsc#1177081)
* Avoid access to root FS while queueing IO (bsc#1178049,
bsc#1181234)
* lots of bug fixes, additions to built-in hardware table, and
CI improvements (bsc#1186212)
* kpartx: free loop device after listing partitions (boo#1107187)
Bug fixes on top of 0.8.5 mentioned below are also included in
this upstream version.
(bsc#1182072, bsc#1177371)
(bsc#1181435, bsc#1183666)
OBS-URL: https://build.opensuse.org/request/show/894131
OBS-URL: https://build.opensuse.org/package/show/Base:System/multipath-tools?expand=0&rev=253
2021-05-18 21:47:44 +02:00
|
|
|
Source5: libmpathpersist-example-old.c
|
2022-10-24 10:46:58 +02:00
|
|
|
Source6: multipath-dracut.conf
|
2017-03-24 16:23:05 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%{?systemd_requires}
|
2012-04-20 10:35:35 +02:00
|
|
|
BuildRequires: libaio-devel
|
2020-08-21 18:01:08 +02:00
|
|
|
BuildRequires: pkgconfig(devmapper)
|
2017-03-20 13:52:30 +01:00
|
|
|
%if 0%{?with_libdmmp} == 1
|
2020-06-08 21:51:40 +02:00
|
|
|
BuildRequires: pkgconfig(json-c)
|
2017-03-20 13:52:30 +01:00
|
|
|
%endif
|
2022-09-07 16:56:02 +02:00
|
|
|
BuildRequires: readline-devel
|
2016-06-14 14:45:24 +02:00
|
|
|
BuildRequires: pkgconfig(libsystemd)
|
2020-01-24 15:26:48 +01:00
|
|
|
BuildRequires: pkgconfig(libudev)
|
2020-08-21 18:01:08 +02:00
|
|
|
BuildRequires: pkgconfig(liburcu)
|
2016-06-14 14:45:24 +02:00
|
|
|
BuildRequires: pkgconfig(systemd)
|
2020-01-24 15:26:48 +01:00
|
|
|
BuildRequires: pkgconfig(udev)
|
2020-05-13 16:11:02 +02:00
|
|
|
%if 0%{?with_check} == 1
|
|
|
|
BuildRequires: pkgconfig(cmocka)
|
|
|
|
%endif
|
2019-01-11 22:31:20 +01:00
|
|
|
# For regenerate-initrd-posttrans
|
2020-06-08 21:51:40 +02:00
|
|
|
# For now, we still need to require suse-module-tools
|
|
|
|
# See https://github.com/openSUSE/rpm-config-SUSE/pull/6
|
2020-08-21 18:01:08 +02:00
|
|
|
BuildRequires: suse-module-tools
|
Accepting request 894131 from home:mwilck:branches:Base:System
- Update to version 0.8.6+10+suse.47711374:
* Github workflows: add CI for SUSE-specific branches
- Disabled LTO for multipath-tools
* The test for is_valid_path fails if LTO is enabled, just
disabling it for %check is insufficient.
- Update to version 0.8.6+9+suse.6c05a61:
Update to upstream 0.8.6.
* add eh_deadline option to avoid endless SCSI error handling
* add wwid_recheck option to detect storage configuration changes
* add library versioning for libmultipath, libmpathpersist etc. and
to libmultipath plugins
* move some global symbols to libmultipath (udev, logsink, etc)
and provide default implementations for get_multipath_config() etc.
This allows simplifiying libmpathpersist_example.c drastically.
* fixes for shutdown issues and various race conditions on exit
* improve cleanup on exit, fix memory leaks
* add libmpathvalid library
* fixes for SAS expanders (bsc#1178377, bsc#1178379, bsc#1177081)
* Avoid access to root FS while queueing IO (bsc#1178049,
bsc#1181234)
* lots of bug fixes, additions to built-in hardware table, and
CI improvements (bsc#1186212)
* kpartx: free loop device after listing partitions (boo#1107187)
Bug fixes on top of 0.8.5 mentioned below are also included in
this upstream version.
(bsc#1182072, bsc#1177371)
(bsc#1181435, bsc#1183666)
OBS-URL: https://build.opensuse.org/request/show/894131
OBS-URL: https://build.opensuse.org/package/show/Base:System/multipath-tools?expand=0&rev=253
2021-05-18 21:47:44 +02:00
|
|
|
Requires(post): suse-module-tools
|
2014-03-27 15:52:32 +01:00
|
|
|
Requires: device-mapper >= 1.2.78
|
2012-04-20 10:35:35 +02:00
|
|
|
Requires: kpartx
|
2017-03-20 13:52:30 +01:00
|
|
|
Requires: sg3_utils
|
2018-07-17 11:32:40 +02:00
|
|
|
Obsoletes: multipath-tools-rbd <= %{version}
|
Accepting request 894131 from home:mwilck:branches:Base:System
- Update to version 0.8.6+10+suse.47711374:
* Github workflows: add CI for SUSE-specific branches
- Disabled LTO for multipath-tools
* The test for is_valid_path fails if LTO is enabled, just
disabling it for %check is insufficient.
- Update to version 0.8.6+9+suse.6c05a61:
Update to upstream 0.8.6.
* add eh_deadline option to avoid endless SCSI error handling
* add wwid_recheck option to detect storage configuration changes
* add library versioning for libmultipath, libmpathpersist etc. and
to libmultipath plugins
* move some global symbols to libmultipath (udev, logsink, etc)
and provide default implementations for get_multipath_config() etc.
This allows simplifiying libmpathpersist_example.c drastically.
* fixes for shutdown issues and various race conditions on exit
* improve cleanup on exit, fix memory leaks
* add libmpathvalid library
* fixes for SAS expanders (bsc#1178377, bsc#1178379, bsc#1177081)
* Avoid access to root FS while queueing IO (bsc#1178049,
bsc#1181234)
* lots of bug fixes, additions to built-in hardware table, and
CI improvements (bsc#1186212)
* kpartx: free loop device after listing partitions (boo#1107187)
Bug fixes on top of 0.8.5 mentioned below are also included in
this upstream version.
(bsc#1182072, bsc#1177371)
(bsc#1181435, bsc#1183666)
OBS-URL: https://build.opensuse.org/request/show/894131
OBS-URL: https://build.opensuse.org/package/show/Base:System/multipath-tools?expand=0&rev=253
2021-05-18 21:47:44 +02:00
|
|
|
PreReq: coreutils
|
|
|
|
PreReq: grep
|
2007-01-16 00:25:57 +01:00
|
|
|
|
|
|
|
%description
|
2019-04-01 21:21:40 +02:00
|
|
|
This package provides the multipath tool and the multipathd daemon
|
|
|
|
to manage dm-multipath devices. multipath can detect and set up
|
|
|
|
multipath maps. multipathd sets up multipath maps automatically,
|
|
|
|
monitors path devices for failure, removal, or addition, and applies
|
|
|
|
the necessary changes to the multipath maps to ensure continuous
|
|
|
|
availability of the map devices.
|
|
|
|
|
2021-05-19 21:42:39 +02:00
|
|
|
|
2022-02-02 12:46:56 +01:00
|
|
|
|
2022-09-09 21:40:03 +02:00
|
|
|
|
2023-01-18 10:28:27 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
2019-04-17 20:57:45 +02:00
|
|
|
# Currently, it makes no sense to split out libmpathpersist and libmpathcmd
|
2019-04-01 21:21:40 +02:00
|
|
|
# separately. libmultipath has no stable API at all, and it depends
|
|
|
|
# on libmpathcmd (to be fixed). libmpathpersist depends on libmultipath
|
|
|
|
# and it loads prioritizers (to be fixed) and checkers.
|
Accepting request 894131 from home:mwilck:branches:Base:System
- Update to version 0.8.6+10+suse.47711374:
* Github workflows: add CI for SUSE-specific branches
- Disabled LTO for multipath-tools
* The test for is_valid_path fails if LTO is enabled, just
disabling it for %check is insufficient.
- Update to version 0.8.6+9+suse.6c05a61:
Update to upstream 0.8.6.
* add eh_deadline option to avoid endless SCSI error handling
* add wwid_recheck option to detect storage configuration changes
* add library versioning for libmultipath, libmpathpersist etc. and
to libmultipath plugins
* move some global symbols to libmultipath (udev, logsink, etc)
and provide default implementations for get_multipath_config() etc.
This allows simplifiying libmpathpersist_example.c drastically.
* fixes for shutdown issues and various race conditions on exit
* improve cleanup on exit, fix memory leaks
* add libmpathvalid library
* fixes for SAS expanders (bsc#1178377, bsc#1178379, bsc#1177081)
* Avoid access to root FS while queueing IO (bsc#1178049,
bsc#1181234)
* lots of bug fixes, additions to built-in hardware table, and
CI improvements (bsc#1186212)
* kpartx: free loop device after listing partitions (boo#1107187)
Bug fixes on top of 0.8.5 mentioned below are also included in
this upstream version.
(bsc#1182072, bsc#1177371)
(bsc#1181435, bsc#1183666)
OBS-URL: https://build.opensuse.org/request/show/894131
OBS-URL: https://build.opensuse.org/package/show/Base:System/multipath-tools?expand=0&rev=253
2021-05-18 21:47:44 +02:00
|
|
|
|
2019-04-01 21:21:40 +02:00
|
|
|
%package -n libmpath0
|
2019-04-17 20:57:45 +02:00
|
|
|
Summary: Libraries for multipath-tools
|
2019-04-01 21:21:40 +02:00
|
|
|
# This is for libmpathcmd, which is useless without multipathd.
|
|
|
|
# No hard dependency here - we don't want to pull in all dependencies
|
|
|
|
# of multipath-tools.
|
2020-01-24 15:26:48 +01:00
|
|
|
License: GPL-2.0-only AND LGPL-2.1-only AND LGPL-2.0-or-later
|
|
|
|
Group: System/Libraries
|
2019-04-17 20:57:45 +02:00
|
|
|
Recommends: multipath-tools
|
|
|
|
Conflicts: multipath-tools < 0.8.0
|
2019-04-01 21:21:40 +02:00
|
|
|
|
|
|
|
%description -n libmpath0
|
|
|
|
libmpathpersist provides a C API for handling of SCSI persistent
|
|
|
|
reservations for device-mapper multipath devices. libmpathcmd
|
|
|
|
provides a C API for sending commands to a running multipathd
|
|
|
|
instance.
|
2007-01-16 00:25:57 +01:00
|
|
|
|
2007-05-21 18:10:25 +02:00
|
|
|
%package -n kpartx
|
|
|
|
Summary: Manages partition tables on device-mapper devices
|
2018-04-10 10:32:36 +02:00
|
|
|
License: GPL-2.0-only
|
2007-05-21 18:10:25 +02:00
|
|
|
Group: System/Base
|
2007-08-02 22:50:38 +02:00
|
|
|
Requires: device-mapper
|
2007-05-21 18:10:25 +02:00
|
|
|
|
|
|
|
%description -n kpartx
|
|
|
|
The kpartx program maps linear devmaps to device partitions, which
|
|
|
|
makes multipath maps partionable.
|
|
|
|
|
2013-02-01 11:10:56 +01:00
|
|
|
%package devel
|
|
|
|
Summary: Development libraries for multipath-tools
|
2018-04-10 23:55:43 +02:00
|
|
|
License: GPL-2.0-only AND LGPL-2.0-or-later
|
2017-03-24 16:23:05 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2019-04-01 21:21:40 +02:00
|
|
|
Requires: libmpath0 = %{version}
|
2013-02-01 11:10:56 +01:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
This package contains the development libraries for multipath-tools
|
2019-04-01 21:21:40 +02:00
|
|
|
and libmpathpersist.
|
2013-02-01 11:10:56 +01:00
|
|
|
|
2017-03-20 13:52:30 +01:00
|
|
|
%package -n libdmmp%{libdmmp_version}
|
|
|
|
Summary: C API for multipath-tools
|
2018-04-05 12:06:45 +02:00
|
|
|
License: GPL-3.0-or-later
|
2017-03-20 13:52:30 +01:00
|
|
|
Group: System/Libraries
|
|
|
|
Requires: multipath-tools
|
|
|
|
|
|
|
|
%description -n libdmmp%{libdmmp_version}
|
|
|
|
This library enables the use of libmultipath commands from C code.
|
|
|
|
|
|
|
|
%package -n libdmmp-devel
|
|
|
|
Summary: Header files for multipath-tools C API
|
2018-04-05 12:06:45 +02:00
|
|
|
License: GPL-3.0-or-later
|
2017-03-24 16:23:05 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2018-04-10 23:55:43 +02:00
|
|
|
Requires: libdmmp%{libdmmp_version} = %{version}
|
2017-03-20 13:52:30 +01:00
|
|
|
|
|
|
|
%description -n libdmmp-devel
|
|
|
|
This package provides development files and documentation for libdmmp.
|
|
|
|
|
2018-07-02 10:57:41 +02:00
|
|
|
%define makeflags %{!?with_libdmmp:ENABLE_LIBDMMP=0}
|
2021-06-08 18:14:52 +02:00
|
|
|
%if 0%{?suse_version} < 1550
|
|
|
|
%define dirflags LIB=%{_lib} usr_prefix=%{_prefix} SYSTEMDPATH=usr/lib
|
|
|
|
%define sbindir /sbin
|
|
|
|
%define libdir /%{_lib}
|
|
|
|
%else
|
|
|
|
%define dirflags LIB=%{_lib} usr_prefix=%{_prefix} exec_prefix=%{_prefix} syslibdir=%{_libdir} libdir=%{_libdir}/multipath SYSTEMDPATH=usr/lib
|
|
|
|
%define sbindir %{_sbindir}
|
|
|
|
%define libdir %{_libdir}
|
|
|
|
%endif
|
2017-03-20 13:52:30 +01:00
|
|
|
|
2007-01-16 00:25:57 +01:00
|
|
|
%prep
|
2014-01-29 11:09:28 +01:00
|
|
|
%setup -q -n multipath-tools-%{version}
|
2017-11-06 16:16:39 +01:00
|
|
|
cp %{SOURCE4} .
|
Accepting request 894131 from home:mwilck:branches:Base:System
- Update to version 0.8.6+10+suse.47711374:
* Github workflows: add CI for SUSE-specific branches
- Disabled LTO for multipath-tools
* The test for is_valid_path fails if LTO is enabled, just
disabling it for %check is insufficient.
- Update to version 0.8.6+9+suse.6c05a61:
Update to upstream 0.8.6.
* add eh_deadline option to avoid endless SCSI error handling
* add wwid_recheck option to detect storage configuration changes
* add library versioning for libmultipath, libmpathpersist etc. and
to libmultipath plugins
* move some global symbols to libmultipath (udev, logsink, etc)
and provide default implementations for get_multipath_config() etc.
This allows simplifiying libmpathpersist_example.c drastically.
* fixes for shutdown issues and various race conditions on exit
* improve cleanup on exit, fix memory leaks
* add libmpathvalid library
* fixes for SAS expanders (bsc#1178377, bsc#1178379, bsc#1177081)
* Avoid access to root FS while queueing IO (bsc#1178049,
bsc#1181234)
* lots of bug fixes, additions to built-in hardware table, and
CI improvements (bsc#1186212)
* kpartx: free loop device after listing partitions (boo#1107187)
Bug fixes on top of 0.8.5 mentioned below are also included in
this upstream version.
(bsc#1182072, bsc#1177371)
(bsc#1181435, bsc#1183666)
OBS-URL: https://build.opensuse.org/request/show/894131
OBS-URL: https://build.opensuse.org/package/show/Base:System/multipath-tools?expand=0&rev=253
2021-05-18 21:47:44 +02:00
|
|
|
cp %{SOURCE5} .
|
2019-08-29 11:10:14 +02:00
|
|
|
%autopatch -p1
|
2013-02-01 11:10:56 +01:00
|
|
|
|
2007-01-16 00:25:57 +01:00
|
|
|
%build
|
2017-06-20 11:04:28 +02:00
|
|
|
[ -n "$SOURCE_DATE_EPOCH" ] && export KBUILD_BUILD_TIMESTAMP=@$SOURCE_DATE_EPOCH
|
2022-05-11 16:38:16 +02:00
|
|
|
%{make_build} OPTFLAGS="%{mp_optflags}" %{dirflags} %{makeflags}
|
2020-05-13 16:11:02 +02:00
|
|
|
|
|
|
|
%if 0%{?with_check} == 1
|
|
|
|
%check
|
2022-05-11 16:38:16 +02:00
|
|
|
%{make_build} OPTFLAGS="%{mp_optflags}" test
|
2020-05-13 16:11:02 +02:00
|
|
|
%endif
|
2007-01-16 00:25:57 +01:00
|
|
|
|
|
|
|
%install
|
2019-04-17 20:57:45 +02:00
|
|
|
%make_install %{dirflags} %{makeflags}
|
2018-04-10 23:55:43 +02:00
|
|
|
mkdir -p %{buildroot}%{_defaultlicensedir}
|
2017-03-24 16:23:05 +01:00
|
|
|
mkdir -p %{buildroot}/usr/sbin
|
2018-04-10 23:55:43 +02:00
|
|
|
mkdir -p %{buildroot}/usr/%{_lib}
|
2021-06-08 18:14:52 +02:00
|
|
|
%if 0%{?suse_version} < 1550
|
2022-09-07 16:56:02 +02:00
|
|
|
for x in mpathutil multipath mpathpersist mpathcmd mpathvalid; do
|
2018-04-10 23:55:43 +02:00
|
|
|
rm -f %{buildroot}/%{_lib}/lib$x.so
|
|
|
|
ln -sf /%{_lib}/lib$x.so.0 %{buildroot}/usr/%{_lib}/lib$x.so
|
|
|
|
done
|
2021-06-08 18:14:52 +02:00
|
|
|
%endif
|
|
|
|
ln -sf service %{buildroot}/usr/sbin/rcmultipathd
|
2017-03-24 16:23:05 +01:00
|
|
|
mkdir -p %{buildroot}/usr/lib/modules-load.d
|
|
|
|
install -m 644 -D %{SOURCE1} "%{buildroot}/usr/lib/modules-load.d/multipath.conf"
|
2017-09-03 01:30:12 +02:00
|
|
|
install -m 644 %{SOURCE2} %{buildroot}%{_udevrulesdir}/00-dont-del-part-nodes.rules
|
|
|
|
install -m 644 -D %{SOURCE3} %{buildroot}/usr/lib/dracut/dracut.conf.d/dm-parts.conf
|
2022-10-24 10:46:58 +02:00
|
|
|
install -m 644 -D %{SOURCE6} %{buildroot}/usr/lib/dracut/dracut.conf.d/multipath.conf
|
|
|
|
sed -i 's,@TMPFILESDIR@,%{_tmpfilesdir},' %{buildroot}/usr/lib/dracut/dracut.conf.d/multipath.conf
|
2007-01-16 00:25:57 +01:00
|
|
|
|
2019-04-01 21:21:40 +02:00
|
|
|
%post -n libmpath0 -p %{run_ldconfig}
|
|
|
|
%postun -n libmpath0 -p %{run_ldconfig}
|
|
|
|
|
2010-07-06 16:27:45 +02:00
|
|
|
%pre
|
|
|
|
[ -f /.buildenv ] && exit 0
|
2019-04-17 20:57:45 +02:00
|
|
|
%service_add_pre multipathd.socket multipathd.service
|
2010-07-06 16:27:45 +02:00
|
|
|
|
2007-01-16 00:25:57 +01:00
|
|
|
%post
|
2010-07-06 16:27:45 +02:00
|
|
|
[ -f /.buildenv ] && exit 0
|
2022-10-24 10:46:58 +02:00
|
|
|
%tmpfiles_create %{_tmpfilesdir}/multipath.conf
|
2019-04-17 20:57:45 +02:00
|
|
|
%service_add_post multipathd.socket multipathd.service
|
2022-04-25 11:55:14 +02:00
|
|
|
if [ $1 -eq 1 ]; then
|
|
|
|
[ ! -x /sbin/modprobe ] || /sbin/modprobe dm_multipath || true
|
|
|
|
fi
|
2014-09-04 10:41:18 +02:00
|
|
|
%{?regenerate_initrd_post}
|
2008-09-06 00:44:23 +02:00
|
|
|
exit 0
|
2012-04-20 10:35:35 +02:00
|
|
|
|
2007-08-02 22:50:38 +02:00
|
|
|
%preun
|
2020-08-20 21:56:02 +02:00
|
|
|
%service_del_preun multipathd.service multipathd.socket
|
2007-08-02 22:50:38 +02:00
|
|
|
|
2007-01-16 00:25:57 +01:00
|
|
|
%postun
|
2014-09-18 11:03:03 +02:00
|
|
|
%{?regenerate_initrd_post}
|
2012-11-04 03:57:33 +01:00
|
|
|
%service_del_postun multipathd.service
|
2020-08-20 21:56:02 +02:00
|
|
|
%service_del_postun_without_restart multipathd.socket
|
2007-01-16 00:25:57 +01:00
|
|
|
|
2014-09-18 11:03:03 +02:00
|
|
|
%posttrans
|
|
|
|
%{?regenerate_initrd_posttrans}
|
|
|
|
|
2007-01-16 00:25:57 +01:00
|
|
|
%files
|
2022-09-07 16:56:02 +02:00
|
|
|
%doc README.md
|
2018-04-10 10:32:36 +02:00
|
|
|
%license LICENSES/GPL-2.0
|
2022-09-07 16:56:02 +02:00
|
|
|
%license LICENSES/GPL-3.0
|
2014-03-17 14:42:12 +01:00
|
|
|
%{_udevrulesdir}/11-dm-mpath.rules
|
2014-04-12 23:32:45 +02:00
|
|
|
%{_udevrulesdir}/56-multipath.rules
|
2021-06-08 18:14:52 +02:00
|
|
|
%{sbindir}/multipath
|
|
|
|
%{sbindir}/multipathd
|
2022-09-07 16:56:02 +02:00
|
|
|
%{sbindir}/multipathc
|
2021-06-08 18:14:52 +02:00
|
|
|
%{sbindir}/mpathpersist
|
2014-09-18 11:03:03 +02:00
|
|
|
/usr/sbin/rcmultipathd
|
2021-06-08 18:14:52 +02:00
|
|
|
%{_unitdir}/multipathd.service
|
|
|
|
%{_unitdir}/multipathd.socket
|
2016-09-01 13:57:30 +02:00
|
|
|
%dir /usr/lib/modules-load.d
|
|
|
|
/usr/lib/modules-load.d/multipath.conf
|
2018-12-12 14:23:16 +01:00
|
|
|
%dir /usr/lib/dracut
|
|
|
|
%dir /usr/lib/dracut/dracut.conf.d
|
2022-10-24 10:46:58 +02:00
|
|
|
/usr/lib/dracut/dracut.conf.d/multipath.conf
|
|
|
|
%{_tmpfilesdir}/multipath.conf
|
2007-01-16 00:25:57 +01:00
|
|
|
%{_mandir}/man8/multipath.8*
|
2007-05-17 11:47:22 +02:00
|
|
|
%{_mandir}/man5/multipath.conf.5*
|
2007-01-16 00:25:57 +01:00
|
|
|
%{_mandir}/man8/multipathd.8*
|
2022-09-07 16:56:02 +02:00
|
|
|
%{_mandir}/man8/multipathc.8*
|
2012-05-30 17:33:50 +02:00
|
|
|
%{_mandir}/man8/mpathpersist.8*
|
2023-01-18 10:28:27 +01:00
|
|
|
%ghost %attr(700,root,root) /run/multipath
|
2013-02-01 11:10:56 +01:00
|
|
|
|
2019-04-01 21:21:40 +02:00
|
|
|
%files -n libmpath0
|
2021-06-08 18:14:52 +02:00
|
|
|
%{libdir}/libmultipath.so.0
|
|
|
|
%{libdir}/libmpathcmd.so.0
|
|
|
|
%{libdir}/libmpathpersist.so.0
|
|
|
|
%{libdir}/libmpathvalid.so.0
|
2022-09-07 16:56:02 +02:00
|
|
|
%{libdir}/libmpathutil.so.0
|
2021-06-08 18:14:52 +02:00
|
|
|
%{libdir}/multipath
|
2019-04-01 21:21:40 +02:00
|
|
|
%license LICENSES/GPL-2.0
|
|
|
|
%license LICENSES/LGPL-2.0
|
|
|
|
%license LICENSES/LGPL-2.1
|
|
|
|
%license README.licenses
|
|
|
|
|
2013-02-01 11:10:56 +01:00
|
|
|
%files devel
|
2021-06-08 18:14:52 +02:00
|
|
|
%{_libdir}/libmultipath.so
|
|
|
|
%{_libdir}/libmpathcmd.so
|
|
|
|
%{_libdir}/libmpathpersist.so
|
|
|
|
%{_libdir}/libmpathvalid.so
|
2022-09-07 16:56:02 +02:00
|
|
|
%{_libdir}/libmpathutil.so
|
2016-06-07 10:03:45 +02:00
|
|
|
/usr/include/mpath_cmd.h
|
2013-02-01 11:10:56 +01:00
|
|
|
/usr/include/mpath_persist.h
|
Accepting request 894131 from home:mwilck:branches:Base:System
- Update to version 0.8.6+10+suse.47711374:
* Github workflows: add CI for SUSE-specific branches
- Disabled LTO for multipath-tools
* The test for is_valid_path fails if LTO is enabled, just
disabling it for %check is insufficient.
- Update to version 0.8.6+9+suse.6c05a61:
Update to upstream 0.8.6.
* add eh_deadline option to avoid endless SCSI error handling
* add wwid_recheck option to detect storage configuration changes
* add library versioning for libmultipath, libmpathpersist etc. and
to libmultipath plugins
* move some global symbols to libmultipath (udev, logsink, etc)
and provide default implementations for get_multipath_config() etc.
This allows simplifiying libmpathpersist_example.c drastically.
* fixes for shutdown issues and various race conditions on exit
* improve cleanup on exit, fix memory leaks
* add libmpathvalid library
* fixes for SAS expanders (bsc#1178377, bsc#1178379, bsc#1177081)
* Avoid access to root FS while queueing IO (bsc#1178049,
bsc#1181234)
* lots of bug fixes, additions to built-in hardware table, and
CI improvements (bsc#1186212)
* kpartx: free loop device after listing partitions (boo#1107187)
Bug fixes on top of 0.8.5 mentioned below are also included in
this upstream version.
(bsc#1182072, bsc#1177371)
(bsc#1181435, bsc#1183666)
OBS-URL: https://build.opensuse.org/request/show/894131
OBS-URL: https://build.opensuse.org/package/show/Base:System/multipath-tools?expand=0&rev=253
2021-05-18 21:47:44 +02:00
|
|
|
/usr/include/mpath_valid.h
|
2012-05-30 17:33:50 +02:00
|
|
|
%{_mandir}/man3/mpath_persistent_*
|
2017-11-06 16:16:39 +01:00
|
|
|
%doc libmpathpersist-example.c
|
Accepting request 894131 from home:mwilck:branches:Base:System
- Update to version 0.8.6+10+suse.47711374:
* Github workflows: add CI for SUSE-specific branches
- Disabled LTO for multipath-tools
* The test for is_valid_path fails if LTO is enabled, just
disabling it for %check is insufficient.
- Update to version 0.8.6+9+suse.6c05a61:
Update to upstream 0.8.6.
* add eh_deadline option to avoid endless SCSI error handling
* add wwid_recheck option to detect storage configuration changes
* add library versioning for libmultipath, libmpathpersist etc. and
to libmultipath plugins
* move some global symbols to libmultipath (udev, logsink, etc)
and provide default implementations for get_multipath_config() etc.
This allows simplifiying libmpathpersist_example.c drastically.
* fixes for shutdown issues and various race conditions on exit
* improve cleanup on exit, fix memory leaks
* add libmpathvalid library
* fixes for SAS expanders (bsc#1178377, bsc#1178379, bsc#1177081)
* Avoid access to root FS while queueing IO (bsc#1178049,
bsc#1181234)
* lots of bug fixes, additions to built-in hardware table, and
CI improvements (bsc#1186212)
* kpartx: free loop device after listing partitions (boo#1107187)
Bug fixes on top of 0.8.5 mentioned below are also included in
this upstream version.
(bsc#1182072, bsc#1177371)
(bsc#1181435, bsc#1183666)
OBS-URL: https://build.opensuse.org/request/show/894131
OBS-URL: https://build.opensuse.org/package/show/Base:System/multipath-tools?expand=0&rev=253
2021-05-18 21:47:44 +02:00
|
|
|
%doc libmpathpersist-example-old.c
|
2007-01-16 00:25:57 +01:00
|
|
|
|
2007-05-21 18:10:25 +02:00
|
|
|
%files -n kpartx
|
2018-04-10 10:32:36 +02:00
|
|
|
%license LICENSES/GPL-2.0
|
2021-06-08 18:14:52 +02:00
|
|
|
%{sbindir}/kpartx
|
2017-09-03 01:30:12 +02:00
|
|
|
%{_udevrulesdir}/00-dont-del-part-nodes.rules
|
|
|
|
%{_udevrulesdir}/11-dm-parts.rules
|
2014-03-03 10:00:19 +01:00
|
|
|
%{_udevrulesdir}/66-kpartx.rules
|
2017-09-03 01:30:12 +02:00
|
|
|
%{_udevrulesdir}/68-del-part-nodes.rules
|
2021-06-08 18:14:52 +02:00
|
|
|
/usr/lib/udev/kpartx_id
|
|
|
|
/usr/lib/dracut/dracut.conf.d/dm-parts.conf
|
2007-05-21 18:10:25 +02:00
|
|
|
%{_mandir}/man8/kpartx.8*
|
2008-04-30 00:47:42 +02:00
|
|
|
|
2017-09-03 01:30:12 +02:00
|
|
|
%posttrans -n kpartx
|
|
|
|
# The kpartx package contains udev rules that may need to be in initrd.
|
|
|
|
%{?regenerate_initrd_posttrans}
|
|
|
|
|
2019-04-01 21:21:40 +02:00
|
|
|
%post -n libdmmp%{libdmmp_version} -p %{run_ldconfig}
|
|
|
|
%postun -n libdmmp%{libdmmp_version} -p %{run_ldconfig}
|
2017-03-20 13:52:30 +01:00
|
|
|
|
2019-04-17 20:57:45 +02:00
|
|
|
%if 0%{?with_libdmmp} == 1
|
|
|
|
|
2017-03-20 13:52:30 +01:00
|
|
|
%files -n libdmmp%{libdmmp_version}
|
|
|
|
%defattr(-,root,root)
|
2018-04-10 10:32:36 +02:00
|
|
|
%license LICENSES/GPL-3.0
|
2017-04-28 11:13:05 +02:00
|
|
|
/%{_libdir}/libdmmp.so.%{_libdmmp_version}
|
2017-03-20 13:52:30 +01:00
|
|
|
|
|
|
|
%files -n libdmmp-devel
|
|
|
|
%defattr(-,root,root)
|
2021-06-08 18:14:52 +02:00
|
|
|
%{_libdir}/libdmmp.so
|
2017-03-20 13:52:30 +01:00
|
|
|
%{_mandir}/man3/libdmmp.h*
|
|
|
|
%{_mandir}/man3/dmmp_*
|
|
|
|
%{_includedir}/libdmmp
|
2017-04-28 11:13:05 +02:00
|
|
|
%{_libdir}/pkgconfig/libdmmp.pc
|
2017-03-20 13:52:30 +01:00
|
|
|
|
2020-05-13 16:11:02 +02:00
|
|
|
%endif
|
2017-03-20 13:52:30 +01:00
|
|
|
|
2007-05-17 11:47:22 +02:00
|
|
|
%changelog
|