Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37580020
en ru br
Репозитории ALT
S:2.03.22-alt1
5.1: 2.02.53-alt1.M51.2
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
www.altlinux.org/Changes

Группа :: Система/Основа
Пакет: lvm2

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Summary: Userland logical volume management tools
Name: lvm2
Version: 2.02.31
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.24-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

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin