Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37465746
en ru br
ALT Linux repos
S:2.03.22-alt1
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
+backports:2.02.01-alt0.M30.1

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 altlinux.ru>

Group: System/Base
Url: http://sources.redhat.com/lvm2
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}

%description
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.

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

%build
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
%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

%files
%doc README WHATS_NEW
/sbin/*
%{?_enable_static:%exclude /sbin/*.static}
%_mandir/man?/*
%config(noreplace) /etc/lvm/lvm.conf
%dir /etc/lvm/
%defattr(600,root,root,700)
/etc/lvm/backup/
/etc/lvm/archive/
/var/lock/lvm/
%ghost %verify(not md5 size mtime) %config(missingok,noreplace) /etc/lvm/.cache

%if_enabled static
%files static
/sbin/*.static
%endif # static

%changelog

Full changelog you can see here

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