Репозиторий Sisyphus
Последнее обновление: 11 декабря 2019 | Пакетов: 17498 | Посещений: 16057796
en ru br
Репозитории ALT
S:0.8.2-alt1
5.1: 0.4.9-alt1
4.1: 0.4.7-alt2
4.0: 0.4.7-alt2
www.altlinux.org/Changes

Группа :: Система/Настройка/Оборудование
Пакет: multipath-tools

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

%def_disable rados
%def_enable libdmmp

%define syslibdir /%_lib
%define libmpathdir %syslibdir/multipath
%define systemd_ver %(pkg-config --modversion systemd 2> /dev/null)

%add_verify_elf_skiplist /%_lib/libmpathpersist.so.*
%add_verify_elf_skiplist /%_lib/libmultipath.so.*

Name: multipath-tools
Version: 0.7.4
Release: alt2

Summary: Tools to manage multipath devices with device-mapper
License: GPLv2+
Group: System/Configuration/Hardware

Url: http://christophe.varoqui.free.fr
Source: %name-%version.tar
Source2: multipath.rules
Source3: multipathd.init
Source4: multipath.modules
Source5: multipath.conf
Patch1: %name-%version.patch

# http://git.opensvc.com/multipath-tools/.git

Packager: Konstantin Pavlov <thresh at altlinux.org>

Requires: libmultipath = %EVR
Requires: kpartx = %EVR
Requires: dmsetup

BuildRequires: libaio-devel libdevmapper-devel libreadline-devel libudev-devel libsystemd-devel
BuildRequires: libuserspace-rcu-devel
%{?_enable_rados:BuildRequires: ceph-devel}
%{?_enable_libdmmp:BuildRequires: libjson-c-devel}

%description
This package provides the tools to manage multipath devices by
instructing the device-mapper multipath module what to do.
The tools are:
- multipath: lists and configures multipath devices.
- multipathd: monitors paths; as paths fail and come back, it may
 initiate path group switches.

%package -n libmultipath
Summary: The %name modules and shared library
License: GPL+
Group: System/Libraries
Conflicts: multipath-tools <= 0.4.9-alt3

%description -n libmultipath
The libmultipath provides the path checker
and prioritizer modules. It also contains the multipath shared library,
libmultipath.

%package -n libmultipath-devel
Summary: Development libraries and headers for %name
Group: Development/C
Requires: libmultipath = %EVR

%description -n libmultipath-devel
This package contains the files need to develop applications that use
multipath-tools's libmpathpersist and libmpathcmd libraries.

%package -n kpartx
Summary: Partition device manager for device-mapper devices
Group: System/Configuration/Hardware
Conflicts: multipath-tools <= 0.4.9-alt3

%description -n kpartx
kpartx manages partition creation and removal for device-mapper devices.

%package -n libdmmp
Summary: multipath-tools C API library
Group: System/Libraries

%description -n libdmmp
This package contains the shared library for the multipath-tools
C API library.

%package -n libdmmp-devel
Summary: device-mapper-multipath C API library headers
Group: Development/C
Requires: libdmmp = %EVR

%description -n libdmmp-devel
This package contains the files needed to develop applications that use
device-mapper-multipath's libdmmp C API library

%prep
%setup -q
%patch1 -p1

%build
unset RPM_OPT_FLAGS
%make_build \
LIB=%_lib \
RUN=run \
%{?_disable_rados: ENABLE_RADOS=0} \
%{?_disable_libdmmp: ENABLE_LIBDMMP=0} \
SYSTEMD=%systemd_ver \
SYSTEMDPATH=lib

%install
mkdir -p %buildroot{/sbin,%_libdir,%_man8dir,%_initdir,%_unitdir,%_udevrulesdir,%_modulesloaddir,%_sysconfdir/multipath}
%makeinstall_std \
DESTDIR=%buildroot \
SYSTEMD=%systemd_ver \
SYSTEMDPATH=lib \
%{?_disable_rados: ENABLE_RADOS=0} \
%{?_disable_libdmmp: ENABLE_LIBDMMP=0} \
LIB=%_lib \
RUN=run \
bindir=/sbin \
syslibdir=%syslibdir \
libdir=%libmpathdir \
usr_prefix=%_prefix \
rcdir=%_initrddir \
udevrulesdir=%_udevrulesdir \
unitdir=%_unitdir

#install -pm644 %SOURCE2 %buildroot%_udevrulesdir/56-multipath.rules

install -pm755 %SOURCE3 %buildroot%_initdir/multipathd
install -pm644 %SOURCE4 %buildroot%_modulesloaddir/multipath.conf
install -pm644 %SOURCE5 %buildroot%_sysconfdir/multipath.conf

%post
%post_service multipathd

%preun
%preun_service multipathd

%files
%doc README
/sbin/multipath
/sbin/multipathd
#/sbin/mpathconf
/sbin/mpathpersist
%_udevrulesdir/*
%exclude %_udevrulesdir/*kpartx.rules
%_modulesloaddir/*
%dir %_sysconfdir/multipath
%config(noreplace) %attr(644,root,root) %_sysconfdir/multipath.conf
%_initdir/*
%_unitdir/*
%_man5dir/*
%_man8dir/*
%exclude %_man8dir/kpartx.8.*

%files -n libmultipath
/%_lib/libmultipath.so.*
/%_lib/libmpathcmd.so.*
/%_lib/libmpathpersist.so.*
%dir %libmpathdir
%libmpathdir/*

%files -n libmultipath-devel
/%_lib/libmultipath.so
/%_lib/libmpathpersist.so
/%_lib/libmpathcmd.so
%_includedir/mpath_cmd.h
%_includedir/mpath_persist.h
%_man3dir/mpath_*

%files -n kpartx
%_udevrulesdir/*kpartx.rules
/sbin/kpartx
/lib/udev/kpartx_id
%_man8dir/kpartx.8.*

%files -n libdmmp
%_libdir/libdmmp.so.*

%files -n libdmmp-devel
%_libdir/libdmmp.so
%dir %_includedir/libdmmp
%_includedir/libdmmp/*
%_man3dir/dmmp_*
%_man3dir/libdmmp.h.3.*
%_pkgconfigdir/libdmmp.pc

%changelog

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

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