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
|
|
|
#
|
2017-01-10 10:43:13 +01:00
|
|
|
# Copyright (c) 2017 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.
|
|
|
|
|
2006-12-18 14:01:39 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2016-05-11 05:42:15 +02:00
|
|
|
### COMMON-DEF-BEGIN ###
|
2016-12-28 12:16:13 +01:00
|
|
|
%define lvm2_version 2.02.168
|
|
|
|
%define device_mapper_version 1.02.137
|
2017-03-01 03:49:19 +01:00
|
|
|
%define thin_provisioning_version 0.5.6
|
2017-04-10 12:37:58 +02:00
|
|
|
%define dlm_version 3.99.1
|
|
|
|
%define sanlock_version 3.3.0
|
2016-05-11 05:42:15 +02:00
|
|
|
### COMMON-DEF-END ###
|
2017-03-01 03:49:19 +01:00
|
|
|
|
2016-05-11 05:42:15 +02:00
|
|
|
%define _udevdir %(pkg-config --variable=udevdir udev)
|
|
|
|
%define applib liblvm2app2_2
|
|
|
|
%define cmdlib liblvm2cmd2_02
|
2017-03-01 03:49:19 +01:00
|
|
|
|
2006-12-18 14:01:39 +01:00
|
|
|
Name: lvm2
|
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
|
2016-09-14 11:43:37 +02:00
|
|
|
License: GPL-2.0+ and LGPL-2.1+
|
2012-10-18 10:15:42 +02:00
|
|
|
Group: System/Base
|
2014-12-12 11:19:37 +01:00
|
|
|
Url: http://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
|
2017-03-01 03:49:19 +01:00
|
|
|
|
2016-05-11 05:42:15 +02:00
|
|
|
### COMMON-PATCH-BEGIN ###
|
2017-03-01 03:49:19 +01:00
|
|
|
# Upstream patches
|
|
|
|
# SUSE patches: 1000+ for LVM, 2000+ for device mapper
|
2014-12-04 07:08:29 +01:00
|
|
|
Patch1001: improve_probing.diff
|
|
|
|
Patch1002: no-inc-audit.diff
|
2017-03-01 03:49:19 +01:00
|
|
|
#bsc#952300
|
2014-12-04 07:08:29 +01:00
|
|
|
Patch1004: sys_mount_instead_linux_fs.diff
|
|
|
|
Patch1005: display-dm-name-for-lv-name.diff
|
|
|
|
Patch1006: device-mapper-type_punning.diff
|
2017-03-01 03:49:19 +01:00
|
|
|
#fate312248, patch7,8
|
2014-12-04 07:08:29 +01:00
|
|
|
Patch1007: make-mirror-legs-on-different-tag-pvs.patch
|
|
|
|
Patch1008: improve-mirror-legs-on-different-tag-pvs.patch
|
2014-02-15 11:13:39 +01:00
|
|
|
#fate#315092
|
2014-12-04 07:08:29 +01:00
|
|
|
Patch1009: cmirrord_improvment_performance.patch
|
2014-09-25 10:31:10 +02:00
|
|
|
#fate#314367, patch10,11
|
2014-12-04 07:08:29 +01:00
|
|
|
Patch1010: cluster_support_mirrord_log.diff
|
|
|
|
Patch1011: lvconvert-cluster-mirrored-disk-failed.patch
|
2014-03-28 15:57:40 +01:00
|
|
|
#forward-port from sle11
|
2014-12-04 07:08:29 +01:00
|
|
|
Patch1012: suppress_format1_size_warning.diff
|
|
|
|
Patch1013: pvmove_support_clustered_vg.diff
|
2014-04-23 14:24:53 +02:00
|
|
|
# Never upstream
|
2014-12-04 07:08:29 +01:00
|
|
|
Patch1014: cmirrord_remove_date_time_from_compilation.patch
|
2017-03-01 03:49:19 +01:00
|
|
|
#bnc873538
|
2014-12-04 07:08:29 +01:00
|
|
|
Patch1015: fix-closedown-before-thread-finish.patch
|
2017-03-01 03:49:19 +01:00
|
|
|
#bnc#870824
|
2014-12-04 07:08:29 +01:00
|
|
|
Patch1016: use-mirrortype-asdefault-whenclvmdrunning.patch
|
2016-05-11 05:42:15 +02:00
|
|
|
Patch1017: version-plugins-in-libdir.patch
|
2017-03-01 03:49:19 +01:00
|
|
|
#bsc#935623
|
2015-07-21 04:47:25 +02:00
|
|
|
Patch1018: dmeventd-fix-dso-name-wrong-compare.patch
|
2017-03-01 03:49:19 +01:00
|
|
|
#bsc#960044
|
2016-05-11 05:42:15 +02:00
|
|
|
Patch1019: lvm2-lvmetad.service-add-Also-lvm2-lvmetad.socket.patch
|
2017-03-01 03:49:19 +01:00
|
|
|
#bsc#479104,bnc#707253
|
2014-12-04 07:08:29 +01:00
|
|
|
Patch2000: device-mapper-dmsetup-export.patch
|
|
|
|
Patch2001: device-mapper-gcc-warnings.patch
|
2016-05-11 05:42:15 +02:00
|
|
|
Patch2002: device-mapper-link.patch
|
2017-03-01 03:49:19 +01:00
|
|
|
#bnc#78902,bnc#789019,bnc#789020
|
2016-05-11 05:42:15 +02:00
|
|
|
Patch2003: udev_rules-update.diff
|
2017-03-01 03:49:19 +01:00
|
|
|
#bnc#875233
|
2016-05-11 05:42:15 +02:00
|
|
|
Patch2004: udev-Check-for-DM_NR_VALID_PATHS.patch
|
2017-03-01 03:49:19 +01:00
|
|
|
#FATE#318413
|
2016-05-11 05:42:15 +02:00
|
|
|
Patch2005: fsadm-add-support-for-btrfs.patch
|
2017-03-01 03:49:19 +01:00
|
|
|
#bnc909358
|
2016-05-11 05:42:15 +02:00
|
|
|
Patch2006: Import-ID_FS_XXX-variables-bnc909358.patch
|
2017-03-01 03:49:19 +01:00
|
|
|
#bsc#932300
|
2016-05-11 05:42:15 +02:00
|
|
|
Patch2007: 10-dm.rules-Reset-state-variable-for-spurious-events.patch
|
2017-03-01 03:49:19 +01:00
|
|
|
#bsc#940298
|
2016-05-11 05:42:15 +02:00
|
|
|
Patch2008: libdm-iface-not-output-error-message-inside-retry-loop.patch
|
2017-03-01 03:49:19 +01:00
|
|
|
#bnc#960744
|
2016-09-14 11:43:37 +02:00
|
|
|
Patch2009: pvcreate-enhance-the-error-message.patch
|
2017-03-01 03:49:19 +01:00
|
|
|
#bnc#990538,bnc#986734
|
2016-09-14 11:43:37 +02:00
|
|
|
Patch2010: 69-dm-lvm-metad.rules-Do-not-process-rules-for-multi.patch
|
2017-03-01 03:49:19 +01:00
|
|
|
#bnc#950089
|
2017-01-10 10:43:13 +01:00
|
|
|
Patch2011: lvm2-testsuite.patch
|
2017-03-01 03:49:19 +01:00
|
|
|
#bsc#1012973
|
2017-02-22 11:59:19 +01:00
|
|
|
Patch2012: simplify-special-case-for-md-in-69-dm-lvm-metadata.patch
|
2016-05-11 05:42:15 +02:00
|
|
|
### COMMON-PATCH-END ###
|
2017-03-01 03:49:19 +01:00
|
|
|
|
2016-05-11 05:42:15 +02:00
|
|
|
BuildRequires: gcc-c++
|
2014-12-12 11:19:37 +01:00
|
|
|
BuildRequires: libaio-devel
|
|
|
|
BuildRequires: libselinux-devel
|
2016-05-11 05:42:15 +02:00
|
|
|
BuildRequires: pkgconfig
|
2014-12-12 11:19:37 +01:00
|
|
|
BuildRequires: readline-devel
|
2017-03-01 03:49:19 +01:00
|
|
|
BuildRequires: thin-provisioning-tools >= %{thin_provisioning_version}
|
2016-12-28 12:04:35 +01:00
|
|
|
BuildRequires: pkgconfig(blkid)
|
2016-05-11 05:42:15 +02:00
|
|
|
BuildRequires: pkgconfig(libudev)
|
|
|
|
BuildRequires: pkgconfig(systemd)
|
2014-12-12 11:19:37 +01:00
|
|
|
BuildRequires: pkgconfig(udev)
|
2016-05-11 05:42:15 +02:00
|
|
|
Requires: device-mapper >= %{device_mapper_version}
|
2015-12-17 04:23:36 +01:00
|
|
|
Requires(post): coreutils
|
|
|
|
Requires(postun): coreutils
|
2016-05-11 05:42:15 +02:00
|
|
|
Provides: lvm = %{version}
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%{?systemd_requires}
|
2013-08-26 13:12:14 +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}
|
|
|
|
### COMMON-PREP-BEGIN ###
|
2014-12-04 07:08:29 +01:00
|
|
|
%patch1001 -p1
|
|
|
|
%patch1002 -p1
|
|
|
|
%patch1004 -p1
|
|
|
|
%patch1005 -p1
|
|
|
|
%patch1006 -p1
|
|
|
|
%patch1007 -p1
|
|
|
|
%patch1008 -p1
|
|
|
|
%patch1009 -p1
|
|
|
|
%patch1010 -p1
|
|
|
|
%patch1011 -p1
|
|
|
|
%patch1012 -p1
|
|
|
|
%patch1013 -p1
|
|
|
|
%patch1014 -p1
|
|
|
|
%patch1015 -p1
|
|
|
|
%patch1016 -p1
|
|
|
|
%patch1017 -p1
|
2015-07-21 04:47:25 +02:00
|
|
|
%patch1018 -p1
|
2016-01-28 05:41:36 +01:00
|
|
|
%patch1019 -p1
|
2014-12-04 07:08:29 +01:00
|
|
|
%patch2000 -p1
|
|
|
|
%patch2001 -p1
|
|
|
|
%patch2002 -p1
|
|
|
|
%patch2003 -p1
|
|
|
|
%patch2004 -p1
|
|
|
|
%patch2005 -p1
|
2016-05-11 05:42:15 +02:00
|
|
|
%patch2006 -p1
|
2015-04-09 10:27:21 +02:00
|
|
|
%patch2007 -p1
|
2015-07-21 04:18:40 +02:00
|
|
|
%patch2008 -p1
|
2016-09-14 11:43:37 +02:00
|
|
|
%patch2009 -p1
|
|
|
|
%patch2010 -p1
|
2017-01-10 10:43:13 +01:00
|
|
|
%patch2011 -p1
|
2017-01-20 10:47:48 +01:00
|
|
|
%patch2012 -p1
|
2016-05-11 05:42:15 +02:00
|
|
|
### COMMON-PREP-END ###
|
2006-12-18 14:01:39 +01:00
|
|
|
|
|
|
|
%build
|
2016-05-11 05:42:15 +02:00
|
|
|
extra_opts="
|
2016-12-28 12:04:35 +01:00
|
|
|
--enable-blkid_wiping
|
2016-05-11 05:42:15 +02:00
|
|
|
--enable-cmdlib
|
|
|
|
--enable-applib
|
|
|
|
--enable-realtime
|
|
|
|
--enable-lvmetad
|
|
|
|
--with-default-locking-dir=/run/lock/lvm
|
|
|
|
--with-default-pid-dir=/run
|
|
|
|
--with-default-run-dir=/run/lvm
|
|
|
|
"
|
2017-03-01 03:49:19 +01:00
|
|
|
|
2016-05-11 05:42:15 +02:00
|
|
|
### COMMON-CONFIG-BEGIN ###
|
|
|
|
export PATH=$PATH:/sbin:%{_prefix}/sbin
|
2014-09-25 10:31:10 +02:00
|
|
|
sed -ie "s/%{device_mapper_version}/1.03.01/g" VERSION_DM
|
|
|
|
%configure \
|
2016-05-11 05:42:15 +02:00
|
|
|
--enable-dmeventd --enable-cmdlib \
|
|
|
|
--enable-udev_rules --enable-udev_sync \
|
|
|
|
--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
|
|
|
|
2014-09-25 10:31:10 +02:00
|
|
|
make %{?_smp_mflags}
|
2006-12-18 14:01:39 +01:00
|
|
|
|
|
|
|
%install
|
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}"
|
2014-09-25 10:31:10 +02:00
|
|
|
ln -sf liblvm2cmd.so.2.02 liblvm2cmd.so
|
|
|
|
ln -sf liblvm2app.so.2.2 liblvm2app.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"
|
|
|
|
ln -sf "device-mapper/$i.so" "$i.so.2.02"
|
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-lvmetad
|
|
|
|
ln -s service %{buildroot}%{_sbindir}/rclvm2-monitor
|
|
|
|
|
|
|
|
# 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}%{_mandir}/man8/dmstats.8
|
|
|
|
rm %{buildroot}%{_mandir}/man8/dmsetup.8
|
|
|
|
rm %{buildroot}%{_mandir}/man8/dmeventd.8
|
|
|
|
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
|
|
|
|
rm %{buildroot}%{_libdir}/libdevmapper.so.1.03
|
|
|
|
rm %{buildroot}%{_libdir}/libdevmapper-event.so.1.03
|
|
|
|
rm %{buildroot}%{_libdir}/libdevmapper.so
|
|
|
|
rm %{buildroot}%{_libdir}/libdevmapper-event.so
|
|
|
|
rm %{buildroot}%{_includedir}/libdevmapper*.h
|
|
|
|
rm %{buildroot}%{_libdir}/pkgconfig/devmapper*.pc
|
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
|
|
|
|
|
2014-05-28 16:35:15 +02:00
|
|
|
%pre
|
2016-05-11 05:42:15 +02:00
|
|
|
%service_add_pre blk-availability.service lvm2-monitor.service lvm2-lvmetad.socket lvm2-lvmetad.service
|
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}
|
2015-01-14 04:28:24 +01:00
|
|
|
%service_add_post blk-availability.service lvm2-monitor.service lvm2-lvmetad.socket lvm2-lvmetad.service
|
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
|
2016-05-11 05:42:15 +02:00
|
|
|
%service_del_preun blk-availability.service lvm2-monitor.service lvm2-lvmetad.service
|
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}
|
2015-02-11 14:05:50 +01:00
|
|
|
%service_del_postun blk-availability.service lvm2-monitor.service lvm2-lvmetad.service
|
2008-05-01 15:03:59 +02:00
|
|
|
|
2006-12-18 14:01:39 +01:00
|
|
|
%files
|
2007-02-11 18:51:08 +01:00
|
|
|
%defattr(-,root,root)
|
2017-03-01 03:49:19 +01:00
|
|
|
%doc README VERSION WHATS_NEW
|
|
|
|
%doc doc/lvm_fault_handling.txt
|
|
|
|
# Main binaries
|
|
|
|
%{_sbindir}/blkdeactivate
|
|
|
|
%{_sbindir}/fsadm
|
|
|
|
%{_sbindir}/lvm
|
|
|
|
%{_sbindir}/lvmconf
|
|
|
|
%{_sbindir}/lvmconfig
|
|
|
|
%{_sbindir}/lvmdump
|
|
|
|
%{_sbindir}/lvmetad
|
|
|
|
# Other files
|
|
|
|
%{_sbindir}/lvchange
|
|
|
|
%{_sbindir}/lvconvert
|
|
|
|
%{_sbindir}/lvcreate
|
|
|
|
%{_sbindir}/lvdisplay
|
|
|
|
%{_sbindir}/lvextend
|
|
|
|
%{_sbindir}/lvmchange
|
|
|
|
%{_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
|
|
|
|
%{_sbindir}/rclvm2-lvmetad
|
|
|
|
%{_sbindir}/rclvm2-monitor
|
|
|
|
# compat symlinks in /sbin
|
|
|
|
/sbin/lvm
|
|
|
|
/sbin/lvmconf
|
|
|
|
/sbin/lvmconfig
|
|
|
|
/sbin/lvmdump
|
|
|
|
/sbin/lvmetad
|
|
|
|
/sbin/lvchange
|
|
|
|
/sbin/lvconvert
|
|
|
|
/sbin/lvcreate
|
|
|
|
/sbin/lvdisplay
|
|
|
|
/sbin/lvextend
|
|
|
|
/sbin/lvmchange
|
|
|
|
/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
|
|
|
|
%{_mandir}/man5/lvm.conf.5.gz
|
|
|
|
%{_mandir}/man7/lvmcache.7.gz
|
|
|
|
%{_mandir}/man7/lvmraid.7.gz
|
|
|
|
%{_mandir}/man7/lvmreport.7.gz
|
|
|
|
%{_mandir}/man7/lvmthin.7.gz
|
|
|
|
%{_mandir}/man7/lvmsystemid.7.gz
|
|
|
|
%{_mandir}/man8/fsadm.8.gz
|
|
|
|
%{_mandir}/man8/lvchange.8.gz
|
|
|
|
%{_mandir}/man8/lvconvert.8.gz
|
|
|
|
%{_mandir}/man8/lvcreate.8.gz
|
|
|
|
%{_mandir}/man8/lvdisplay.8.gz
|
|
|
|
%{_mandir}/man8/lvextend.8.gz
|
|
|
|
%{_mandir}/man8/lvm.8.gz
|
|
|
|
%{_mandir}/man8/lvm2-activation-generator.8.gz
|
|
|
|
%{_mandir}/man8/lvm-config.8.gz
|
|
|
|
%{_mandir}/man8/lvmconfig.8.gz
|
|
|
|
%{_mandir}/man8/lvm-dumpconfig.8.gz
|
|
|
|
%{_mandir}/man8/lvmchange.8.gz
|
|
|
|
%{_mandir}/man8/lvmconf.8.gz
|
|
|
|
%{_mandir}/man8/lvmdiskscan.8.gz
|
|
|
|
%{_mandir}/man8/lvmdump.8.gz
|
|
|
|
%{_mandir}/man8/lvm-fullreport.8.gz
|
|
|
|
%{_mandir}/man8/lvmsadc.8.gz
|
|
|
|
%{_mandir}/man8/lvmsar.8.gz
|
|
|
|
%{_mandir}/man8/lvreduce.8.gz
|
|
|
|
%{_mandir}/man8/lvremove.8.gz
|
|
|
|
%{_mandir}/man8/lvrename.8.gz
|
|
|
|
%{_mandir}/man8/lvresize.8.gz
|
|
|
|
%{_mandir}/man8/lvs.8.gz
|
|
|
|
%{_mandir}/man8/lvscan.8.gz
|
|
|
|
%{_mandir}/man8/pvchange.8.gz
|
|
|
|
%{_mandir}/man8/pvck.8.gz
|
|
|
|
%{_mandir}/man8/pvcreate.8.gz
|
|
|
|
%{_mandir}/man8/pvdisplay.8.gz
|
|
|
|
%{_mandir}/man8/pvmove.8.gz
|
|
|
|
%{_mandir}/man8/pvremove.8.gz
|
|
|
|
%{_mandir}/man8/pvresize.8.gz
|
|
|
|
%{_mandir}/man8/pvs.8.gz
|
|
|
|
%{_mandir}/man8/pvscan.8.gz
|
|
|
|
%{_mandir}/man8/vgcfgbackup.8.gz
|
|
|
|
%{_mandir}/man8/vgcfgrestore.8.gz
|
|
|
|
%{_mandir}/man8/vgchange.8.gz
|
|
|
|
%{_mandir}/man8/vgck.8.gz
|
|
|
|
%{_mandir}/man8/vgconvert.8.gz
|
|
|
|
%{_mandir}/man8/vgcreate.8.gz
|
|
|
|
%{_mandir}/man8/vgdisplay.8.gz
|
|
|
|
%{_mandir}/man8/vgexport.8.gz
|
|
|
|
%{_mandir}/man8/vgextend.8.gz
|
|
|
|
%{_mandir}/man8/vgimport.8.gz
|
|
|
|
%{_mandir}/man8/vgimportclone.8.gz
|
|
|
|
%{_mandir}/man8/vgmerge.8.gz
|
|
|
|
%{_mandir}/man8/vgmknodes.8.gz
|
|
|
|
%{_mandir}/man8/vgreduce.8.gz
|
|
|
|
%{_mandir}/man8/vgremove.8.gz
|
|
|
|
%{_mandir}/man8/vgrename.8.gz
|
|
|
|
%{_mandir}/man8/vgs.8.gz
|
|
|
|
%{_mandir}/man8/vgscan.8.gz
|
|
|
|
%{_mandir}/man8/vgsplit.8.gz
|
|
|
|
%{_mandir}/man8/lvmetad.8.gz
|
|
|
|
%{_mandir}/man8/lvm-lvpoll.8.gz
|
|
|
|
%{_mandir}/man8/blkdeactivate.8.gz
|
|
|
|
%{_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
|
|
|
|
%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
|
|
|
|
%ghost %dir /run/lock/lvm
|
|
|
|
%ghost %dir /run/lvm
|
|
|
|
%{_tmpfilesdir}/%{name}.conf
|
2013-08-26 13:12:14 +02:00
|
|
|
%{_unitdir}/blk-availability.service
|
|
|
|
%{_unitdir}/lvm2-monitor.service
|
|
|
|
%{_unitdir}/lvm2-lvmetad.socket
|
|
|
|
%{_unitdir}/lvm2-lvmetad.service
|
2014-09-25 10:31:10 +02:00
|
|
|
%{_unitdir}/lvm2-pvscan@.service
|
2017-03-01 03:49:19 +01:00
|
|
|
%{_prefix}/lib/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
|
|
|
|
%{_libdir}/libdevmapper-event-lvm2*.so.2.02
|
2017-03-01 03:49:19 +01:00
|
|
|
|
|
|
|
##############################################################################
|
|
|
|
# LVM2 application api library
|
|
|
|
##############################################################################
|
|
|
|
%package -n %{applib}
|
|
|
|
Summary: LVM2 application api library
|
|
|
|
Group: System/Libraries
|
|
|
|
Conflicts: %{name} < %{version}
|
|
|
|
|
|
|
|
%description -n %{applib}
|
|
|
|
LVM library for applications api
|
|
|
|
|
|
|
|
%post -n %{applib} -p /sbin/ldconfig
|
|
|
|
%postun -n %{applib} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files -n %{applib}
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/liblvm2app.so.*
|
|
|
|
|
|
|
|
##############################################################################
|
|
|
|
# LVM2 command line library
|
|
|
|
##############################################################################
|
|
|
|
%package -n %{cmdlib}
|
|
|
|
Summary: LVM2 command line library
|
|
|
|
Group: System/Libraries
|
|
|
|
Conflicts: %{name} < %{version}
|
|
|
|
|
|
|
|
%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}
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/liblvm2cmd.so.*
|
|
|
|
|
|
|
|
##############################################################################
|
|
|
|
# Development files for LVM2
|
|
|
|
##############################################################################
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for LVM2
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: %{applib} = %{version}
|
|
|
|
Requires: %{cmdlib} = %{version}
|
|
|
|
Requires: lvm2 = %{version}
|
|
|
|
Recommends: device-mapper-devel
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
This package provides development files for the LVM2 Logical Volume Manager.
|
2014-01-23 11:23:46 +01:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
2016-05-11 05:42:15 +02:00
|
|
|
%{_includedir}/lvm2cmd.h
|
|
|
|
%{_includedir}/lvm2app.h
|
|
|
|
%{_libdir}/pkgconfig/lvm2app.pc
|
|
|
|
%{_libdir}/liblvm2app.so
|
|
|
|
%{_libdir}/liblvm2cmd.so
|
2014-09-25 10:31:10 +02:00
|
|
|
|
2017-03-01 03:49:19 +01:00
|
|
|
##############################################################################
|
|
|
|
# LVM2 Testsuite
|
|
|
|
##############################################################################
|
|
|
|
%package testsuite
|
|
|
|
Summary: LVM2 Testsuite
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: %{applib} = %{version}
|
|
|
|
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
|
2017-03-01 03:49:19 +01:00
|
|
|
%defattr(-,root,root)
|
2017-01-10 10:43:13 +01:00
|
|
|
%{_datarootdir}/lvm2-testsuite/
|
|
|
|
%{_libexecdir}/lvm2-testsuite/
|
|
|
|
%{_bindir}/lvm2-testsuite
|
|
|
|
|
2007-02-25 23:31:28 +01:00
|
|
|
%changelog
|