Group: X11/Libraries
Source0: http://download.qt-project.org/official_releases/qt/5.4/%{version}/submodules/%{orgname}-opensource-src-%{version}.tar.xz
# Source0-md5: 186627b1ea5b614811fbd0cfa9b4d073
+Patch0: x32-asm.patch
URL: http://qt-project.org/
BuildRequires: OpenGL-devel
BuildRequires: Qt5Core-devel >= %{qtbase_ver}
%prep
%setup -q -n %{orgname}-opensource-src-%{version}
+%ifarch x32
+%patch0 -p1
+%endif
%build
qmake-qt5 \
--- /dev/null
+--- qtwebkit-opensource-src-5.3.2+dfsg/Source/WTF/wtf/Atomics.h~ 2014-09-11 12:48:11.000000000 +0200
++++ qtwebkit-opensource-src-5.3.2+dfsg/Source/WTF/wtf/Atomics.h 2015-02-13 22:32:03.647863539 +0100
+@@ -188,7 +188,7 @@
+ #if CPU(X86_64)
+ bool result;
+ asm volatile(
+- "lock; cmpxchgq %3, %2\n\t"
++ "lock; cmpxchg %3, %2\n\t"
+ "sete %1"
+ : "+a"(expected), "=q"(result), "+m"(*location)
+ : "r"(newValue)