[build] fix the "rpm" make target
[platform/upstream/multipath-tools.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@free.fr>
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 * devmap-name : provides a meaningful device name to udev for devmaps
26 * kpartx :      maps linear devmaps upon device partitions, which makes
27                 multipath maps partionable
28
29 %prep
30 mkdir -p %{buildroot} %{_rpmdir}
31
32 %build
33 make
34
35 %install
36 rm -rf %{buildroot}
37 make DESTDIR=%{buildroot} install
38
39 %clean
40 rm -rf $RPM_BUILD_ROOT
41
42 %files
43 %defattr(-,root,root,-)
44 %{prefix}/sbin/devmap_name
45 %{prefix}/sbin/multipath
46 %{prefix}/sbin/kpartx
47 %{prefix}/sbin/mpath_prio_alua
48 %{prefix}/sbin/mpath_prio_emc
49 %{prefix}/sbin/mpath_prio_random
50 %{prefix}/sbin/mpath_prio_balance_units
51 %{prefix}/usr/share/man/man8/devmap_name.8.gz
52 %{prefix}/usr/share/man/man8/multipath.8.gz
53 %{prefix}/usr/share/man/man8/kpartx.8.gz
54 %{prefix}/usr/share/man/man8/mpath_prio_alua.8.gz
55 %{prefix}/usr/share/man/man8/multipathd.8.gz
56 %{prefix}/usr/bin/multipathd
57 %{prefix}/etc/udev/rules.d/multipath.rules
58
59
60 %changelog
61 * Sat May 14 2004 Christophe Varoqui
62 - Initial build.