2006-12-18 14:01:39 +01:00
|
|
|
#
|
2012-10-18 10:15:42 +02:00
|
|
|
# spec file for package lvm2
|
2006-12-18 14:01:39 +01:00
|
|
|
#
|
2019-01-14 14:36:28 +01:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2006-12-18 14:01:39 +01:00
|
|
|
#
|
2008-08-14 01:57:23 +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.
|
|
|
|
|
2019-01-14 14:36:28 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2006-12-18 14:01:39 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2018-08-21 05:13:03 +02:00
|
|
|
%define _unpackaged_files_terminate_build 0
|
2019-08-30 10:34:07 +02:00
|
|
|
%define libname libdevmapper1_03
|
|
|
|
%define libname_event libdevmapper-event1_03
|
2017-04-10 12:40:22 +02:00
|
|
|
%define _udevdir %(pkg-config --variable=udevdir udev)
|
2019-08-30 10:34:07 +02:00
|
|
|
%define cmdlib liblvm2cmd2_03
|
|
|
|
%define lvm2_version 2.03.05
|
|
|
|
%define device_mapper_version 1.02.163
|
2017-07-04 14:31:34 +02:00
|
|
|
%define thin_provisioning_version 0.7.0
|
2019-08-30 10:34:07 +02:00
|
|
|
%define _supportsanlock 0
|
|
|
|
%define dlm_version 4.0
|
|
|
|
%if 0%{_supportsanlock} == 1
|
|
|
|
%define sanlock_version 3.3.0
|
|
|
|
%endif
|
|
|
|
%global flavor @BUILD_FLAVOR@%{nil}
|
|
|
|
%define psuffix %{nil}
|
|
|
|
%if "%{flavor}" == "devicemapper"
|
2019-09-05 12:03:51 +02:00
|
|
|
%define psuffix -device-mapper
|
2019-08-30 10:34:07 +02:00
|
|
|
%bcond_without devicemapper
|
|
|
|
%else
|
|
|
|
%bcond_with devicemapper
|
|
|
|
%endif
|
|
|
|
%if "%{flavor}" == "lockd"
|
2019-09-05 12:03:51 +02:00
|
|
|
%define psuffix -lvmlockd
|
2019-08-30 10:34:07 +02:00
|
|
|
%bcond_without lockd
|
|
|
|
%else
|
|
|
|
%bcond_with lockd
|
|
|
|
%endif
|
|
|
|
Name: lvm2%{psuffix}
|
2014-09-25 10:31:10 +02:00
|
|
|
Version: %{lvm2_version}
|
2014-09-03 18:27:33 +02:00
|
|
|
Release: 0
|
2012-10-23 19:40:13 +02:00
|
|
|
Summary: Logical Volume Manager Tools
|
2018-04-19 11:49:14 +02:00
|
|
|
License: GPL-2.0-or-later AND LGPL-2.1-or-later
|
2012-10-18 10:15:42 +02:00
|
|
|
Group: System/Base
|
2019-08-30 10:45:24 +02:00
|
|
|
URL: https://www.sourceware.org/lvm2/
|
2016-05-11 05:42:15 +02:00
|
|
|
Source: ftp://sources.redhat.com/pub/lvm2/LVM2.%{version}.tgz
|
2006-12-18 14:01:39 +01:00
|
|
|
Source1: lvm.conf
|
2016-05-11 05:42:15 +02:00
|
|
|
Source42: ftp://sources.redhat.com/pub/lvm2/LVM2.%{version}.tgz.asc
|
2019-09-06 11:08:10 +02:00
|
|
|
Source99: baselibs.conf
|
2019-08-30 10:45:24 +02:00
|
|
|
# Upstream patches
|
2019-09-05 12:03:51 +02:00
|
|
|
Patch0001: bug-1122666_devices-drop-open-error-message.patch
|
2019-12-25 03:03:58 +01:00
|
|
|
Patch0002: bug-1150021_01-scanning-open-devs-rw-when-rescanning-for-write.patch
|
|
|
|
Patch0003: bug-1149408_Fix-rounding-writes-up-to-sector-size.patch
|
|
|
|
Patch0004: bug-1149408_vgcreate-vgextend-restrict-PVs-with-mixed-block-size.patch
|
|
|
|
Patch0005: bug-1152378-md-component-detection-for-differing-PV-and-device-s.patch
|
|
|
|
Patch0006: bug-1152378-pvscan-fix-PV-online-when-device-has-a-different-siz.patch
|
|
|
|
Patch0007: jcs-SLE5498_pvscan-allow-use-of-noudevsync-option.patch
|
|
|
|
Patch0008: bug-1154655_udev-remove-unsupported-OPTIONS-event_timeout-rule.patch
|
|
|
|
Patch0009: bug-1158628_01-tests-replaces-grep-q-usage.patch
|
|
|
|
Patch0010: bug-1158628_02-tests-fix-ra-checking.patch
|
|
|
|
Patch0011: bug-1158628_03-tests-simplify-some-var-settings.patch
|
|
|
|
Patch0012: bug-1158628-04-pvmove-correcting-read_ahead-setting.patch
|
|
|
|
Patch0013: bug-1158628_05-activation-add-synchronization-point.patch
|
|
|
|
Patch0014: bug-1158628_06-pvmove-add-missing-synchronization.patch
|
|
|
|
Patch0015: bug-1158628_07-activation-extend-handling-of-pending_delete.patch
|
|
|
|
Patch0016: bug-1158628_08-lv_manip-add-synchronizations.patch
|
|
|
|
Patch0017: bug-1158628_09-lvconvert-improve-validation-thin-and-cache-pool-con.patch
|
|
|
|
Patch0018: bug-1158628_10-thin-activate-layer-pool-aas-read-only-LV.patch
|
|
|
|
Patch0019: bug-1158628_11-tests-mdadm-stop-in-test-cleanup.patch
|
|
|
|
Patch0020: bug-1158628_12-test-increase-size-of-raid10-LV-allowing-tests-to-su.patch
|
|
|
|
Patch0021: bug-1158628_13-lvconvert-fix-return-value-when-zeroing-fails.patch
|
|
|
|
Patch0022: bug-1158628_14-tests-add-extra-settle.patch
|
|
|
|
Patch0023: bug-1158628_15-test-Fix-handling-leftovers-from-previous-tests.patch
|
|
|
|
Patch0024: bug-1158861_01-config-remove-filter-typo.patch
|
|
|
|
Patch0025: bug-1158861_02-config-Fix-default-option-which-makes-no-sense.patch
|
|
|
|
Patch0026: bug-1158861_03-vgchange-don-t-fail-monitor-command-if-vg-is-exporte.patch
|
|
|
|
Patch0027: bug-1158861_04-fix-duplicate-pv-size-check.patch
|
|
|
|
Patch0028: bug-1158861_05-hints-fix-copy-of-filter.patch
|
|
|
|
Patch0029: bug-1158861_06-fix-segfault-for-invalid-characters-in-vg-name.patch
|
|
|
|
Patch0030: bug-1158861_07-vgck-let-updatemetadata-repair-mismatched-metadata.patch
|
|
|
|
Patch0031: bug-1158861_08-hints-fix-mem-leaking-buffers.patch
|
|
|
|
Patch0032: bug-1158861_09-pvcreate-pvremove-fix-reacquiring-global-lock-after.patch
|
|
|
|
Patch0033: bug-1150021_02-bcache-add-bcache_abort.patch
|
|
|
|
Patch0034: bug-1150021_03-label-Use-bcache_abort_fd-to-ensure-blocks-are-no-lo.patch
|
|
|
|
Patch0035: bug-1150021_04-bcache-add-unit-test.patch
|
|
|
|
Patch0036: bug-1150021_05-bcache-bcache_invalidate_fd-only-remove-prefixes-on.patch
|
|
|
|
Patch0037: bug-1150021_06-fix-dev_unset_last_byte-after-write-error.patch
|
2019-08-30 10:45:24 +02:00
|
|
|
# SUSE patches: 1000+ for LVM
|
|
|
|
# Never upstream
|
|
|
|
Patch1001: cmirrord_remove_date_time_from_compilation.patch
|
|
|
|
Patch1002: fate-309425_display-dm-name-for-lv-name.patch
|
|
|
|
Patch1003: fate-31841_fsadm-add-support-for-btrfs.patch
|
|
|
|
Patch1004: bug-935623_dmeventd-fix-dso-name-wrong-compare.patch
|
2019-12-10 10:29:09 +01:00
|
|
|
# SUSE patches 2000+ for device mapper, udev rules
|
2019-08-30 10:45:24 +02:00
|
|
|
Patch2001: bug-1012973_simplify-special-case-for-md-in-69-dm-lvm-metadata.patch
|
2019-12-10 10:29:09 +01:00
|
|
|
# SUSE patches 3000+ for test code
|
|
|
|
# SUSE patches 4000+ for lvm2.spec
|
2019-08-30 10:45:24 +02:00
|
|
|
Patch4001: bug-1037309_Makefile-skip-compliling-daemons-lvmlockd-directory.patch
|
2019-09-05 12:03:51 +02:00
|
|
|
# To detect modprobe during build
|
|
|
|
BuildRequires: kmod-compat
|
|
|
|
BuildRequires: libaio-devel
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: thin-provisioning-tools >= %{thin_provisioning_version}
|
|
|
|
BuildRequires: pkgconfig(libudev)
|
2019-08-30 10:45:24 +02:00
|
|
|
Requires: device-mapper >= %{device_mapper_version}
|
|
|
|
Requires: modutils
|
|
|
|
Requires(post): coreutils
|
|
|
|
Requires(postun): coreutils
|
|
|
|
Provides: lvm = %{version}
|
|
|
|
Obsoletes: lvm2-cmirrord
|
|
|
|
%{?systemd_requires}
|
2019-08-30 10:34:07 +02:00
|
|
|
%if %{with devicemapper}
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: suse-module-tools
|
|
|
|
BuildRequires: pkgconfig(libselinux)
|
|
|
|
BuildRequires: pkgconfig(libsepol)
|
|
|
|
BuildRequires: pkgconfig(systemd)
|
|
|
|
%else
|
|
|
|
BuildRequires: libcorosync-devel
|
|
|
|
BuildRequires: pkgconfig(blkid)
|
2019-09-05 12:03:51 +02:00
|
|
|
%if %{with lockd}
|
|
|
|
BuildRequires: libdlm-devel
|
2019-08-30 10:45:24 +02:00
|
|
|
%if 0%{_supportsanlock} == 1
|
|
|
|
BuildRequires: sanlock-devel >= %{sanlock_version}
|
|
|
|
%endif
|
2019-08-30 10:34:07 +02:00
|
|
|
%else
|
2017-04-10 12:40:22 +02:00
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: libselinux-devel
|
|
|
|
BuildRequires: readline-devel
|
|
|
|
BuildRequires: pkgconfig(systemd)
|
|
|
|
BuildRequires: pkgconfig(udev)
|
2019-08-30 10:34:07 +02:00
|
|
|
%endif
|
|
|
|
%endif
|
2017-05-16 11:02:24 +02:00
|
|
|
|
2006-12-18 14:01:39 +01:00
|
|
|
%description
|
|
|
|
Programs and man pages for configuring and using the LVM2 Logical
|
|
|
|
Volume Manager.
|
|
|
|
|
2016-05-11 05:42:15 +02:00
|
|
|
%prep
|
|
|
|
%setup -q -n LVM2.%{version}
|
2019-09-05 12:03:51 +02:00
|
|
|
%patch0001 -p1
|
2019-09-09 08:55:46 +02:00
|
|
|
%patch0002 -p1
|
|
|
|
%patch0003 -p1
|
2019-10-03 08:59:05 +02:00
|
|
|
%patch0004 -p1
|
|
|
|
%patch0005 -p1
|
2019-10-21 11:54:18 +02:00
|
|
|
%patch0006 -p1
|
2019-10-23 12:35:49 +02:00
|
|
|
%patch0007 -p1
|
2019-12-10 10:29:09 +01:00
|
|
|
%patch0008 -p1
|
|
|
|
%patch0009 -p1
|
|
|
|
%patch0010 -p1
|
|
|
|
%patch0011 -p1
|
|
|
|
%patch0012 -p1
|
|
|
|
%patch0013 -p1
|
|
|
|
%patch0014 -p1
|
|
|
|
%patch0015 -p1
|
|
|
|
%patch0016 -p1
|
|
|
|
%patch0017 -p1
|
|
|
|
%patch0018 -p1
|
|
|
|
%patch0019 -p1
|
|
|
|
%patch0020 -p1
|
|
|
|
%patch0021 -p1
|
|
|
|
%patch0022 -p1
|
|
|
|
%patch0023 -p1
|
|
|
|
%patch0024 -p1
|
|
|
|
%patch0025 -p1
|
|
|
|
%patch0026 -p1
|
|
|
|
%patch0027 -p1
|
|
|
|
%patch0028 -p1
|
|
|
|
%patch0029 -p1
|
|
|
|
%patch0030 -p1
|
|
|
|
%patch0031 -p1
|
2019-12-25 03:03:58 +01:00
|
|
|
%patch0032 -p1
|
|
|
|
%patch0033 -p1
|
|
|
|
%patch0034 -p1
|
|
|
|
%patch0035 -p1
|
|
|
|
%patch0036 -p1
|
|
|
|
%patch0037 -p1
|
2014-12-04 07:08:29 +01:00
|
|
|
%patch1001 -p1
|
|
|
|
%patch1002 -p1
|
2017-05-04 04:45:40 +02:00
|
|
|
%patch1003 -p1
|
2014-12-04 07:08:29 +01:00
|
|
|
%patch1004 -p1
|
2017-11-24 12:13:44 +01:00
|
|
|
%patch2001 -p1
|
2006-12-18 14:01:39 +01:00
|
|
|
|
2019-08-30 10:34:07 +02:00
|
|
|
%if !%{with lockd}
|
2017-06-17 17:47:00 +02:00
|
|
|
%patch4001 -p1
|
2019-08-30 10:34:07 +02:00
|
|
|
%endif
|
2017-05-16 11:02:24 +02:00
|
|
|
|
2006-12-18 14:01:39 +01:00
|
|
|
%build
|
2019-08-30 10:34:07 +02:00
|
|
|
%if !%{with devicemapper} && !%{with lockd}
|
2016-05-11 05:42:15 +02:00
|
|
|
extra_opts="
|
2016-12-28 12:04:35 +01:00
|
|
|
--enable-blkid_wiping
|
2017-04-10 13:01:31 +02:00
|
|
|
--enable-lvmpolld
|
|
|
|
--enable-realtime
|
|
|
|
--with-cache=internal
|
2016-05-11 05:42:15 +02:00
|
|
|
--with-default-locking-dir=/run/lock/lvm
|
|
|
|
--with-default-pid-dir=/run
|
|
|
|
--with-default-run-dir=/run/lvm
|
2018-08-21 05:13:03 +02:00
|
|
|
--enable-cmirrord
|
2019-08-30 10:34:07 +02:00
|
|
|
--enable-fsadm
|
|
|
|
--disable-silent-rules
|
|
|
|
--enable-write_install
|
|
|
|
--with-vdo=internal
|
2019-08-30 10:45:24 +02:00
|
|
|
--with-vdo-format=%{_bindir}/vdoformat
|
2016-05-11 05:42:15 +02:00
|
|
|
"
|
2019-08-30 10:34:07 +02:00
|
|
|
%endif
|
|
|
|
%if %{with lockd}
|
|
|
|
extra_opts="
|
|
|
|
--enable-blkid_wiping
|
|
|
|
--enable-lvmpolld
|
|
|
|
--enable-realtime
|
|
|
|
--with-default-locking-dir=/run/lock/lvm
|
|
|
|
--with-default-pid-dir=/run
|
|
|
|
--with-default-run-dir=/run/lvm
|
|
|
|
--with-cluster=internal
|
|
|
|
--enable-lvmlockd-dlm
|
|
|
|
%if 0%{_supportsanlock} == 1
|
|
|
|
--enable-lvmlockd-sanlock
|
|
|
|
%endif
|
|
|
|
--disable-silent-rules
|
|
|
|
"
|
|
|
|
%endif
|
2017-03-01 03:49:19 +01:00
|
|
|
|
2016-05-11 05:42:15 +02:00
|
|
|
### COMMON-CONFIG-BEGIN ###
|
2019-08-30 10:45:24 +02:00
|
|
|
export PATH=$PATH:/sbin:%{_sbindir}
|
2017-10-23 13:56:11 +02:00
|
|
|
# Why this messy fix here? someone released a wrong version...
|
2017-12-19 11:40:00 +01:00
|
|
|
sed -ie "s/%{device_mapper_version}/1.03.01/g" VERSION_DM
|
2014-09-25 10:31:10 +02:00
|
|
|
%configure \
|
2017-04-10 12:41:54 +02:00
|
|
|
--enable-dmeventd \
|
|
|
|
--enable-cmdlib \
|
|
|
|
--enable-udev_rules \
|
|
|
|
--enable-udev_sync \
|
2016-05-11 05:42:15 +02:00
|
|
|
--with-udev-prefix="%{_prefix}/" \
|
|
|
|
--enable-selinux \
|
|
|
|
--enable-pkgconfig \
|
|
|
|
--with-usrlibdir=%{_libdir} \
|
|
|
|
--with-usrsbindir=%{_sbindir} \
|
|
|
|
--with-default-dm-run-dir=/run \
|
|
|
|
--with-tmpfilesdir=%{_tmpfilesdir} \
|
|
|
|
--with-thin=internal \
|
|
|
|
--with-device-gid=6 \
|
|
|
|
--with-device-mode=0640 \
|
|
|
|
--with-device-uid=0 \
|
|
|
|
--with-dmeventd-path=%{_sbindir}/dmeventd \
|
|
|
|
--with-thin-check=%{_sbindir}/thin_check \
|
|
|
|
--with-thin-dump=%{_sbindir}/thin_dump \
|
|
|
|
--with-thin-repair=%{_sbindir}/thin_repair \
|
|
|
|
$extra_opts
|
|
|
|
### COMMON-CONFIG-END ###
|
2017-03-01 03:49:19 +01:00
|
|
|
|
2019-08-30 10:34:07 +02:00
|
|
|
%if %{with devicemapper}
|
|
|
|
%make_build device-mapper
|
|
|
|
%else
|
2019-03-20 03:51:36 +01:00
|
|
|
%make_build
|
2019-08-30 10:34:07 +02:00
|
|
|
%endif
|
2006-12-18 14:01:39 +01:00
|
|
|
|
|
|
|
%install
|
2019-08-30 10:34:07 +02:00
|
|
|
%if %{with devicemapper}
|
|
|
|
make DESTDIR=%{buildroot} \
|
|
|
|
install_device-mapper \
|
|
|
|
install_systemd_units
|
|
|
|
|
|
|
|
ln -s service %{buildroot}/%{_sbindir}/rcdm-event
|
|
|
|
|
|
|
|
# provide 1.02 compat links for the shared libraries
|
|
|
|
# this is needed for various binary packages
|
|
|
|
ln -s libdevmapper.so.1.03 %{buildroot}/%{_libdir}/libdevmapper.so.1.02
|
|
|
|
ln -s libdevmapper-event.so.1.03 %{buildroot}/%{_libdir}/libdevmapper-event.so.1.02
|
|
|
|
|
|
|
|
# remove blkd, will be in lvm2 proper
|
|
|
|
# without force on purpose to detect changes and fail if it happens
|
|
|
|
rm %{buildroot}%{_sbindir}/blkdeactivate
|
|
|
|
rm %{buildroot}%{_unitdir}/blk-availability.service
|
|
|
|
rm %{buildroot}%{_unitdir}/lvm2-monitor.service
|
|
|
|
rm %{buildroot}%{_mandir}/man8/blkdeactivate.8
|
|
|
|
|
|
|
|
# compat symlinks in /sbin remove with Leap 43
|
|
|
|
mkdir -p %{buildroot}/sbin
|
|
|
|
ln -s %{_sbindir}/dmsetup %{buildroot}/sbin/dmsetup
|
|
|
|
%else
|
|
|
|
%if %{with lockd}
|
|
|
|
make DESTDIR=%{buildroot} \
|
|
|
|
install_systemd_units install_systemd_generators
|
|
|
|
make DESTDIR=%{buildroot} install -C daemons/lvmlockd
|
|
|
|
|
|
|
|
# lvmlockd does not have separate target install the mans by hand for now
|
|
|
|
install -m0644 -D man/lvmlockd.8 %{buildroot}%{_mandir}/man8/lvmlockd.8
|
|
|
|
install -m0644 -D man/lvmlockctl.8 %{buildroot}%{_mandir}/man8/lvmlockctl.8
|
|
|
|
|
|
|
|
# rc services symlinks
|
|
|
|
ln -s service %{buildroot}%{_sbindir}/rclvm2-lvmlockd
|
|
|
|
ln -s service %{buildroot}%{_sbindir}/rclvm2-lvmlocking
|
|
|
|
|
|
|
|
# remove files from lvm2 split due to systemd_generators picking them up
|
|
|
|
rm %{buildroot}%{_unitdir}/blk-availability.service
|
|
|
|
rm %{buildroot}%{_unitdir}/dm-event.service
|
|
|
|
rm %{buildroot}%{_unitdir}/dm-event.socket
|
|
|
|
rm %{buildroot}%{_unitdir}/lvm2-monitor.service
|
|
|
|
rm %{buildroot}%{_mandir}/man8/lvm2-activation-generator.8
|
|
|
|
rm %{buildroot}%{_libexecdir}/systemd/system-generators/lvm2-activation-generator
|
|
|
|
rm %{buildroot}%{_unitdir}/lvm2-lvmpolld.service
|
|
|
|
rm %{buildroot}%{_unitdir}/lvm2-lvmpolld.socket
|
|
|
|
rm %{buildroot}%{_unitdir}/lvm2-pvscan@.service
|
|
|
|
%else
|
2014-12-12 11:19:37 +01:00
|
|
|
%make_install
|
2016-05-11 05:42:15 +02:00
|
|
|
make install_system_dirs DESTDIR=%{buildroot}
|
|
|
|
make install_systemd_units DESTDIR=%{buildroot}
|
|
|
|
make install_systemd_generators DESTDIR=%{buildroot}
|
|
|
|
make install_tmpfiles_configuration DESTDIR=%{buildroot}
|
|
|
|
# Install configuration file
|
|
|
|
install -m 644 %{SOURCE1} "%{buildroot}/%{_sysconfdir}/lvm/"
|
2017-01-10 10:43:13 +01:00
|
|
|
# Install testsuite
|
|
|
|
make -C test install DESTDIR=%{buildroot}
|
2016-05-11 05:42:15 +02:00
|
|
|
|
|
|
|
pushd "%{buildroot}/%{_libdir}"
|
2019-08-30 10:34:07 +02:00
|
|
|
ln -sf liblvm2cmd.so.2.03 liblvm2cmd.so
|
2014-12-12 11:19:37 +01:00
|
|
|
for i in libdevmapper-event-lvm2{mirror,raid,snapshot,thin}; do
|
2016-05-11 05:42:15 +02:00
|
|
|
ln -sf "device-mapper/$i.so" "$i.so"
|
2019-08-30 10:34:07 +02:00
|
|
|
ln -sf "device-mapper/$i.so" "$i.so.2.03"
|
2014-12-12 11:19:37 +01:00
|
|
|
done
|
2012-10-18 10:15:42 +02:00
|
|
|
popd
|
2006-12-18 14:01:39 +01:00
|
|
|
|
2016-05-11 05:42:15 +02:00
|
|
|
#rc compat symlinks
|
|
|
|
ln -s service %{buildroot}%{_sbindir}/rcblk-availability
|
|
|
|
ln -s service %{buildroot}%{_sbindir}/rclvm2-monitor
|
2017-04-10 13:01:31 +02:00
|
|
|
ln -s service %{buildroot}%{_sbindir}/rclvm2-lvmpolld
|
2016-05-11 05:42:15 +02:00
|
|
|
|
|
|
|
# Remove devicemapper binaries, plain rm so we fail if something change
|
|
|
|
rm %{buildroot}%{_sbindir}/dmsetup
|
|
|
|
rm %{buildroot}%{_sbindir}/dmeventd
|
|
|
|
rm %{buildroot}%{_sbindir}/dmstats
|
|
|
|
rm %{buildroot}%{_udevrulesdir}/10-dm.rules
|
|
|
|
rm %{buildroot}%{_udevrulesdir}/13-dm-disk.rules
|
|
|
|
rm %{buildroot}%{_udevrulesdir}/95-dm-notify.rules
|
|
|
|
rm %{buildroot}%{_unitdir}/dm-event.socket
|
|
|
|
rm %{buildroot}%{_unitdir}/dm-event.service
|
2017-07-04 14:31:34 +02:00
|
|
|
# See bsc#1037309 for more info
|
2019-08-30 10:34:07 +02:00
|
|
|
rm %{buildroot}%{_unitdir}/lvmlockd.service
|
|
|
|
rm %{buildroot}%{_unitdir}/lvmlocks.service
|
2017-07-04 14:31:34 +02:00
|
|
|
rm %{buildroot}%{_includedir}/libdevmapper*.h
|
2017-10-23 13:56:11 +02:00
|
|
|
rm %{buildroot}%{_libdir}/libdevmapper.so.*
|
|
|
|
rm %{buildroot}%{_libdir}/libdevmapper-event.so.*
|
2016-05-11 05:42:15 +02:00
|
|
|
rm %{buildroot}%{_libdir}/libdevmapper.so
|
|
|
|
rm %{buildroot}%{_libdir}/libdevmapper-event.so
|
|
|
|
rm %{buildroot}%{_libdir}/pkgconfig/devmapper*.pc
|
2017-05-16 11:02:24 +02:00
|
|
|
rm %{buildroot}%{_mandir}/man8/lvmlockctl.8
|
|
|
|
rm %{buildroot}%{_mandir}/man8/lvmlockd.8
|
2017-07-04 14:31:34 +02:00
|
|
|
rm %{buildroot}%{_mandir}/man8/dmstats.8
|
|
|
|
rm %{buildroot}%{_mandir}/man8/dmsetup.8
|
|
|
|
rm %{buildroot}%{_mandir}/man8/dmeventd.8
|
2014-11-01 15:44:16 +01:00
|
|
|
|
2016-05-30 14:16:29 +02:00
|
|
|
# compat symlinks in /sbin remove with Leap 43
|
|
|
|
mkdir -p %{buildroot}/sbin
|
|
|
|
pushd %{buildroot}/%{_sbindir}
|
|
|
|
for i in {vg,pv,lv}*; do
|
|
|
|
ln -s %{_sbindir}/$i %{buildroot}/sbin/$i
|
|
|
|
done
|
|
|
|
popd
|
2019-08-30 10:34:07 +02:00
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if %{with devicemapper}
|
|
|
|
%package -n device-mapper
|
|
|
|
Version: %{device_mapper_version}
|
|
|
|
Release: 0
|
2019-08-30 10:45:24 +02:00
|
|
|
Summary: Device Mapper Tools
|
|
|
|
Group: System/Base
|
2019-08-30 10:34:07 +02:00
|
|
|
Requires: thin-provisioning-tools >= %{thin_provisioning_version}
|
|
|
|
Requires(post): coreutils
|
|
|
|
|
|
|
|
%description -n device-mapper
|
|
|
|
Programs and man pages for configuring and using the device mapper.
|
|
|
|
|
|
|
|
%pre -n device-mapper
|
|
|
|
%service_add_pre dm-event.service dm-event.socket
|
|
|
|
|
|
|
|
%post -n device-mapper
|
|
|
|
%service_add_post dm-event.service dm-event.socket
|
|
|
|
%{?regenerate_initrd_post}
|
|
|
|
|
|
|
|
%posttrans -n device-mapper
|
|
|
|
%{?regenerate_initrd_posttrans}
|
|
|
|
|
|
|
|
%preun -n device-mapper
|
|
|
|
%service_del_preun dm-event.service dm-event.socket
|
|
|
|
|
|
|
|
%postun -n device-mapper
|
|
|
|
%service_del_postun dm-event.service dm-event.socket
|
|
|
|
%{?regenerate_initrd_post}
|
|
|
|
|
|
|
|
%files -n device-mapper
|
|
|
|
%license COPYING COPYING.LIB
|
|
|
|
%doc README
|
|
|
|
%doc udev/12-dm-permissions.rules
|
|
|
|
/sbin/dmsetup
|
|
|
|
%{_sbindir}/dmsetup
|
|
|
|
%{_sbindir}/dmeventd
|
|
|
|
%{_sbindir}/dmstats
|
2019-08-30 10:45:24 +02:00
|
|
|
%{_mandir}/man8/dmstats.8%{?ext_man}
|
|
|
|
%{_mandir}/man8/dmsetup.8%{?ext_man}
|
|
|
|
%{_mandir}/man8/dmeventd.8%{?ext_man}
|
2019-08-30 10:34:07 +02:00
|
|
|
%{_udevrulesdir}/10-dm.rules
|
|
|
|
%{_udevrulesdir}/13-dm-disk.rules
|
|
|
|
%{_udevrulesdir}/95-dm-notify.rules
|
|
|
|
%{_unitdir}/dm-event.socket
|
|
|
|
%{_sbindir}/rcdm-event
|
|
|
|
%{_unitdir}/dm-event.service
|
|
|
|
|
|
|
|
%package -n %{libname}
|
|
|
|
Version: %{device_mapper_version}
|
|
|
|
Release: 0
|
2019-08-30 10:45:24 +02:00
|
|
|
Summary: Library for device-mapper
|
|
|
|
Group: System/Libraries
|
2019-08-30 10:34:07 +02:00
|
|
|
Conflicts: %{name} < %{version}
|
|
|
|
|
|
|
|
%description -n %{libname}
|
|
|
|
Device mapper main shared library
|
|
|
|
|
|
|
|
%files -n %{libname}
|
|
|
|
%{_libdir}/libdevmapper.so.1.03
|
|
|
|
%{_libdir}/libdevmapper.so.1.02
|
|
|
|
|
|
|
|
%post -n %{libname}
|
|
|
|
if [ -f /%{_lib}/libdevmapper.so.1.03 ]; then
|
|
|
|
# Special migration - the library is now in %{_libdir}, but up to the point where
|
|
|
|
# zypp removes the 'old' device-mapper package, the old library 'wins' the ldloader race
|
|
|
|
# resulting in binaries asking for the newer version still getting the old one.
|
|
|
|
# This in turn results in funny bugs like boo#1045396
|
|
|
|
# Remove /%{_lib}/libdevmapper.so.1.02 - and the run ldconfig
|
|
|
|
rm /%{_lib}/libdevmapper.so.1.03
|
|
|
|
fi
|
|
|
|
/sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n %{libname} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%package -n %{libname_event}
|
2019-08-30 10:45:24 +02:00
|
|
|
Version: %{device_mapper_version}
|
|
|
|
Release: 0
|
2019-08-30 10:34:07 +02:00
|
|
|
Summary: Event library for device-mapper
|
|
|
|
Group: System/Libraries
|
|
|
|
Conflicts: %{name} < %{version}
|
|
|
|
|
|
|
|
%description -n %{libname_event}
|
|
|
|
Device mapper event daemon shared library
|
|
|
|
|
|
|
|
%files -n %{libname_event}
|
|
|
|
%{_libdir}/libdevmapper-event.so.1.03
|
|
|
|
%{_libdir}/libdevmapper-event.so.1.02
|
|
|
|
|
|
|
|
%post -n %{libname_event} -p /sbin/ldconfig
|
|
|
|
%postun -n %{libname_event} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%package -n device-mapper-devel
|
2019-08-30 10:45:24 +02:00
|
|
|
Version: %{device_mapper_version}
|
|
|
|
Release: 0
|
2019-08-30 10:34:07 +02:00
|
|
|
Summary: Development package for the device mapper
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: %{libname_event} = %{device_mapper_version}
|
|
|
|
Requires: %{libname} = %{device_mapper_version}
|
|
|
|
Requires: device-mapper = %{device_mapper_version}
|
|
|
|
|
|
|
|
%description -n device-mapper-devel
|
|
|
|
Files needed for software development using the device mapper
|
|
|
|
|
|
|
|
%files -n device-mapper-devel
|
|
|
|
%{_libdir}/libdevmapper.so
|
|
|
|
%{_libdir}/libdevmapper-event.so
|
|
|
|
%{_includedir}/libdevmapper.h
|
|
|
|
%{_includedir}/libdevmapper-event.h
|
|
|
|
%{_libdir}/pkgconfig/devmapper.pc
|
|
|
|
%{_libdir}/pkgconfig/devmapper-event.pc
|
|
|
|
|
|
|
|
%else
|
|
|
|
%if %{with lockd}
|
|
|
|
%package -n lvm2-lockd
|
|
|
|
Summary: LVM locking daemon
|
|
|
|
Group: System/Base
|
|
|
|
Requires: corosync
|
|
|
|
Requires: device-mapper >= %{device_mapper_version}
|
|
|
|
Requires: lvm2 = %{version}
|
2019-08-30 10:45:24 +02:00
|
|
|
Recommends: libdlm >= %{dlm_version}
|
|
|
|
Obsoletes: lvm2-clvm
|
|
|
|
%{?systemd_requires}
|
2019-08-30 10:34:07 +02:00
|
|
|
%if 0%{_supportsanlock} == 1
|
|
|
|
Requires: sanlock >= %{sanlock_version}
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%description -n lvm2-lockd
|
|
|
|
LVM commands use lvmlockd to coordinate access to shared storage.
|
|
|
|
|
|
|
|
%pre -n lvm2-lockd
|
|
|
|
%service_add_pre lvmlockd.service lvmlocks.service
|
|
|
|
|
|
|
|
%post -n lvm2-lockd
|
|
|
|
%service_add_post lvmlockd.service lvmlocks.service
|
|
|
|
|
|
|
|
%preun -n lvm2-lockd
|
|
|
|
%service_del_preun lvmlockd.service lvmlocks.service
|
|
|
|
|
|
|
|
%postun -n lvm2-lockd
|
|
|
|
%service_del_postun lvmlockd.service lvmlocks.service
|
|
|
|
|
|
|
|
%files -n lvm2-lockd
|
|
|
|
%defattr(-,root,root,)
|
|
|
|
%{_sbindir}/lvmlockd
|
|
|
|
%{_sbindir}/lvmlockctl
|
2019-08-30 10:45:24 +02:00
|
|
|
%{_mandir}/man8/lvmlockd.8%{?ext_man}
|
|
|
|
%{_mandir}/man8/lvmlockctl.8%{?ext_man}
|
2019-08-30 10:34:07 +02:00
|
|
|
%{_unitdir}/lvmlockd.service
|
|
|
|
%{_unitdir}/lvmlocks.service
|
|
|
|
%{_sbindir}/rclvm2-lvmlockd
|
|
|
|
%{_sbindir}/rclvm2-lvmlocking
|
|
|
|
|
|
|
|
%else
|
2014-05-28 16:35:15 +02:00
|
|
|
%pre
|
2019-08-30 10:34:07 +02:00
|
|
|
%service_add_pre blk-availability.service lvm2-monitor.service lvm2-lvmpolld.service lvm2-lvmpolld.socket
|
2014-05-28 16:35:15 +02:00
|
|
|
|
2006-12-18 14:01:39 +01:00
|
|
|
%post
|
2008-05-01 15:03:59 +02:00
|
|
|
/sbin/ldconfig
|
2014-04-23 14:24:53 +02:00
|
|
|
%{?regenerate_initrd_post}
|
2019-08-30 10:34:07 +02:00
|
|
|
%service_add_post blk-availability.service lvm2-monitor.service lvm2-lvmpolld.service lvm2-lvmpolld.socket
|
2016-05-11 05:42:15 +02:00
|
|
|
# Use %%tmpfiles_create when 13.2 is oldest in support scope
|
2017-01-10 10:43:13 +01:00
|
|
|
%{_bindir}/systemd-tmpfiles --create %{_tmpfilesdir}/lvm2.conf || :
|
2008-05-01 15:03:59 +02:00
|
|
|
|
2014-04-23 14:24:53 +02:00
|
|
|
%posttrans
|
|
|
|
%{?regenerate_initrd_posttrans}
|
|
|
|
|
2008-05-01 15:03:59 +02:00
|
|
|
%preun
|
2019-08-30 10:34:07 +02:00
|
|
|
%service_del_preun blk-availability.service lvm2-monitor.service lvm2-lvmpolld.service lvm2-lvmpolld.socket
|
2006-12-18 14:01:39 +01:00
|
|
|
|
|
|
|
%postun
|
2008-05-01 15:03:59 +02:00
|
|
|
/sbin/ldconfig
|
2015-12-17 04:23:36 +01:00
|
|
|
%{?regenerate_initrd_post}
|
2019-08-30 10:34:07 +02:00
|
|
|
%service_del_postun blk-availability.service lvm2-monitor.service lvm2-lvmpolld.service lvm2-lvmpolld.socket
|
2008-05-01 15:03:59 +02:00
|
|
|
|
2006-12-18 14:01:39 +01:00
|
|
|
%files
|
2019-08-30 10:34:07 +02:00
|
|
|
%license COPYING COPYING.LIB
|
2017-03-01 03:49:19 +01:00
|
|
|
%doc README VERSION WHATS_NEW
|
|
|
|
%doc doc/lvm_fault_handling.txt
|
2019-08-30 10:34:07 +02:00
|
|
|
|
2017-03-01 03:49:19 +01:00
|
|
|
# Main binaries
|
|
|
|
%{_sbindir}/blkdeactivate
|
|
|
|
%{_sbindir}/fsadm
|
|
|
|
%{_sbindir}/lvm
|
|
|
|
%{_sbindir}/lvmconfig
|
|
|
|
%{_sbindir}/lvmdump
|
2017-04-10 13:01:31 +02:00
|
|
|
%{_sbindir}/lvmpolld
|
2017-03-01 03:49:19 +01:00
|
|
|
# Other files
|
|
|
|
%{_sbindir}/lvchange
|
|
|
|
%{_sbindir}/lvconvert
|
|
|
|
%{_sbindir}/lvcreate
|
|
|
|
%{_sbindir}/lvdisplay
|
|
|
|
%{_sbindir}/lvextend
|
|
|
|
%{_sbindir}/lvmdiskscan
|
|
|
|
%{_sbindir}/lvmsadc
|
|
|
|
%{_sbindir}/lvmsar
|
|
|
|
%{_sbindir}/lvreduce
|
|
|
|
%{_sbindir}/lvremove
|
|
|
|
%{_sbindir}/lvrename
|
|
|
|
%{_sbindir}/lvresize
|
|
|
|
%{_sbindir}/lvs
|
|
|
|
%{_sbindir}/lvscan
|
|
|
|
%{_sbindir}/pvchange
|
|
|
|
%{_sbindir}/pvck
|
|
|
|
%{_sbindir}/pvcreate
|
|
|
|
%{_sbindir}/pvdisplay
|
|
|
|
%{_sbindir}/pvmove
|
|
|
|
%{_sbindir}/pvremove
|
|
|
|
%{_sbindir}/pvresize
|
|
|
|
%{_sbindir}/pvs
|
|
|
|
%{_sbindir}/pvscan
|
|
|
|
%{_sbindir}/vgcfgbackup
|
|
|
|
%{_sbindir}/vgcfgrestore
|
|
|
|
%{_sbindir}/vgchange
|
|
|
|
%{_sbindir}/vgck
|
|
|
|
%{_sbindir}/vgconvert
|
|
|
|
%{_sbindir}/vgcreate
|
|
|
|
%{_sbindir}/vgdisplay
|
|
|
|
%{_sbindir}/vgexport
|
|
|
|
%{_sbindir}/vgextend
|
|
|
|
%{_sbindir}/vgimport
|
|
|
|
%{_sbindir}/vgimportclone
|
|
|
|
%{_sbindir}/vgmerge
|
|
|
|
%{_sbindir}/vgmknodes
|
|
|
|
%{_sbindir}/vgreduce
|
|
|
|
%{_sbindir}/vgremove
|
|
|
|
%{_sbindir}/vgrename
|
|
|
|
%{_sbindir}/vgs
|
|
|
|
%{_sbindir}/vgscan
|
|
|
|
%{_sbindir}/vgsplit
|
|
|
|
%{_sbindir}/rcblk-availability
|
2017-04-10 13:01:31 +02:00
|
|
|
%{_sbindir}/rclvm2-lvmpolld
|
2017-03-01 03:49:19 +01:00
|
|
|
%{_sbindir}/rclvm2-monitor
|
|
|
|
# compat symlinks in /sbin
|
|
|
|
/sbin/lvm
|
|
|
|
/sbin/lvmconfig
|
|
|
|
/sbin/lvmdump
|
2017-04-10 13:01:31 +02:00
|
|
|
/sbin/lvmpolld
|
2017-03-01 03:49:19 +01:00
|
|
|
/sbin/lvchange
|
|
|
|
/sbin/lvconvert
|
|
|
|
/sbin/lvcreate
|
|
|
|
/sbin/lvdisplay
|
|
|
|
/sbin/lvextend
|
|
|
|
/sbin/lvmdiskscan
|
|
|
|
/sbin/lvmsadc
|
|
|
|
/sbin/lvmsar
|
|
|
|
/sbin/lvreduce
|
|
|
|
/sbin/lvremove
|
|
|
|
/sbin/lvrename
|
|
|
|
/sbin/lvresize
|
|
|
|
/sbin/lvs
|
|
|
|
/sbin/lvscan
|
|
|
|
/sbin/pvchange
|
|
|
|
/sbin/pvck
|
|
|
|
/sbin/pvcreate
|
|
|
|
/sbin/pvdisplay
|
|
|
|
/sbin/pvmove
|
|
|
|
/sbin/pvremove
|
|
|
|
/sbin/pvresize
|
|
|
|
/sbin/pvs
|
|
|
|
/sbin/pvscan
|
|
|
|
/sbin/vgcfgbackup
|
|
|
|
/sbin/vgcfgrestore
|
|
|
|
/sbin/vgchange
|
|
|
|
/sbin/vgck
|
|
|
|
/sbin/vgconvert
|
|
|
|
/sbin/vgcreate
|
|
|
|
/sbin/vgdisplay
|
|
|
|
/sbin/vgexport
|
|
|
|
/sbin/vgextend
|
|
|
|
/sbin/vgimport
|
|
|
|
/sbin/vgimportclone
|
|
|
|
/sbin/vgmerge
|
|
|
|
/sbin/vgmknodes
|
|
|
|
/sbin/vgreduce
|
|
|
|
/sbin/vgremove
|
|
|
|
/sbin/vgrename
|
|
|
|
/sbin/vgs
|
|
|
|
/sbin/vgscan
|
|
|
|
/sbin/vgsplit
|
2019-08-30 10:45:24 +02:00
|
|
|
%{_mandir}/man5/lvm.conf.5%{?ext_man}
|
|
|
|
%{_mandir}/man7/lvmcache.7%{?ext_man}
|
|
|
|
%{_mandir}/man7/lvmraid.7%{?ext_man}
|
|
|
|
%{_mandir}/man7/lvmreport.7%{?ext_man}
|
|
|
|
%{_mandir}/man7/lvmthin.7%{?ext_man}
|
|
|
|
%{_mandir}/man7/lvmsystemid.7%{?ext_man}
|
|
|
|
%{_mandir}/man7/lvmvdo.7%{?ext_man}
|
|
|
|
%{_mandir}/man8/fsadm.8%{?ext_man}
|
|
|
|
%{_mandir}/man8/lvchange.8%{?ext_man}
|
|
|
|
%{_mandir}/man8/lvconvert.8%{?ext_man}
|
|
|
|
%{_mandir}/man8/lvcreate.8%{?ext_man}
|
|
|
|
%{_mandir}/man8/lvdisplay.8%{?ext_man}
|
|
|
|
%{_mandir}/man8/lvextend.8%{?ext_man}
|
|
|
|
%{_mandir}/man8/lvm.8%{?ext_man}
|
|
|
|
%{_mandir}/man8/lvm2-activation-generator.8%{?ext_man}
|
|
|
|
%{_mandir}/man8/lvm-config.8%{?ext_man}
|
|
|
|
%{_mandir}/man8/lvmconfig.8%{?ext_man}
|
|
|
|
%{_mandir}/man8/lvm-dumpconfig.8%{?ext_man}
|
|
|
|
%{_mandir}/man8/lvmdiskscan.8%{?ext_man}
|
|
|
|
%{_mandir}/man8/lvmdump.8%{?ext_man}
|
|
|
|
%{_mandir}/man8/lvm-fullreport.8%{?ext_man}
|
|
|
|
%{_mandir}/man8/lvmsadc.8%{?ext_man}
|
|
|
|
%{_mandir}/man8/lvmsar.8%{?ext_man}
|
|
|
|
%{_mandir}/man8/lvreduce.8%{?ext_man}
|
|
|
|
%{_mandir}/man8/lvremove.8%{?ext_man}
|
|
|
|
%{_mandir}/man8/lvrename.8%{?ext_man}
|
|
|
|
%{_mandir}/man8/lvresize.8%{?ext_man}
|
|
|
|
%{_mandir}/man8/lvs.8%{?ext_man}
|
|
|
|
%{_mandir}/man8/lvscan.8%{?ext_man}
|
|
|
|
%{_mandir}/man8/pvchange.8%{?ext_man}
|
|
|
|
%{_mandir}/man8/pvck.8%{?ext_man}
|
|
|
|
%{_mandir}/man8/pvcreate.8%{?ext_man}
|
|
|
|
%{_mandir}/man8/pvdisplay.8%{?ext_man}
|
|
|
|
%{_mandir}/man8/pvmove.8%{?ext_man}
|
|
|
|
%{_mandir}/man8/pvremove.8%{?ext_man}
|
|
|
|
%{_mandir}/man8/pvresize.8%{?ext_man}
|
|
|
|
%{_mandir}/man8/pvs.8%{?ext_man}
|
|
|
|
%{_mandir}/man8/pvscan.8%{?ext_man}
|
|
|
|
%{_mandir}/man8/vgcfgbackup.8%{?ext_man}
|
|
|
|
%{_mandir}/man8/vgcfgrestore.8%{?ext_man}
|
|
|
|
%{_mandir}/man8/vgchange.8%{?ext_man}
|
|
|
|
%{_mandir}/man8/vgck.8%{?ext_man}
|
|
|
|
%{_mandir}/man8/vgconvert.8%{?ext_man}
|
|
|
|
%{_mandir}/man8/vgcreate.8%{?ext_man}
|
|
|
|
%{_mandir}/man8/vgdisplay.8%{?ext_man}
|
|
|
|
%{_mandir}/man8/vgexport.8%{?ext_man}
|
|
|
|
%{_mandir}/man8/vgextend.8%{?ext_man}
|
|
|
|
%{_mandir}/man8/vgimport.8%{?ext_man}
|
|
|
|
%{_mandir}/man8/vgimportclone.8%{?ext_man}
|
|
|
|
%{_mandir}/man8/vgmerge.8%{?ext_man}
|
|
|
|
%{_mandir}/man8/vgmknodes.8%{?ext_man}
|
|
|
|
%{_mandir}/man8/vgreduce.8%{?ext_man}
|
|
|
|
%{_mandir}/man8/vgremove.8%{?ext_man}
|
|
|
|
%{_mandir}/man8/vgrename.8%{?ext_man}
|
|
|
|
%{_mandir}/man8/vgs.8%{?ext_man}
|
|
|
|
%{_mandir}/man8/vgscan.8%{?ext_man}
|
|
|
|
%{_mandir}/man8/vgsplit.8%{?ext_man}
|
|
|
|
%{_mandir}/man8/blkdeactivate.8%{?ext_man}
|
|
|
|
%{_mandir}/man8/lvmpolld.8%{?ext_man}
|
|
|
|
%{_mandir}/man8/lvm-lvpoll.8%{?ext_man}
|
2017-03-01 03:49:19 +01:00
|
|
|
%{_udevdir}/rules.d/11-dm-lvm.rules
|
|
|
|
%{_udevdir}/rules.d/69-dm-lvm-metad.rules
|
2014-12-12 11:19:37 +01:00
|
|
|
%dir %{_sysconfdir}/lvm
|
2017-03-01 03:49:19 +01:00
|
|
|
%config(noreplace) %{_sysconfdir}/lvm/lvm.conf
|
|
|
|
%config(noreplace) %{_sysconfdir}/lvm/lvmlocal.conf
|
2016-05-11 05:42:15 +02:00
|
|
|
%dir %{_sysconfdir}/lvm/profile
|
2017-03-01 03:49:19 +01:00
|
|
|
%{_sysconfdir}/lvm/profile/command_profile_template.profile
|
|
|
|
%{_sysconfdir}/lvm/profile/metadata_profile_template.profile
|
|
|
|
%{_sysconfdir}/lvm/profile/thin-generic.profile
|
|
|
|
%{_sysconfdir}/lvm/profile/thin-performance.profile
|
|
|
|
%{_sysconfdir}/lvm/profile/cache-mq.profile
|
|
|
|
%{_sysconfdir}/lvm/profile/cache-smq.profile
|
|
|
|
%{_sysconfdir}/lvm/profile/lvmdbusd.profile
|
2019-08-30 10:34:07 +02:00
|
|
|
%{_sysconfdir}/lvm/profile/vdo-small.profile
|
2017-03-01 03:49:19 +01:00
|
|
|
%dir %{_sysconfdir}/lvm/cache
|
2014-12-12 11:19:37 +01:00
|
|
|
%ghost %{_sysconfdir}/lvm/cache/.cache
|
2017-03-01 03:49:19 +01:00
|
|
|
%dir %{_sysconfdir}/lvm/archive
|
|
|
|
%dir %{_sysconfdir}/lvm/backup
|
|
|
|
%{_tmpfilesdir}/%{name}.conf
|
2013-08-26 13:12:14 +02:00
|
|
|
%{_unitdir}/blk-availability.service
|
|
|
|
%{_unitdir}/lvm2-monitor.service
|
2014-09-25 10:31:10 +02:00
|
|
|
%{_unitdir}/lvm2-pvscan@.service
|
2017-04-10 13:01:31 +02:00
|
|
|
%{_unitdir}/lvm2-lvmpolld.socket
|
|
|
|
%{_unitdir}/lvm2-lvmpolld.service
|
2017-04-10 13:36:47 +02:00
|
|
|
%{_libexecdir}/systemd/system-generators/lvm2-activation-generator
|
2016-05-11 05:42:15 +02:00
|
|
|
%dir %{_libdir}/device-mapper
|
|
|
|
%{_libdir}/device-mapper/libdevmapper-event-lvm2*.so
|
|
|
|
%{_libdir}/libdevmapper-event-lvm2*.so
|
2019-08-30 10:34:07 +02:00
|
|
|
%{_libdir}/libdevmapper-event-lvm2*.so.2.03
|
2017-03-01 03:49:19 +01:00
|
|
|
|
|
|
|
%package -n %{cmdlib}
|
|
|
|
Summary: LVM2 command line library
|
|
|
|
Group: System/Libraries
|
|
|
|
Conflicts: %{name} < %{version}
|
2019-09-05 12:03:51 +02:00
|
|
|
Obsoletes: liblvm2app2_2
|
|
|
|
Obsoletes: liblvm2cmd2_02
|
2017-03-01 03:49:19 +01:00
|
|
|
|
|
|
|
%description -n %{cmdlib}
|
|
|
|
The lvm2 command line library allows building programs that manage
|
|
|
|
lvm devices without invoking a separate program.
|
|
|
|
|
|
|
|
%post -n %{cmdlib} -p /sbin/ldconfig
|
|
|
|
%postun -n %{cmdlib} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files -n %{cmdlib}
|
|
|
|
%{_libdir}/liblvm2cmd.so.*
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for LVM2
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: %{cmdlib} = %{version}
|
2017-07-13 15:10:06 +02:00
|
|
|
Requires: device-mapper-devel
|
2017-03-01 03:49:19 +01:00
|
|
|
Requires: lvm2 = %{version}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
This package provides development files for the LVM2 Logical Volume Manager.
|
2014-01-23 11:23:46 +01:00
|
|
|
|
|
|
|
%files devel
|
2016-05-11 05:42:15 +02:00
|
|
|
%{_includedir}/lvm2cmd.h
|
|
|
|
%{_libdir}/liblvm2cmd.so
|
2014-09-25 10:31:10 +02:00
|
|
|
|
2017-03-01 03:49:19 +01:00
|
|
|
%package testsuite
|
|
|
|
Summary: LVM2 Testsuite
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: %{cmdlib} = %{version}
|
|
|
|
Requires: lvm2 = %{version}
|
|
|
|
|
|
|
|
%description testsuite
|
|
|
|
An extensive functional testsuite for the LVM2 Logical Volume Manager.
|
|
|
|
|
2017-01-10 10:43:13 +01:00
|
|
|
%files testsuite
|
|
|
|
%{_datarootdir}/lvm2-testsuite/
|
|
|
|
%{_libexecdir}/lvm2-testsuite/
|
|
|
|
%{_bindir}/lvm2-testsuite
|
|
|
|
|
2019-08-30 10:34:07 +02:00
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
2007-02-25 23:31:28 +01:00
|
|
|
%changelog
|