Also:
- Only run the tests on x86, because ARM isn't likely to work.
- If make check fails, make sure test-suite.log is printed out.
dnl Only used temporarily while the spec file is contained in the
dnl tarball. We will remove this later.
dnl Only used temporarily while the spec file is contained in the
dnl tarball. We will remove this later.
-AC_SUBST([RPM_RELEASE],[1])
+AC_SUBST([RPM_RELEASE],[2])
dnl Check for basic C environment.
AC_PROG_CC_STDC
dnl Check for basic C environment.
AC_PROG_CC_STDC
BuildRequires: cpio
BuildRequires: glibc-static
BuildRequires: cpio
BuildRequires: glibc-static
+# BuildRequire these in order to let 'make check' run. These are
+# not required unless you want to run the tests. Note don't run the
+# tests on ARM since qemu isn't likely to work.
+%ifarch %{ix86} x86-64
+BuildRequires: qemu-system-x86
+%endif
+
+BuildRequires: kernel
+
%ifarch %{ix86} x86-64
Requires: qemu-system-x86
%endif
%ifarch %{ix86} x86-64
Requires: qemu-system-x86
%endif
+%ifarch %{ix86} x86-64
+make check || {
+ cat test-suite.log
+ exit 1
+}
+%endif