From 7b1c4564b9fac515f0f1df251631c01159536923ed51fdbfb006b624517ebf22 Mon Sep 17 00:00:00 2001 From: Martin Pluskal Date: Thu, 16 Feb 2017 10:18:55 +0000 Subject: [PATCH] - Build only on 64 bit architectures OBS-URL: https://build.opensuse.org/package/show/benchmark/piglit?expand=0&rev=4 --- piglit.changes | 5 +++++ piglit.spec | 14 +++++--------- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/piglit.changes b/piglit.changes index e300354..29d4505 100644 --- a/piglit.changes +++ b/piglit.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Feb 16 10:03:19 UTC 2017 - mpluskal@suse.com + +- Build only on 64 bit architectures + ------------------------------------------------------------------- Wed Feb 08 09:55:33 UTC 2017 - mimi.vx@gmail.com diff --git a/piglit.spec b/piglit.spec index c027c93..d123bfb 100644 --- a/piglit.spec +++ b/piglit.spec @@ -56,7 +56,7 @@ Requires: python3-Mako Requires: python3-numpy Requires: python3-six Requires: python3-xml -BuildRoot: %{_tmppath}/%{name}-%{version}-build +Excludearch: %{ix86} %{arm} ppc %description OpenGL driver testing framework @@ -80,15 +80,11 @@ OpenGL driver testing framework # Note: Overwriting CMAKE_SKIP_RPATH to be off, but enabling # CMAKE_BUILD_WITH_INSTALL_RPATH so the individual test binaries in # /usr/lib64/piglit/bin/* can find the libraries in /usr/lib64/piglit/lib -%cmake -DCMAKE_SHARED_LINKER_FLAGS="-Wl,--as-needed -Wl,-z,now" \ - -DCMAKE_SKIP_RPATH:BOOL=OFF -DCMAKE_BUILD_WITH_INSTALL_RPATH:BOOL=ON - -# Test: Disabled smp flags to try to prevent out of memory on i586 build machines in buildservice. -%ifarch %{ix86} +%cmake \ + -DCMAKE_SHARED_LINKER_FLAGS="-Wl,--as-needed -Wl,-z,now" \ + -DCMAKE_SKIP_RPATH:BOOL=OFF \ + -DCMAKE_BUILD_WITH_INSTALL_RPATH:BOOL=ON make %{?_smp_mflags} -%else -make %{?_smp_mflags} -%endif %install %cmake_install