From db3f01b2de65fc6aba7e9d8929d8745d770c1c70 Mon Sep 17 00:00:00 2001
From: Jeremy Katz <katzj@fedoraproject.org>
Date: Mon, 25 Oct 2004 15:04:36 +0000
Subject: [PATCH] - allow building on all x86 arches - pass appropriate
 compiler options to build on x86_64 as well (#136939)

---
 memtest86+.spec | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/memtest86+.spec b/memtest86+.spec
index 4766ec7..6cfd7a9 100644
--- a/memtest86+.spec
+++ b/memtest86+.spec
@@ -6,14 +6,15 @@
 Summary: Stand-alone memory tester for x86 and x86-64 computers
 Name: memtest86+
 Version: 1.26
-Release: 2
+Release: 3
 License: GPL
-ExclusiveArch: i386
+ExclusiveArch: %{ix86} x86_64
 Group: System Environment/Base
 Source0: http://www.memtest.org/download/1.20/memtest86+-1.26.tar.gz
 URL: http://www.memtest.org
 Source1: new-memtest-pkg
 Source2: memtest-setup
+Patch0:  memtest86+-1.26-arch.patch
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
 Obsoletes: memtest86
 
@@ -28,6 +29,7 @@ Run 'memtest-setup' to add to your GRUB or lilo boot menu.
 
 %prep
 %setup -q
+%patch0 -p1 -b .arch
 
 %build
 # Regular build flags not wanted for this binary
@@ -58,6 +60,10 @@ rm -rf $RPM_BUILD_ROOT
 /sbin/new-memtest-pkg --remove %{version}
 
 %changelog
+* Mon Oct 25 2004 Jeremy Katz <katzj@redhat.com> - 1.26-3
+- allow building on all x86 arches
+- pass appropriate compiler options to build on x86_64 as well (#136939)
+
 * Wed Sep 02 2004 Warren Togami <wtogami@redhat.com> 1.26-1
 - update to 1.26