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
|
|
|
#
|
2014-01-09 17:38:13 +01:00
|
|
|
# Copyright (c) 2014 SUSE LINUX Products 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2014-12-04 07:08:29 +01:00
|
|
|
%define lvm2_version 2.02.114
|
|
|
|
%define device_mapper_version 1.02.92
|
2014-09-25 10:31:10 +02:00
|
|
|
%define thin_provisioning_version 0.4.1
|
|
|
|
|
2013-08-26 13:12:14 +02:00
|
|
|
Url: http://www.sourceware.org/lvm2/
|
2008-02-15 01:32:50 +01:00
|
|
|
|
2006-12-18 14:01:39 +01:00
|
|
|
Name: lvm2
|
2014-09-25 10:31:10 +02:00
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake
|
|
|
|
BuildRequires: libaio-devel
|
2012-10-23 19:40:13 +02:00
|
|
|
BuildRequires: libcorosync-devel
|
|
|
|
BuildRequires: libdlm-devel
|
2008-08-26 02:15:11 +02:00
|
|
|
BuildRequires: libselinux-devel
|
2013-08-26 13:29:43 +02:00
|
|
|
BuildRequires: readline-devel
|
2014-04-23 14:24:53 +02:00
|
|
|
BuildRequires: suse-module-tools
|
2014-03-28 15:57:40 +01:00
|
|
|
BuildRequires: systemd-rpm-macros
|
2013-08-28 13:16:38 +02:00
|
|
|
BuildRequires: pkgconfig(udev)
|
2014-11-01 15:44:16 +01:00
|
|
|
Requires: device-mapper >= 1.02.90
|
2006-12-18 14:01:39 +01:00
|
|
|
Provides: lvm
|
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
|
2013-04-22 16:12:00 +02:00
|
|
|
License: GPL-2.0 and LGPL-2.1
|
2012-10-18 10:15:42 +02:00
|
|
|
Group: System/Base
|
2013-04-17 10:04:57 +02:00
|
|
|
Source: ftp://sources.redhat.com/pub/%{name}/LVM2.%{version}.tgz
|
2013-08-26 13:29:43 +02:00
|
|
|
Source42: ftp://sources.redhat.com/pub/%{name}/LVM2.%{version}.tgz.asc
|
2006-12-18 14:01:39 +01:00
|
|
|
Source1: lvm.conf
|
2008-12-05 15:45:04 +01:00
|
|
|
Source8: clvmd.ocf
|
2013-08-26 13:12:14 +02:00
|
|
|
Source10: cmirrord.ocf
|
2012-10-23 19:40:13 +02:00
|
|
|
Source14: baselibs.conf
|
2014-01-09 17:38:13 +01:00
|
|
|
Source16: csm-converter.tar.gz
|
2014-09-25 10:31:10 +02:00
|
|
|
Source50: thin-provisioning-tools-v%{thin_provisioning_version}.tar.gz
|
2012-10-23 19:40:13 +02:00
|
|
|
|
2014-12-04 07:08:29 +01:00
|
|
|
# Upstream patches first
|
|
|
|
# (currently none)
|
|
|
|
|
|
|
|
# SUSE patches 1000- for LVM, 2000- for device mapper
|
|
|
|
Patch1001: improve_probing.diff
|
|
|
|
Patch1002: no-inc-audit.diff
|
|
|
|
Patch1003: no_buildroot_shared.diff
|
|
|
|
Patch1004: sys_mount_instead_linux_fs.diff
|
2014-01-09 17:38:13 +01:00
|
|
|
|
2014-03-28 15:57:40 +01:00
|
|
|
#suse
|
2014-12-04 07:08:29 +01:00
|
|
|
Patch1005: display-dm-name-for-lv-name.diff
|
|
|
|
Patch1006: device-mapper-type_punning.diff
|
2012-10-18 10:15:42 +02:00
|
|
|
|
2014-09-25 10:31:10 +02:00
|
|
|
#fate312248, patch6,7
|
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-01-09 17:38:13 +01:00
|
|
|
|
2014-02-15 11:13:39 +01:00
|
|
|
#fate#315092
|
2014-12-04 07:08:29 +01:00
|
|
|
Patch1009: cmirrord_improvment_performance.patch
|
2014-02-24 17:32:41 +01:00
|
|
|
|
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-03-28 15:57:40 +01:00
|
|
|
|
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
|
2014-09-25 10:31:10 +02:00
|
|
|
|
2014-06-12 10:09:50 +02:00
|
|
|
#suse, bnc873538
|
2014-12-04 07:08:29 +01:00
|
|
|
Patch1015: fix-closedown-before-thread-finish.patch
|
2014-06-12 10:09:50 +02:00
|
|
|
#suse, bnc#870824
|
2014-12-04 07:08:29 +01:00
|
|
|
Patch1016: use-mirrortype-asdefault-whenclvmdrunning.patch
|
2014-09-25 10:31:10 +02:00
|
|
|
|
2014-12-04 07:08:29 +01:00
|
|
|
Patch1017: version-plugins-in-libdir
|
2014-09-25 10:31:10 +02:00
|
|
|
|
|
|
|
# device-mapper patches
|
|
|
|
#suse, bnc#707253(also merged patch for bnc#479104)
|
2014-12-04 07:08:29 +01:00
|
|
|
Patch2000: device-mapper-dmsetup-export.patch
|
|
|
|
Patch2001: device-mapper-gcc-warnings.patch
|
|
|
|
Patch2002: device-mapper-static.patch
|
|
|
|
Patch2003: device-mapper-link
|
2014-09-25 10:31:10 +02:00
|
|
|
#suse, bnc#78902,bnc#789019,bnc#789020
|
2014-12-04 07:08:29 +01:00
|
|
|
Patch2004: udev_rules-update.diff
|
2014-09-25 10:31:10 +02:00
|
|
|
#suse, bnc#875233
|
2014-12-04 07:08:29 +01:00
|
|
|
Patch2005: udev-Check-for-DM_NR_VALID_PATHS.patch
|
2014-05-19 14:02:02 +02:00
|
|
|
|
2006-12-18 14:01:39 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2008-08-26 02:15:11 +02:00
|
|
|
# Not a real replacement but we drop evms
|
2012-10-18 10:15:42 +02:00
|
|
|
Provides: evms = 2.5.5
|
|
|
|
Provides: evms-devel = 2.5.5
|
|
|
|
Provides: evms-gui = 2.5.5
|
|
|
|
Provides: evms-ha = 2.5.5
|
|
|
|
Obsoletes: evms <= 2.5.5
|
|
|
|
Obsoletes: evms-devel <= 2.5.5
|
|
|
|
Obsoletes: evms-gui <= 2.5.5
|
|
|
|
Obsoletes: evms-ha <= 2.5.5
|
2013-02-23 08:33:01 +01:00
|
|
|
%define _udevdir %(pkg-config --variable=udevdir udev)
|
2006-12-18 14:01:39 +01:00
|
|
|
|
2014-09-25 10:31:10 +02:00
|
|
|
%if %{defined systemd_requires}
|
2013-08-26 13:12:14 +02:00
|
|
|
%{systemd_requires}
|
2014-09-25 10:31:10 +02:00
|
|
|
%endif
|
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.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
2014-09-25 10:31:10 +02:00
|
|
|
%setup -q -n LVM2.%{version} -a 50 -a 16
|
2014-12-04 07:08:29 +01:00
|
|
|
%patch1001 -p1
|
|
|
|
%patch1002 -p1
|
|
|
|
%patch1003 -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
|
|
|
|
|
|
|
|
%patch2000 -p1
|
|
|
|
%patch2001 -p1
|
|
|
|
%patch2002 -p1
|
|
|
|
%patch2003 -p1
|
|
|
|
%patch2004 -p1
|
|
|
|
%patch2005 -p1
|
2006-12-18 14:01:39 +01:00
|
|
|
|
|
|
|
%build
|
2013-10-21 13:23:03 +02:00
|
|
|
#set path so that thin_check can be found
|
|
|
|
#export before configure due to bnc#779965
|
|
|
|
export MODPROBE_CMD=/sbin/modprobe
|
|
|
|
export CFLAGS="$RPM_OPT_FLAGS"
|
|
|
|
export PATH=$PATH:/sbin:/usr/sbin
|
2014-09-25 10:31:10 +02:00
|
|
|
sed -ie "s/%{device_mapper_version}/1.03.01/g" VERSION_DM
|
|
|
|
autoreconf -fvi
|
|
|
|
%configure \
|
|
|
|
--prefix=/ \
|
|
|
|
--bindir=/bin \
|
|
|
|
--libdir=/%_lib \
|
|
|
|
--with-usrlibdir=%_libdir \
|
|
|
|
--with-usrsbindir=%_sbindir \
|
|
|
|
--sbindir=/sbin \
|
|
|
|
--enable-dmeventd \
|
|
|
|
--enable-udev_sync \
|
|
|
|
--enable-udev_rules \
|
|
|
|
--enable-cmdlib \
|
|
|
|
--enable-applib \
|
|
|
|
--enable-dmeventd \
|
|
|
|
--enable-realtime \
|
|
|
|
--enable-pkgconfig \
|
2012-10-23 19:40:13 +02:00
|
|
|
--enable-selinux \
|
2014-09-25 10:31:10 +02:00
|
|
|
--with-clvmd=corosync \
|
|
|
|
--with-cluster=internal \
|
|
|
|
--datarootdir=/usr/share \
|
|
|
|
--with-default-locking-dir=/run/lock/lvm \
|
|
|
|
--enable-cmirrord \
|
|
|
|
--enable-lvmetad \
|
|
|
|
--with-default-pid-dir=/run \
|
|
|
|
--with-default-dm-run-dir=/run \
|
|
|
|
--with-default-run-dir=/run/lvm \
|
|
|
|
--with-tmpfilesdir=%{_tmpfilesdir} \
|
|
|
|
--with-thin=internal \
|
|
|
|
--with-device-gid=6 \
|
|
|
|
--with-device-mode=0640 \
|
|
|
|
--with-device-uid=0 \
|
|
|
|
--with-dmeventd-path=/sbin/dmeventd \
|
|
|
|
--with-thin-check=/sbin/thin_check \
|
|
|
|
--with-thin-dump=%{_sbindir}/thin_dump \
|
|
|
|
--with-thin-repair=%{_sbindir}/thin_repair \
|
|
|
|
--with-udev-prefix=/usr/
|
|
|
|
|
2012-10-18 10:15:42 +02:00
|
|
|
export SUSE_ASNEEDED=0
|
2014-09-25 10:31:10 +02:00
|
|
|
|
|
|
|
make %{?_smp_mflags}
|
2006-12-18 14:01:39 +01:00
|
|
|
|
2014-01-09 17:38:13 +01:00
|
|
|
#csm convert
|
|
|
|
pushd bnz
|
2014-09-25 10:31:10 +02:00
|
|
|
make %{?_smp_mflags}
|
|
|
|
popd
|
|
|
|
|
|
|
|
pushd thin-provisioning-tools-%{thin_provisioning_version}
|
|
|
|
autoreconf -fiv
|
|
|
|
%configure --sbindir=/sbin --prefix=/usr
|
|
|
|
make %{?_smp_mflags}
|
2014-01-09 17:38:13 +01:00
|
|
|
popd
|
|
|
|
|
2006-12-18 14:01:39 +01:00
|
|
|
%install
|
2014-09-25 10:31:10 +02:00
|
|
|
%makeinstall
|
2013-08-26 13:12:14 +02:00
|
|
|
make install_system_dirs DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
make install_systemd_units DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
make install_systemd_generators DESTDIR=$RPM_BUILD_ROOT
|
2013-09-11 09:48:52 +02:00
|
|
|
make install_tmpfiles_configuration DESTDIR=$RPM_BUILD_ROOT
|
2014-09-25 10:31:10 +02:00
|
|
|
# Is this directory used anymore?
|
2006-12-18 14:01:39 +01:00
|
|
|
install -d -m 755 $RPM_BUILD_ROOT/etc/lvm/metadata
|
|
|
|
install -m 644 %{SOURCE1} $RPM_BUILD_ROOT/etc/lvm
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/etc/init.d
|
2014-11-01 15:44:16 +01:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/usr/sbin
|
2012-10-23 19:40:13 +02:00
|
|
|
install -m755 -D %{S:8} $RPM_BUILD_ROOT/usr/lib/ocf/resource.d/lvm2/clvmd
|
2013-08-26 13:12:14 +02:00
|
|
|
install -m755 -D %{S:10} $RPM_BUILD_ROOT/usr/lib/ocf/resource.d/lvm2/cmirrord
|
2014-11-01 15:44:16 +01:00
|
|
|
|
2012-10-18 10:15:42 +02:00
|
|
|
pushd $RPM_BUILD_ROOT/%_lib
|
2014-09-25 10:31:10 +02:00
|
|
|
ln -sf liblvm2cmd.so.2.02 liblvm2cmd.so
|
|
|
|
ln -sf liblvm2app.so.2.2 liblvm2app.so
|
2012-10-18 10:15:42 +02:00
|
|
|
ln -sf device-mapper/libdevmapper-event-lvm2mirror.so libdevmapper-event-lvm2mirror.so.2.02
|
|
|
|
ln -sf device-mapper/libdevmapper-event-lvm2snapshot.so libdevmapper-event-lvm2snapshot.so.2.02
|
2012-10-23 19:40:13 +02:00
|
|
|
ln -sf device-mapper/libdevmapper-event-lvm2raid.so libdevmapper-event-lvm2raid.so.2.02
|
2013-08-26 13:12:14 +02:00
|
|
|
ln -sf device-mapper/libdevmapper-event-lvm2thin.so libdevmapper-event-lvm2thin.so.2.02
|
2014-09-25 10:31:10 +02:00
|
|
|
ln -sf device-mapper/libdevmapper-event-lvm2mirror.so libdevmapper-event-lvm2mirror.so
|
|
|
|
ln -sf device-mapper/libdevmapper-event-lvm2snapshot.so libdevmapper-event-lvm2snapshot.so
|
|
|
|
ln -sf device-mapper/libdevmapper-event-lvm2raid.so libdevmapper-event-lvm2raid.so
|
|
|
|
ln -sf device-mapper/libdevmapper-event-lvm2thin.so libdevmapper-event-lvm2thin.so
|
2012-10-18 10:15:42 +02:00
|
|
|
popd
|
2006-12-18 14:01:39 +01:00
|
|
|
|
2014-11-01 15:44:16 +01:00
|
|
|
pushd $RPM_BUILD_ROOT/usr/sbin
|
|
|
|
ln -sf ../../sbin/lvm lvm
|
|
|
|
popd
|
|
|
|
|
2014-01-09 17:38:13 +01:00
|
|
|
#csm-convert
|
|
|
|
pushd bnz
|
|
|
|
install -m755 -D csm-converter $RPM_BUILD_ROOT/usr/sbin/csm-converter
|
|
|
|
install -m755 -D csm-converter-helper $RPM_BUILD_ROOT/usr/sbin/csm-converter-helper
|
|
|
|
mv README.csm-converter ..
|
|
|
|
popd
|
|
|
|
|
2014-09-25 10:31:10 +02:00
|
|
|
pushd thin-provisioning-tools-%{thin_provisioning_version}
|
|
|
|
%makeinstall
|
|
|
|
popd
|
|
|
|
|
2014-05-28 16:35:15 +02:00
|
|
|
%pre
|
2014-05-28 16:36:11 +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}
|
2014-05-28 16:36:11 +02:00
|
|
|
%service_add_post blk-availability.service lvm2-monitor.service lvm2-lvmetad.socket lvm2-lvmetad.service
|
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
|
2013-08-26 13:12:14 +02:00
|
|
|
%service_del_preun blk-availability.service lvm2-monitor.service lvm2-lvmetad.service lvm2-lvmetad.socket
|
2006-12-18 14:01:39 +01:00
|
|
|
|
|
|
|
%postun
|
2008-05-01 15:03:59 +02:00
|
|
|
/sbin/ldconfig
|
2014-05-28 16:36:11 +02:00
|
|
|
%service_del_postun lvm2-lvmetad.service blk-availability.service lvm2-monitor.service lvm2-lvmetad.socket
|
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)
|
2012-10-23 19:40:13 +02:00
|
|
|
%doc README WHATS_NEW doc/*
|
2006-12-18 14:01:39 +01:00
|
|
|
%dir /etc/lvm
|
|
|
|
%dir /etc/lvm/backup
|
|
|
|
%dir /etc/lvm/archive
|
|
|
|
%dir /etc/lvm/metadata
|
2014-09-25 10:31:10 +02:00
|
|
|
%dir /etc/lvm/profile
|
|
|
|
%dir /etc/lvm/cache
|
|
|
|
%dir /usr/lib/systemd/system-generators
|
|
|
|
%dir /usr/lib/tmpfiles.d
|
|
|
|
%ghost /etc/lvm/cache/.cache
|
|
|
|
/etc/lvm/profile/*.profile
|
2013-02-23 08:33:01 +01:00
|
|
|
%{_udevdir}/rules.d/11-dm-lvm.rules
|
2013-08-26 13:12:14 +02:00
|
|
|
%{_udevdir}/rules.d/69-dm-lvm-metad.rules
|
|
|
|
%{_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
|
2013-09-11 11:38:23 +02:00
|
|
|
%{_tmpfilesdir}/lvm2.conf
|
2014-01-16 10:44:42 +01:00
|
|
|
%config /etc/lvm/lvm.conf
|
2013-08-26 13:12:14 +02:00
|
|
|
/usr/lib/systemd/system-generators/lvm2-activation-generator
|
2012-10-23 19:40:13 +02:00
|
|
|
/sbin/blkdeactivate
|
2008-02-01 22:54:25 +01:00
|
|
|
/sbin/fsadm
|
2006-12-18 14:01:39 +01:00
|
|
|
/sbin/lvchange
|
|
|
|
/sbin/lvconvert
|
|
|
|
/sbin/lvcreate
|
|
|
|
/sbin/lvdisplay
|
|
|
|
/sbin/lvextend
|
|
|
|
/sbin/lvm
|
|
|
|
/sbin/lvmchange
|
|
|
|
/sbin/lvmdiskscan
|
|
|
|
/sbin/lvmdump
|
|
|
|
/sbin/lvmsadc
|
|
|
|
/sbin/lvmsar
|
|
|
|
/sbin/lvreduce
|
|
|
|
/sbin/lvremove
|
|
|
|
/sbin/lvrename
|
|
|
|
/sbin/lvresize
|
|
|
|
/sbin/lvs
|
|
|
|
/sbin/lvscan
|
|
|
|
/sbin/pvchange
|
2007-05-07 14:40:26 +02:00
|
|
|
/sbin/pvck
|
2006-12-18 14:01:39 +01:00
|
|
|
/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
|
2012-10-18 10:15:42 +02:00
|
|
|
/sbin/vgimportclone
|
2006-12-18 14:01:39 +01:00
|
|
|
/sbin/vgmerge
|
|
|
|
/sbin/vgmknodes
|
|
|
|
/sbin/vgreduce
|
|
|
|
/sbin/vgremove
|
|
|
|
/sbin/vgrename
|
|
|
|
/sbin/vgs
|
|
|
|
/sbin/vgscan
|
|
|
|
/sbin/vgsplit
|
2012-10-18 10:15:42 +02:00
|
|
|
/sbin/lvmconf
|
2013-08-26 13:12:14 +02:00
|
|
|
/sbin/lvmetad
|
2014-11-01 15:44:16 +01:00
|
|
|
/usr/sbin/lvm
|
2012-10-18 10:15:42 +02:00
|
|
|
%dir /%_lib/device-mapper
|
|
|
|
/%_lib/device-mapper/libdevmapper-event-lvm2mirror.so
|
|
|
|
/%_lib/device-mapper/libdevmapper-event-lvm2snapshot.so
|
2012-10-23 19:40:13 +02:00
|
|
|
/%_lib/device-mapper/libdevmapper-event-lvm2raid.so
|
2013-08-26 13:12:14 +02:00
|
|
|
/%_lib/device-mapper/libdevmapper-event-lvm2thin.so
|
2008-09-13 05:05:30 +02:00
|
|
|
/%_lib/libdevmapper-event-lvm2mirror.so
|
|
|
|
/%_lib/libdevmapper-event-lvm2snapshot.so
|
2012-10-23 19:40:13 +02:00
|
|
|
/%_lib/libdevmapper-event-lvm2raid.so
|
2013-08-26 13:12:14 +02:00
|
|
|
/%_lib/libdevmapper-event-lvm2thin.so
|
2008-09-13 05:05:30 +02:00
|
|
|
/%_lib/liblvm2cmd.so
|
2013-08-26 13:12:14 +02:00
|
|
|
/%_lib/liblvm2cmd.so.2.02
|
|
|
|
/%_lib/liblvm2app.so
|
|
|
|
/%_lib/liblvm2app.so.2.2
|
2014-09-25 10:31:10 +02:00
|
|
|
/%_libdir/liblvm2app.so
|
|
|
|
/%_libdir/liblvm2cmd.so
|
2008-02-15 01:32:50 +01:00
|
|
|
/%_lib/libdevmapper-event-lvm2mirror.so.2.02
|
|
|
|
/%_lib/libdevmapper-event-lvm2snapshot.so.2.02
|
2012-10-23 19:40:13 +02:00
|
|
|
/%_lib/libdevmapper-event-lvm2raid.so.2.02
|
2013-08-26 13:12:14 +02:00
|
|
|
/%_lib/libdevmapper-event-lvm2thin.so.2.02
|
2014-09-25 10:31:10 +02:00
|
|
|
/%_libdir/libdevmapper-event-lvm2.so
|
2012-10-18 10:15:42 +02:00
|
|
|
/%_lib/libdevmapper-event-lvm2.so.2.02
|
2006-12-18 14:01:39 +01:00
|
|
|
%{_mandir}/man5/lvm.conf.5.gz
|
2012-10-23 19:40:13 +02:00
|
|
|
%{_mandir}/man8/blkdeactivate.8.gz
|
|
|
|
%{_mandir}/man8/fsadm.8.gz
|
2006-12-18 14:01:39 +01:00
|
|
|
%{_mandir}/man8/lvchange.8.gz
|
|
|
|
%{_mandir}/man8/lvcreate.8.gz
|
|
|
|
%{_mandir}/man8/lvconvert.8.gz
|
|
|
|
%{_mandir}/man8/lvdisplay.8.gz
|
|
|
|
%{_mandir}/man8/lvmdump.8.gz
|
|
|
|
%{_mandir}/man8/lvextend.8.gz
|
|
|
|
%{_mandir}/man8/lvm.8.gz
|
|
|
|
%{_mandir}/man8/lvmchange.8.gz
|
|
|
|
%{_mandir}/man8/lvmdiskscan.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
|
2007-05-07 14:40:26 +02:00
|
|
|
%{_mandir}/man8/pvck.8.gz
|
2006-12-18 14:01:39 +01:00
|
|
|
%{_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
|
2014-12-04 07:08:29 +01:00
|
|
|
%{_mandir}/man7/lvmcache.7.gz
|
2006-12-18 14:01:39 +01:00
|
|
|
%{_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
|
2012-10-18 10:15:42 +02:00
|
|
|
%{_mandir}/man8/vgimportclone.8.gz
|
2006-12-18 14:01:39 +01:00
|
|
|
%{_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
|
2012-10-18 10:15:42 +02:00
|
|
|
%{_mandir}/man8/lvmconf.8.gz
|
|
|
|
%{_mandir}/man8/lvmsadc.8.gz
|
|
|
|
%{_mandir}/man8/lvmsar.8.gz
|
2013-08-26 13:12:14 +02:00
|
|
|
%{_mandir}/man8/lvmetad.8.gz
|
2014-09-25 10:31:10 +02:00
|
|
|
%{_mandir}/man7/lvmthin.7.gz
|
|
|
|
%{_mandir}/man8/lvm-dumpconfig.8.gz
|
|
|
|
%{_mandir}/man8/lvm2-activation-generator.8.gz
|
2012-10-23 19:40:13 +02:00
|
|
|
|
|
|
|
%package clvm
|
|
|
|
Url: http://sources.redhat.com/cluster/clvm/
|
2014-09-25 10:31:10 +02:00
|
|
|
Version: %{lvm2_version}
|
2012-10-23 19:40:13 +02:00
|
|
|
Release: 0
|
2013-08-26 13:29:43 +02:00
|
|
|
Requires: corosync
|
2012-10-23 19:40:13 +02:00
|
|
|
Requires: device-mapper >= 1.02.25
|
|
|
|
Requires: lvm2 = %{version}
|
2013-08-26 13:29:43 +02:00
|
|
|
Requires: lvm2-cmirrord
|
2014-06-12 10:09:50 +02:00
|
|
|
Obsoletes: cmirrord < %{version}
|
|
|
|
Provides: cmirrord = %{version}
|
2012-10-23 19:40:13 +02:00
|
|
|
Summary: Clustered LVM2
|
2013-08-26 13:12:14 +02:00
|
|
|
Group: Productivity/Clustering/HA
|
2012-10-23 19:40:13 +02:00
|
|
|
|
|
|
|
%description clvm
|
|
|
|
A daemon for using LVM2 Logival Volumes in a clustered environment.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files clvm
|
|
|
|
%defattr(-,root,root)
|
|
|
|
/usr/sbin/clvmd
|
|
|
|
%dir /usr/lib/ocf
|
|
|
|
%dir /usr/lib/ocf/resource.d
|
|
|
|
%dir /usr/lib/ocf/resource.d/lvm2
|
|
|
|
/usr/lib/ocf/resource.d/lvm2/clvmd
|
|
|
|
%{_mandir}/man8/clvmd.8.gz
|
2014-01-09 17:38:13 +01:00
|
|
|
%doc README.csm-converter
|
|
|
|
/usr/sbin/csm-converter
|
|
|
|
/usr/sbin/csm-converter-helper
|
2014-09-25 10:31:10 +02:00
|
|
|
%{_unitdir}/lvm2-clvmd.service
|
|
|
|
%{_unitdir}/lvm2-cluster-activation.service
|
|
|
|
/usr/lib/systemd/lvm2-cluster-activation
|
2012-10-23 19:40:13 +02:00
|
|
|
|
2013-08-26 13:12:14 +02:00
|
|
|
%package cmirrord
|
|
|
|
Url: http://www.sourceware.org/lvm2/
|
2014-09-25 10:31:10 +02:00
|
|
|
Version: %{lvm2_version}
|
2013-08-26 13:12:14 +02:00
|
|
|
Release: 0
|
2013-08-26 13:29:43 +02:00
|
|
|
Requires: corosync
|
2013-08-26 13:12:14 +02:00
|
|
|
Requires: device-mapper >= 1.02.25
|
|
|
|
Requires: lvm2 = %{version}
|
2013-08-26 13:29:43 +02:00
|
|
|
Requires: lvm2-clvm
|
2013-08-26 13:12:14 +02:00
|
|
|
Summary: Clustered RAID 1 support using device-mapper and corosync
|
|
|
|
Group: Productivity/Clustering/HA
|
|
|
|
|
|
|
|
%description cmirrord
|
|
|
|
A daemon for using LVM2 Logival Volumes in a clustered environment.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files cmirrord
|
|
|
|
%defattr(-,root,root)
|
|
|
|
/usr/sbin/cmirrord
|
|
|
|
/usr/lib/ocf/resource.d/lvm2/cmirrord
|
|
|
|
%{_mandir}/man8/cmirrord.8.gz
|
2014-09-25 10:31:10 +02:00
|
|
|
/usr/lib/systemd/system/lvm2-cmirrord.service
|
2013-08-26 13:12:14 +02:00
|
|
|
|
2014-01-23 11:23:46 +01:00
|
|
|
%package devel
|
2014-09-25 10:31:10 +02:00
|
|
|
Version: %{lvm2_version}
|
2014-01-23 11:23:46 +01:00
|
|
|
Release: 0
|
|
|
|
Requires: lvm2 = %{version}
|
|
|
|
Summary: Development files for LVM2
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
This package provides development files for the LVM2 Logical Volume Manager.
|
|
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
/usr/include/lvm2cmd.h
|
|
|
|
/usr/include/lvm2app.h
|
|
|
|
%_libdir/pkgconfig/lvm2app.pc
|
|
|
|
|
2014-09-25 10:31:10 +02:00
|
|
|
##########################################
|
|
|
|
# Subpackage: device-mapper
|
|
|
|
##########################################
|
|
|
|
%package -n device-mapper
|
|
|
|
|
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: device-mapper-64bit
|
|
|
|
%endif
|
|
|
|
Version: %{device_mapper_version}
|
|
|
|
Release: 0
|
|
|
|
Summary: Device Mapper Tools
|
|
|
|
Group: System/Base
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildRequires: boost-devel
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: libexpat-devel
|
|
|
|
BuildRequires: libselinux-devel
|
|
|
|
BuildRequires: libsepol-devel
|
|
|
|
BuildRequires: libstdc++-devel
|
|
|
|
BuildRequires: suse-module-tools
|
|
|
|
BuildRequires: systemd-rpm-macros
|
|
|
|
BuildRequires: pkgconfig(libudev)
|
|
|
|
Requires: expat
|
|
|
|
PreReq: %insserv_prereq %fillup_prereq
|
|
|
|
|
|
|
|
%description -n device-mapper
|
|
|
|
Programs, libraries, and man pages for configuring and using the device
|
|
|
|
mapper.
|
|
|
|
|
|
|
|
%post -n device-mapper
|
|
|
|
%service_add_post dm-event.service dm-event.socket
|
|
|
|
/sbin/ldconfig
|
|
|
|
%{?regenerate_initrd_post}
|
|
|
|
|
|
|
|
%posttrans -n device-mapper
|
|
|
|
%{?regenerate_initrd_posttrans}
|
|
|
|
|
|
|
|
%pre -n device-mapper
|
|
|
|
%service_add_pre dm-event.service dm-event.socket
|
|
|
|
|
|
|
|
%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
|
|
|
|
/sbin/ldconfig
|
|
|
|
|
|
|
|
%files -n device-mapper
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc INSTALL COPYING COPYING.LIB README
|
|
|
|
%doc udev/12-dm-permissions.rules
|
|
|
|
/%_lib/libdevmapper.so.1.03
|
|
|
|
/%_lib/libdevmapper-event.so.1.03
|
|
|
|
/sbin/dmsetup
|
|
|
|
/sbin/dmeventd
|
|
|
|
/usr/sbin/thin_check
|
|
|
|
/usr/sbin/thin_dump
|
|
|
|
/usr/sbin/thin_restore
|
|
|
|
/usr/sbin/thin_metadata_size
|
|
|
|
/usr/sbin/thin_repair
|
|
|
|
/usr/sbin/thin_rmap
|
|
|
|
%{_mandir}/man8/dmsetup.8.gz
|
|
|
|
%{_mandir}/man8/dmeventd.8.gz
|
|
|
|
%{_mandir}/man8/thin_check.8.gz
|
|
|
|
%{_mandir}/man8/thin_dump.8.gz
|
|
|
|
%{_mandir}/man8/thin_restore.8.gz
|
|
|
|
%{_mandir}/man8/thin_metadata_size.8.gz
|
|
|
|
%{_mandir}/man8/thin_repair.8.gz
|
|
|
|
%{_mandir}/man8/thin_rmap.8.gz
|
|
|
|
%{_udevrulesdir}/10-dm.rules
|
|
|
|
%{_udevrulesdir}/13-dm-disk.rules
|
|
|
|
%{_udevrulesdir}/95-dm-notify.rules
|
|
|
|
%{_unitdir}/dm-event.socket
|
|
|
|
%{_unitdir}/dm-event.service
|
|
|
|
/usr/sbin/cache_check
|
|
|
|
/usr/sbin/cache_dump
|
|
|
|
/usr/sbin/cache_metadata_size
|
|
|
|
/usr/sbin/cache_repair
|
|
|
|
/usr/sbin/cache_restore
|
|
|
|
/usr/sbin/era_check
|
|
|
|
/usr/sbin/era_dump
|
|
|
|
/usr/sbin/era_invalidate
|
|
|
|
/usr/sbin/era_restore
|
|
|
|
/usr/sbin/pdata_tools
|
|
|
|
/usr/share/man/man8/cache_check.8.gz
|
|
|
|
/usr/share/man/man8/cache_dump.8.gz
|
|
|
|
/usr/share/man/man8/cache_repair.8.gz
|
|
|
|
/usr/share/man/man8/cache_restore.8.gz
|
|
|
|
/usr/share/man/man8/era_check.8.gz
|
|
|
|
/usr/share/man/man8/era_dump.8.gz
|
|
|
|
/usr/share/man/man8/era_invalidate.8.gz
|
|
|
|
|
|
|
|
%package -n device-mapper-devel
|
|
|
|
Summary: Development package for the device mapper
|
|
|
|
Group: System/Base
|
|
|
|
Version: %{device_mapper_version}
|
|
|
|
Release: 0
|
2014-11-10 10:19:43 +01:00
|
|
|
Requires: device-mapper = %{device_mapper_version}
|
2014-09-25 10:31:10 +02:00
|
|
|
|
|
|
|
%description -n device-mapper-devel
|
|
|
|
Files needed for software development using the device mapper
|
|
|
|
|
|
|
|
%files -n device-mapper-devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
/%_libdir/libdevmapper.so
|
|
|
|
/%_libdir/libdevmapper-event.so
|
|
|
|
%attr(644, root, root) %_libdir/libdevmapper.a
|
|
|
|
/usr/include/libdevmapper.h
|
|
|
|
/usr/include/libdevmapper-event.h
|
|
|
|
/%_libdir/pkgconfig/devmapper-event.pc
|
|
|
|
/%_libdir/pkgconfig/devmapper.pc
|
|
|
|
|
2007-02-25 23:31:28 +01:00
|
|
|
%changelog
|