+ ifeq ("@DIETLIBC@", "yes")
+ DMRAIDLIBS += -ldevmapper_dietc
+ else
-+ DMRAIDLIBS += -ldevmapper -lz
++ DMRAIDLIBS += -ldevmapper -lz -ludev -lrt
+ endif
+
+# ifeq ("@LIBSELINUX@", "yes")
$(LIB_STATIC): $(OBJECTS)
$(RM) $@
+--- dmraid/tools/Makefile.in~ 2012-04-28 19:52:38.890744695 +0200
++++ dmraid/tools/Makefile.in 2012-04-28 21:10:18.659323226 +0200
+@@ -30,7 +30,7 @@
+ ifeq ("@DIETLIBC@", "yes")
+ DMRAIDLIBS += -ldevmapper_dietc
+ else
+- DMRAIDLIBS += -ldevmapper
++ DMRAIDLIBS += -ldevmapper -ludev -lrt
+ endif
+
+ ifeq ("@LIBSELINUX@", "yes")
#
# Conditional build:
%bcond_without initrd # without initrd version
-%bcond_without dietlibc # build initrd version with static glibc instead of dietlibc
+%bcond_with dietlibc # build initrd version with static glibc instead of dietlibc
%bcond_without selinux # build without SELinux support (needs selinux-disabled device-mapper)
#
Summary: Device-mapper RAID tool
%else
BuildRequires: device-mapper-static >= 1.02.05-0.4
BuildRequires: glibc-static
+BuildRequires: udev-static
%if %{with selinux}
BuildRequires: libselinux-static
BuildRequires: libsepol-static