--- /dev/null
+--- cpuid-20150606/cpuid.c.orig 2015-06-07 02:03:14.000000000 +0200
++++ cpuid-20150606/cpuid.c 2015-06-26 23:16:36.966332168 +0200
+@@ -3367,7 +3367,7 @@
+ static int bits_needed(unsigned long v)
+ {
+ int result;
+-#ifdef __x86_64
++#if defined(__x86_64) && !defined(__ILP32__)
+ asm("movq %[v],%%rax;"
+ "movq $0,%%rcx;"
+ "movl $0,%[result];"
Summary(pl.UTF-8): Program wyświetlający informacje CPUID dla procesorów x86
Name: cpuid
Version: 20150606
-Release: 1
+Release: 2
License: GPL v2+
Group: Applications/System
Source0: http://www.etallen.com/cpuid/%{name}-%{version}.src.tar.gz
# Source0-md5: 9df0752a2e3bb40ab4db694f6fa7add9
+Patch0: %{name}-x32.patch
URL: http://www.etallen.com/cpuid.html
-ExclusiveArch: %{ix86} %{x8664}
+ExclusiveArch: %{ix86} %{x8664} x32
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
%prep
%setup -q
+%patch0 -p1
%build
%{__make} \