--- /dev/null
+--- libevent-2.0.21-stable/configure.in.orig 2012-11-18 07:34:13.000000000 +0100
++++ libevent-2.0.21-stable/configure.in 2013-02-12 16:13:21.323122429 +0100
+@@ -12,7 +12,7 @@
+ AC_CONFIG_MACRO_DIR([m4])
+
+ AM_INIT_AUTOMAKE(libevent,2.0.21-stable)
+-AM_CONFIG_HEADER(config.h)
++AC_CONFIG_HEADERS(config.h)
+ AC_DEFINE(NUMERIC_VERSION, 0x02001500, [Numeric representation of the version])
+
+ dnl Initialize prefix.
+--- libevent-2.0.21-stable/test/Makefile.am.orig 2012-05-31 06:08:19.000000000 +0200
++++ libevent-2.0.21-stable/test/Makefile.am 2013-02-12 16:28:56.406416519 +0100
+@@ -19,7 +19,7 @@
+ EXTRA_PROGRAMS = regress
+ noinst_HEADERS = tinytest.h tinytest_macros.h regress.h tinytest_local.h
+
+-TESTS = $(top_srcdir)/test/test.sh
++TESTS = test.sh
+
+ BUILT_SOURCES =
+ if BUILD_REGRESS
# Source0-md5: b2405cc9ebf264aa47ff615d9de527a2
Patch0: %{name}-fpm.patch
Patch1: %{name}-link.patch
+Patch2: %{name}-am.patch
URL: http://libevent.org/
BuildRequires: autoconf >= 2.60
BuildRequires: automake
%setup -q -n %{name}-%{version}-stable
%patch0 -p1
%patch1 -p1
+%patch2 -p1
%build
%{__libtoolize}