remove -c for %setup in kpartx.spec
[external/kpartx.git] / multipath-tools.spec.in
1 %define _rpmdir rpms
2 %define _builddir .
3
4 Summary: Tools to manage multipathed devices with the device-mapper.
5 Name: multipath-tools
6 Version: __VERSION__
7 Release: 1
8 License: GPL
9 Group: Utilities/System
10 URL: http://christophe.varoqui.free.fr
11 Source: /dev/null
12 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
13 Packager: Christophe Varoqui <christophe.varoqui@opensvc.com>
14 Prefix: /
15 Vendor: Starving Linux Artists (tm Brian O'Sullivan)
16 ExclusiveOS: linux
17
18 %description
19 %{name} provides the tools to manage multipathed devices by
20 instructing the device-mapper multipath module what to do. The tools
21 are :
22 * multipath :   scan the system for multipathed devices, assembles them
23                 and update the device-mapper's maps
24 * multipathd :  wait for maps events, then execs multipath
25 * kpartx :      maps linear devmaps upon device partitions, which makes
26                 multipath maps partionable
27
28 %prep
29 mkdir -p %{buildroot} %{_rpmdir}
30
31 %build
32 make
33
34 %install
35 rm -rf %{buildroot}
36 make DESTDIR=%{buildroot} install
37
38 %clean
39 rm -rf $RPM_BUILD_ROOT
40
41 %files
42 %defattr(-,root,root,-)
43 %{prefix}/sbin/multipath
44 %{prefix}/sbin/kpartx
45 %{prefix}/usr/share/man/man8/multipath.8.gz
46 %{prefix}/usr/share/man/man8/kpartx.8.gz
47 %{prefix}/usr/share/man/man8/multipathd.8.gz
48 %{prefix}/usr/share/man/man5/multipath.conf.5.gz
49 %{prefix}/sbin/multipathd
50 %{prefix}/etc/udev/rules.d/multipath.rules
51 %{prefix}/etc/udev/rules.d/kpartx.rules
52 %{prefix}/lib/udev/kpartx_id
53 %{prefix}/lib/multipath/*.so
54
55
56 %changelog
57 * Sat May 14 2004 Christophe Varoqui
58 - Initial build.