summaryrefslogtreecommitdiff
path: root/packaging/multipath-tools.spec
blob: be65e281f86bf8c1f1196294b799c2a4d0be1884 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
Name:           multipath-tools
BuildRequires:  device-mapper-devel
BuildRequires:  libaio-devel
BuildRequires:  readline-devel
Url:            http://christophe.varoqui.free.fr/
Requires:       device-mapper
Requires:       kpartx
Requires(pre):  coreutils grep
Version:        0.4.9
Release:        0
Summary:        Tools to Manage Multipathed Devices with the device-mapper
License:        BSD-3-Clause ; GPL-2.0+ ; LGPL-2.1+ ; MIT
Group:          System/Base
Source:         multipath-tools-%{version}.tar.bz2
Source1001: 	multipath-tools.manifest
%description
This package provides the tools to manage multipathed devices by
instructing the device-mapper multipath module what to do. The tools
are:

- multipath: scans the system for multipathed devices, assembles
   them, and updates the device-mapper's maps

- multipathd: waits for maps events then execs multipath

- devmap-name: provides a meaningful device name to udev for devmaps

- kpartx: maps linear devmaps to device partitions, which makes
multipath maps partionable



%package -n kpartx
Summary:        Manages partition tables on device-mapper devices
Group:          System/Base
Requires:       device-mapper

%description -n kpartx
The kpartx program maps linear devmaps to device partitions, which
makes multipath maps partionable.



Authors:
--------
    Christophe Varoqui <christophe.varoqui@free.fr>

%prep
%setup -q -n multipath-tools-%{version}
cp %{SOURCE1001} .
%build
cd kpartx
make CC="%__cc" OPTFLAGS="$RPM_OPT_FLAGS" LIB=%_libdir

%install
pushd kpartx
make DESTDIR=$RPM_BUILD_ROOT LIB=%_libdir install
popd


%clean
rm -rf $RPM_BUILD_ROOT;

%files
%manifest %{name}.manifest
%defattr(-,root,root)

%files -n kpartx
%manifest %{name}.manifest
%license COPYING
%defattr(-,root,root)
%config /usr/lib/udev/rules.d/kpartx.rules
/sbin/kpartx
%dir /lib/udev
/lib/udev/kpartx_id
%{_mandir}/man8/kpartx.8*

%changelog