Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37317597
en ru br
ALT Linux repos
5.0: 2.02.39-alt1
4.1: 2.02.31-alt1
4.0: 2.02.28-alt1.M40.1
3.0: 2.01.09-alt2

Group :: System/Base
RPM: lvm2

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Summary: Userland logical volume management tools
Name: lvm2
Version: 2.02.01
Release: alt0.M30.1
License: GPL
Packager: Pavlov Konstantin <thresh at>

Group: System/Base
Source: %name-%version.tar.bz2
Conflicts: liblvm

%define _sbindir /sbin
%def_enable static

BuildRequires: kernel-headers-std26-up, libdevmapper-devel >= 1.02.02-alt0.M30.1
BuildRequires: libreadline-devel, libtinfo-devel
%{?_enable_static:BuildRequires: libdevmapper-devel-static libreadline-devel-static libtinfo-devel-static}

LVM2 includes all of the support for handling read/write operations
on physical volumes (hard disks, RAID-Systems, magneto optical, etc.,
multiple devices (MD), see mdadd(8) or even loop devices, see losetup(8)),
creating volume groups (kind of virtual disks) from one or more physical
volumes and creating one or more logical volumes (kind of logical
partitions) in volume groups.

%package static
Summary: Statically linked userland logical volume management tool
Group: System/Base
Requires: %name = %version-%release

%description static
This package contains statically linked LVM2 tool.

%setup -q -n %name-%version
%__subst -p 's/ncurses/tinfo &/' configure*

export ac_cv_path_MODPROBE_CMD=/sbin/modprobe

%if_enabled static
%configure \
--disable-readline \
--disable-selinux \
--enable-jobs=%__nprocs \
--enable-lvm1_fallback \
--enable-static_link \
--with-group= \
--with-staticdir=/sbin \
--with-user= \
%__make lib
%__make -C tools lvm.static
mv tools/lvm.static .
%__make clean
%endif # static

# dynamic

%configure \
--disable-selinux \
--disable-static_link \
--enable-jobs=%__nprocs \
--enable-lvm1_fallback \
--enable-readline \
--with-group= \
--with-user= \

%make_install install DESTDIR=%buildroot
%__chmod -R u+rwX %buildroot
%{?_enable_static:%__install -pm755 lvm.static %buildroot/sbin/}

%__mkdir_p %buildroot%_sysconfdir/lvm/{archive,backup}
%__mkdir_p %buildroot%_lockdir/lvm
%__install -m700 /dev/null %buildroot%_sysconfdir/lvm/.cache

%{?_enable_static:%exclude /sbin/*.static}
%config(noreplace) %_sysconfdir/lvm/lvm.conf
%dir %_sysconfdir/lvm/
%ghost %verify(not md5 size mtime) %config(missingok,noreplace) %_sysconfdir/lvm/.cache

%if_enabled static
%files static
%endif # static


Full changelog you can see here

design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin