Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37465746
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.39
Release: alt1
License: GPL
Packager: Pavlov Konstantin <thresh at>

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

%define _sbindir /sbin
%def_enable static

BuildRequires: glibc-kernheaders, libdevmapper-devel >= 1.02.27-alt1
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/etc/lvm/{archive,backup}
mkdir -p %buildroot/var/lock/lvm
install -m700 /dev/null %buildroot/etc/lvm/.cache

%{?_enable_static:%exclude /sbin/*.static}
%config(noreplace) /etc/lvm/lvm.conf
%dir /etc/lvm/
%ghost %verify(not md5 size mtime) %config(missingok,noreplace) /etc/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