--- /dev/null
+--- device-mapper.1.01.05/configure.in.orig 2006-01-24 22:48:51.000000000 +0100
++++ device-mapper.1.01.05/configure.in 2006-01-24 22:49:47.000000000 +0100
+@@ -208,7 +208,7 @@
+
+ ################################################################################
+ dnl -- Check for getopt
+-AC_CHECK_HEADERS(getopt.h, CFLAGS="$CFLAGS -DHAVE_GETOPTLONG")
++AC_CHECK_HEADERS(getopt.h)
+
+ ################################################################################
+ dnl -- Internationalisation stuff
Summary(pl): Wsparcie dla mapowania urz±dzeñ w przestrzeni u¿ytkownika
Name: device-mapper
Version: 1.01.05
-Release: 1
+Release: 2
License: GPL v2
Group: Applications/System
Source0: ftp://sources.redhat.com/pub/dm/%{name}.%{version}.tgz
# http://www.redhat.com/archives/dm-devel/2005-March/msg00022.html
Patch1: %{name}-disable_dynamic_link.patch
Patch2: %{name}-klibc.patch
+Patch3: %{name}-getopt.patch
URL: http://sources.redhat.com/dm/
BuildRequires: autoconf
BuildRequires: automake
%patch0 -p1
%patch1 -p1
%patch2 -p1
+%patch3 -p1
%build
cp -f /usr/share/automake/config.sub autoconf
%configure \
--%{?with_selinux:en}%{!?with_selinux:dis}able-selinux \
- --with-optimisation="%{rpmcflags}" \
+ --with-optimisation="%{rpmcflags} -DHAVE_GETOPTLONG" \
--with-user=%(id -u) \
--with-group=%(id -g) \
--with-interface=ioctl \