- Build only on 64 bit architectures

OBS-URL: https://build.opensuse.org/package/show/benchmark/piglit?expand=0&rev=4
This commit is contained in:
Martin Pluskal 2017-02-16 10:18:55 +00:00 committed by Git OBS Bridge
parent 0b9912e244
commit 7b1c4564b9
2 changed files with 10 additions and 9 deletions

View File

@ -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

View File

@ -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