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
|
|
|
#
|
2015-04-09 09:36:09 +02:00
|
|
|
# Copyright (c) 2015 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
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
|
|
|
|
|
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
|
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
|
2014-12-12 11:19:37 +01:00
|
|
|
Url: http://www.sourceware.org/lvm2/
|
|
|
|
|
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
|
2015-02-11 14:05:50 +01:00
|
|
|
# bsc#894202
|
|
|
|
Patch1: dab3ebce-devices-Do-not-support-unpartitioned-DASD.patch
|
2014-12-04 07:08:29 +01:00
|
|
|
|
|
|
|
# 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
|
2015-01-09 03:25:27 +01:00
|
|
|
# suse, boo#910327
|
|
|
|
Patch2006: lvm2-do-not-strip-pdata_tools.patch
|
2014-05-19 14:02:02 +02:00
|
|
|
|
2006-12-18 14:01:39 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2014-12-12 11:19:37 +01:00
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake
|
|
|
|
BuildRequires: libaio-devel
|
|
|
|
BuildRequires: libselinux-devel
|
|
|
|
BuildRequires: readline-devel
|
|
|
|
BuildRequires: suse-module-tools
|
|
|
|
BuildRequires: systemd-rpm-macros
|
|
|
|
BuildRequires: pkgconfig(udev)
|
|
|
|
Requires: device-mapper >= 1.02.90
|
|
|
|
Provides: lvm = %version-%release
|
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
|
2015-02-11 14:05:50 +01:00
|
|
|
|
|
|
|
%patch1 -p1
|
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
|
2015-01-09 03:25:27 +01:00
|
|
|
%patch2006 -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"
|
2015-01-09 03:25:27 +01:00
|
|
|
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 \
|
2014-12-12 11:19:37 +01:00
|
|
|
--datarootdir="%_datadir" \
|
2014-09-25 10:31:10 +02:00
|
|
|
--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 \
|
2014-12-12 11:19:37 +01:00
|
|
|
--with-udev-prefix="%_prefix/"
|
2014-09-25 10:31:10 +02:00
|
|
|
|
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
|
2014-12-12 11:19:37 +01:00
|
|
|
%configure --sbindir=/sbin --prefix="%_prefix"
|
2014-09-25 10:31:10 +02:00
|
|
|
make %{?_smp_mflags}
|
2014-01-09 17:38:13 +01:00
|
|
|
popd
|
|
|
|
|
2006-12-18 14:01:39 +01:00
|
|
|
%install
|
2014-12-12 11:19:37 +01:00
|
|
|
%make_install
|
|
|
|
make install_system_dirs DESTDIR="%buildroot"
|
|
|
|
make install_systemd_units DESTDIR="%buildroot"
|
|
|
|
make install_systemd_generators DESTDIR="%buildroot"
|
|
|
|
make install_tmpfiles_configuration DESTDIR="%buildroot"
|
2014-09-25 10:31:10 +02:00
|
|
|
# Is this directory used anymore?
|
2014-12-12 11:19:37 +01:00
|
|
|
install -d -m 755 "%buildroot/%_sysconfdir/lvm/metadata"
|
|
|
|
install -m 644 %{SOURCE1} "%buildroot/%_sysconfdir/lvm/"
|
|
|
|
mkdir -p "%buildroot/%_initddir"
|
|
|
|
mkdir -p "%buildroot/%_sbindir"
|
|
|
|
install -m755 -D %{S:8} "%buildroot/%_prefix/lib/ocf/resource.d/lvm2/clvmd"
|
|
|
|
install -m755 -D %{S:10} "%buildroot/%_prefix/lib/ocf/resource.d/lvm2/cmirrord"
|
|
|
|
|
2015-04-09 09:36:09 +02:00
|
|
|
# Make sure libdevmapper.so.1.02 libdevmapper-event.so.1.02 still available
|
|
|
|
# on Tumbleweed, as virtualbox.org didn't update their RPMs yet.
|
|
|
|
rm -f libdm/ioctl/libdevmapper.so daemons/dmeventd/libdevmapper-event.so
|
|
|
|
sed -i "s/1.03.01/%{device_mapper_version}/" VERSION_DM
|
|
|
|
make device-mapper
|
|
|
|
make install_device-mapper DESTDIR=%{buildroot}
|
|
|
|
|
2014-12-12 11:19:37 +01:00
|
|
|
pushd "%buildroot/%_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
|
2014-12-12 11:19:37 +01:00
|
|
|
for i in libdevmapper-event-lvm2{mirror,raid,snapshot,thin}; do
|
|
|
|
ln -sf "device-mapper/$i.so" "$i.so"
|
|
|
|
ln -sf "device-mapper/$i.so" "$i.so.2.02"
|
|
|
|
done
|
2012-10-18 10:15:42 +02:00
|
|
|
popd
|
2006-12-18 14:01:39 +01:00
|
|
|
|
2014-12-12 11:19:37 +01:00
|
|
|
pushd "%buildroot/%_sbindir"
|
2014-11-01 15:44:16 +01:00
|
|
|
ln -sf ../../sbin/lvm lvm
|
|
|
|
popd
|
|
|
|
|
2014-01-09 17:38:13 +01:00
|
|
|
#csm-convert
|
|
|
|
pushd bnz
|
2014-12-12 11:19:37 +01:00
|
|
|
install -m755 -D csm-converter "%buildroot/%_sbindir/csm-converter"
|
|
|
|
install -m755 -D csm-converter-helper "%buildroot/%_sbindir/csm-converter-helper"
|
2014-01-09 17:38:13 +01:00
|
|
|
mv README.csm-converter ..
|
|
|
|
popd
|
|
|
|
|
2014-09-25 10:31:10 +02:00
|
|
|
pushd thin-provisioning-tools-%{thin_provisioning_version}
|
2014-12-12 11:19:37 +01:00
|
|
|
%make_install
|
2014-09-25 10:31:10 +02:00
|
|
|
popd
|
|
|
|
|
2014-05-28 16:35:15 +02:00
|
|
|
%pre
|
2015-02-11 14:05:50 +01: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
|
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
|
2015-02-11 14:05:50 +01: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-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)
|
2012-10-23 19:40:13 +02:00
|
|
|
%doc README WHATS_NEW doc/*
|
2014-12-12 11:19:37 +01:00
|
|
|
%dir %{_sysconfdir}/lvm
|
|
|
|
%dir %{_sysconfdir}/lvm/backup
|
|
|
|
%dir %{_sysconfdir}/lvm/archive
|
|
|
|
%dir %{_sysconfdir}/lvm/metadata
|
|
|
|
%dir %{_sysconfdir}/lvm/profile
|
|
|
|
%dir %{_sysconfdir}/lvm/cache
|
2014-09-25 10:31:10 +02:00
|
|
|
%dir /usr/lib/systemd/system-generators
|
|
|
|
%dir /usr/lib/tmpfiles.d
|
2014-12-12 11:19:37 +01:00
|
|
|
%ghost %{_sysconfdir}/lvm/cache/.cache
|
|
|
|
%{_sysconfdir}/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
|
2015-01-30 13:51:05 +01:00
|
|
|
%config(noreplace) %{_sysconfdir}/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
|
2014-12-12 11:19:37 +01:00
|
|
|
/sbin/lv*
|
|
|
|
/sbin/pv*
|
|
|
|
/sbin/vg*
|
|
|
|
%_sbindir/lvm
|
2012-10-18 10:15:42 +02:00
|
|
|
%dir /%_lib/device-mapper
|
2014-12-12 11:19:37 +01:00
|
|
|
/%_lib/device-mapper/libdevmapper-event-lvm2*.so
|
|
|
|
/%_lib/libdevmapper-event-lvm2*.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
|
2014-12-12 11:19:37 +01:00
|
|
|
/%_lib/libdevmapper-event-lvm2*.so.2.02
|
2014-09-25 10:31:10 +02:00
|
|
|
/%_libdir/libdevmapper-event-lvm2.so
|
2014-12-12 11:19:37 +01:00
|
|
|
%_mandir/man5/lvm.conf.5.gz
|
|
|
|
%_mandir/man8/blkdeactivate.8.gz
|
|
|
|
%_mandir/man8/fsadm.8.gz
|
|
|
|
%_mandir/man8/lv*.8*
|
|
|
|
%_mandir/man8/pv*.8*
|
|
|
|
%_mandir/man8/vg*.8*
|
|
|
|
%_mandir/man7/lvm*.7*
|
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
|
2015-03-26 04:00:36 +01:00
|
|
|
BuildRequires: libcorosync-devel
|
|
|
|
BuildRequires: libdlm-devel
|
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.
|
|
|
|
|
2015-01-14 04:28:24 +01:00
|
|
|
%pre clvm
|
|
|
|
%service_add_pre lvm2-cluster-activation.service lvm2-clvmd.service
|
2012-10-23 19:40:13 +02:00
|
|
|
|
2015-01-14 04:28:24 +01:00
|
|
|
%post clvm
|
|
|
|
%service_add_post lvm2-cluster-activation.service lvm2-clvmd.service
|
|
|
|
|
|
|
|
%preun clvm
|
|
|
|
%service_del_preun lvm2-cluster-activation.service lvm2-clvmd.service
|
|
|
|
|
|
|
|
%postun clvm
|
|
|
|
%service_del_postun lvm2-cluster-activation.service lvm2-clvmd.service
|
2012-10-23 19:40:13 +02:00
|
|
|
|
|
|
|
%files clvm
|
|
|
|
%defattr(-,root,root)
|
2014-12-12 11:19:37 +01:00
|
|
|
%{_sbindir}/clvmd
|
2012-10-23 19:40:13 +02:00
|
|
|
%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
|
2014-12-12 11:19:37 +01:00
|
|
|
%{_sbindir}/csm-converter
|
|
|
|
%{_sbindir}/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.
|
|
|
|
|
2015-01-14 04:28:24 +01:00
|
|
|
%pre cmirrord
|
|
|
|
%service_add_pre lvm2-cmirrord.service lvm2-cluster-activation.service
|
|
|
|
|
|
|
|
%post cmirrord
|
|
|
|
%service_add_post lvm2-cmirrord.service lvm2-cluster-activation.service
|
2013-08-26 13:12:14 +02:00
|
|
|
|
2015-01-14 04:28:24 +01:00
|
|
|
%preun cmirrord
|
|
|
|
%service_del_preun lvm2-cmirrord.service lvm2-cluster-activation.service
|
|
|
|
|
|
|
|
%postun cmirrord
|
|
|
|
%service_del_postun lvm2-cmirrord.service lvm2-cluster-activation.service
|
2013-08-26 13:12:14 +02:00
|
|
|
|
|
|
|
%files cmirrord
|
|
|
|
%defattr(-,root,root)
|
2014-12-12 11:19:37 +01:00
|
|
|
%{_sbindir}/cmirrord
|
2013-08-26 13:12:14 +02:00
|
|
|
/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)
|
2014-12-12 11:19:37 +01:00
|
|
|
%_includedir/lvm2cmd.h
|
|
|
|
%_includedir/lvm2app.h
|
2014-01-23 11:23:46 +01:00
|
|
|
%_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
|
2015-04-09 09:36:09 +02:00
|
|
|
/%_lib/libdevmapper.so.1.02
|
|
|
|
/%_lib/libdevmapper-event.so.1.02
|
2014-09-25 10:31:10 +02:00
|
|
|
/sbin/dmsetup
|
|
|
|
/sbin/dmeventd
|
2014-12-12 11:19:37 +01:00
|
|
|
%_sbindir/thin_*
|
|
|
|
%_mandir/man8/dmsetup.8.gz
|
|
|
|
%_mandir/man8/dmeventd.8.gz
|
|
|
|
%_mandir/man8/thin_*.8*
|
|
|
|
%_udevrulesdir/10-dm.rules
|
|
|
|
%_udevrulesdir/13-dm-disk.rules
|
|
|
|
%_udevrulesdir/95-dm-notify.rules
|
|
|
|
%_unitdir/dm-event.socket
|
|
|
|
%_unitdir/dm-event.service
|
|
|
|
%_sbindir/cache_*
|
|
|
|
%_sbindir/era_*
|
|
|
|
%_sbindir/pdata_tools
|
|
|
|
%_mandir/man8/cache_*.8*
|
|
|
|
%_mandir/man8/era_*.8*
|
2014-09-25 10:31:10 +02:00
|
|
|
|
|
|
|
%package -n device-mapper-devel
|
|
|
|
Summary: Development package for the device mapper
|
2015-01-14 04:28:24 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2014-09-25 10:31:10 +02:00
|
|
|
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)
|
2014-12-12 11:19:37 +01:00
|
|
|
%_libdir/libdevmapper.so
|
|
|
|
%_libdir/libdevmapper-event.so
|
|
|
|
%_libdir/libdevmapper.a
|
|
|
|
%_includedir/libdevmapper*.h
|
|
|
|
%_libdir/pkgconfig/devmapper*.pc
|
2014-09-25 10:31:10 +02:00
|
|
|
|
2007-02-25 23:31:28 +01:00
|
|
|
%changelog
|