a3e5f880f1
* arb_texture_view: convert some more tests to run on ES 3.1 * util: provide way to read a texture in ES compatible way * vertex-program-two-side: Fix GCC format-security warnings. * glsl-fs-fogscale: Fix GCC format-security warnings. * glsl-1.50: test compat built in constants * built-in-constants: fix desktop GL version check for geometry shaders * built-in-constants: add support for testing compatibility profile built ins * framework/resume: properly parse the no_retry option * framework: allow specifying the number of jobs for concurrency * framework/html: guard against errors writing individual test results * gl-3.0: Remove unused variable. * arb_tessellation_shader: test display list support for glPatchParameterfv() * arb_tessellation_shader: add basic display list test for glPatchParameteri() * shader_runner: add basic display list support * ARB_tessellation_shader: test gl_*Color built-ins with tessellation shaders * piglit-util-gl: add support for using patches with fixed function attributes * gl-3.2-compat: test gl_FogFragCoord built-in with geometry shaders * gl-3.2-compat: test gl_ClipVertex built-in with geometry shaders * gl-3.2-compat: test gl_TexCoord[] built-in with geometry shaders * gl-3.2-compat: test gl_*Color built-ins with geometry shaders * glsl-1.40/1.50: basic compiler tests for the compatibility profile * glslparsertest: support compatibility profile tests * cmake: Bump minimum version to 3.2. * Revert "Specify an explicit window size in builtin uniform tests." * Specify an explicit window size in builtin uniform tests. * Fix bogus assertions in builtin uniform test generator. * gl-3.0: test glUniform*ui{v} functions are compiled into display lists * util: add includes when building for Wayland * tests: Add gpu and quick no_isolation metaprofiles OBS-URL: https://build.opensuse.org/package/show/benchmark/piglit?expand=0&rev=13
135 lines
4.0 KiB
RPMSpec
135 lines
4.0 KiB
RPMSpec
#
|
|
# spec file for package piglit
|
|
#
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%ifarch %{arm} aarch64
|
|
# Enable openGL ES only
|
|
%bcond_with opengl
|
|
%bcond_without opengles
|
|
%else
|
|
# Enable openGL and openGL ES
|
|
%bcond_without opengl
|
|
%bcond_without opengles
|
|
%endif
|
|
Name: piglit
|
|
Version: 1~20180604.cde860ab3
|
|
Release: 0
|
|
Summary: OpenGL driver testing framework
|
|
License: MIT
|
|
Group: System/Benchmark
|
|
URL: http://cgit.freedesktop.org/piglit
|
|
Source0: %{name}-%{version}.tar.xz
|
|
Source1: piglit-rpmlintrc
|
|
Source2: suse_qa.py
|
|
Source3: suse_qa-skip-tests.txt
|
|
Source4: opensuse_qa.py
|
|
Source5: opensuse_qa-skip-tests.txt
|
|
BuildRequires: cmake
|
|
BuildRequires: fdupes
|
|
BuildRequires: gcc-c++
|
|
BuildRequires: glibc-devel
|
|
BuildRequires: pkgconfig
|
|
BuildRequires: python3
|
|
BuildRequires: python3-Mako
|
|
BuildRequires: python3-numpy
|
|
BuildRequires: python3-six
|
|
BuildRequires: python3-xml
|
|
BuildRequires: waffle-devel
|
|
BuildRequires: pkgconfig(egl)
|
|
BuildRequires: pkgconfig(libdrm)
|
|
BuildRequires: pkgconfig(libpng)
|
|
BuildRequires: pkgconfig(x11)
|
|
BuildRequires: pkgconfig(xcb)
|
|
BuildRequires: pkgconfig(xcb-dri2)
|
|
BuildRequires: pkgconfig(xcb-dri3)
|
|
Requires: python3
|
|
Requires: python3-Mako
|
|
Requires: python3-numpy
|
|
Requires: python3-six
|
|
Requires: python3-xml
|
|
ExcludeArch: %{ix86} ppc
|
|
%if %{with opengl}
|
|
BuildRequires: pkgconfig(gl)
|
|
BuildRequires: pkgconfig(glproto)
|
|
BuildRequires: pkgconfig(glu)
|
|
%endif
|
|
%if %{with opengles}
|
|
BuildRequires: Mesa-libGLESv3-devel
|
|
BuildRequires: pkgconfig(glesv1_cm)
|
|
BuildRequires: pkgconfig(glesv2)
|
|
%endif
|
|
%ifarch x86_64
|
|
BuildRequires: pkgconfig(libdrm_intel)
|
|
%endif
|
|
|
|
%description
|
|
Piglit is a collection of automated tests for OpenGL and OpenCL
|
|
implementations.
|
|
|
|
The goal of Piglit is to help improve the quality of open source
|
|
OpenGL drivers by providing developers with means to perform
|
|
regression tests.
|
|
|
|
It contains the Glean tests, some tests adapted from Mesa, as well as
|
|
some specific regression tests for certain bugs. HTML summaries can
|
|
be generated, including the ability to compare different test runs.
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
# FIXME: you should use %%cmake macros
|
|
# Note: Using the cmake rpm macro to get good defaults for installation
|
|
# directories, CFLAGS etc. Some changes on top:
|
|
# Note: Overwriting CMAKE_SHARED_LINKER_FLAGS with those from the cmake macro,
|
|
# but leaving out -Wl,--no-undefined
|
|
# 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 \
|
|
%if %{without opengl}
|
|
-DPIGLIT_BUILD_GL_TESTS=OFF \
|
|
%endif
|
|
%if %{without opengles}
|
|
-DPIGLIT_BUILD_GL_ES1_TESTS=OFF \
|
|
-DPIGLIT_BUILD_GL_ES2_TESTS=OFF \
|
|
-DPIGLIT_BUILD_GL_ES3_TESTS=OFF \
|
|
%endif
|
|
-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}
|
|
|
|
%install
|
|
%cmake_install
|
|
|
|
install -D -m 644 %{SOURCE2} %{buildroot}%{_libdir}/piglit/tests
|
|
install -D -m 644 %{SOURCE3} %{buildroot}%{_libdir}/piglit/tests
|
|
install -D -m 644 %{SOURCE4} %{buildroot}%{_libdir}/piglit/tests
|
|
install -D -m 644 %{SOURCE5} %{buildroot}%{_libdir}/piglit/tests
|
|
%fdupes %{buildroot}/%{_libdir}/piglit
|
|
|
|
%post -p /sbin/ldconfig
|
|
%postun -p /sbin/ldconfig
|
|
|
|
%files
|
|
%{_libdir}/piglit
|
|
%{_bindir}/piglit
|
|
%doc %{_datadir}/doc/piglit
|
|
|
|
%changelog
|