###############################################################################
name = multipath-tools
-version = 0.4.9
+version = 0.6.3
release = 1
groups = System/Base
instructing the device-mapper multipath kernel module what to do.
end
-source_dl =
-sources = %{name}-091027.tar.gz
+# git archive 0.6.3 --prefix=multipath-tools-0.6.3/ --format=tar | gzip --best > multipath-tools-0.6.3.tar.gz
+sources = %{thisapp}.tar.gz
build
requires
gzip
libaio-devel
libdevmapper-devel
+ libudev-devel
ncurses-devel
readline-devel
end
- DIR_APP = %{DIR_SRC}/%{name}
+ make_build_targets += -C kpartx LIB=%{lib} LDFLAGS="%{LDFLAGS} -ldevmapper"
- install_cmds
- rm -rf %{BUILDROOT}/etc/rc.d
- end
+ # Install everything to the correct locations.
+ make_install_targets += \
+ -C kpartx \
+ bindir=%{sbindir} \
+ syslibdir=%{libdir} \
+ libdir=%{libdir}/multipath \
+ unitdir=%{unitdir}
end
packages
- package %{name}
-
- package %{name}-devel
- template DEVEL
+ package kpartx
+ summary = Partition manager for device-mapper devices.
+ description
+ kpartx manages partition creation and removal for device-mapper devices.
+ end
+
+ files
+ %{sbindir}/kpartx
+ %{mandir}/man8/kpartx.8*
+ end
end
package %{name}-debuginfo