780a84eca70891c5d2648aff9d20c848b119fc3a
[external/kpartx.git] / packaging / kpartx.spec
1 Summary: Tools to manage multipath devices using device-mapper
2 Name: kpartx
3 Version: 0.4.9
4 Release: 7
5 License: GPL+
6 Group: System/Base
7 URL: http://christophe.varoqui.free.fr/
8 Source0: http://christophe.varoqui.free.fr/multipath-tools/multipath-tools-%{version}.tar.bz2
9 Patch0: udev.patch
10 Requires: device-mapper >= 1.02.02-2
11 BuildRequires: device-mapper-devel
12 BuildRequires: readline-devel, ncurses-devel
13 BuildRequires: readline-devel
14 BuildRequires: ncurses-devel
15 Obsoletes: device-mapper-multipath
16
17 %description
18 %{name} provides tools to manage multipath devices by
19 instructing the device-mapper multipath kernel module what to do. 
20 The tools are :
21 * multipath :   Scan the system for multipath devices and assemble them.
22 * multipathd :  Detects when paths fail and execs multipath to update things.
23
24 %prep
25 %setup -q -c -n multipath-tools-%{version}
26 %patch0 -p1
27
28 %build
29 cd kpartx
30 make %{?_smp_mflags} 
31
32 %install
33 rm -rf $RPM_BUILD_ROOT
34 cd kpartx
35 make install DESTDIR=$RPM_BUILD_ROOT bindir=/sbin
36
37 %clean
38 rm -rf $RPM_BUILD_ROOT
39
40 %files 
41 %defattr(-,root,root,-)
42 /sbin/kpartx
43 %{_libdir}/udev/rules.d/kpartx.rules
44 /%{_lib}/udev/kpartx_id
45 %{_mandir}/man8/kpartx.8.gz
46