forked from pool/piglit
d163186544
- Update to version 1~20170203.ca58eec0b: * CMake: Enable python 3.6 * glsl-1.20: add a test that gl_ClipVertex actually affects all primitive types * glsl-1.30: add a test that gl_ClipDistance actually affects all primitive types * cl: Add tests for fdiv with neg/abs inputs * cl: Add tests for stored fneg * getteximage-formats: Disable dithering during glDrawPixels * framework/backends/json: always flush the metadata to the disk * egl: test that EGL_BAD_PARAMETER is returned for an invalid EGLImage attrib * Rename gen_conversion_fp64 to gen_conversion * gen_conversion: explicitly enumerate conversion target types * gen_conversion: rename _gen_from/to_double and _double_type * gen_conversion: refactor templates to allow multiple extensions * gen_conversion: generate tests for 64-bit integers * framework/programs/run.py: Allow comments in test-list files. * arb_texture_view-texsubimage-levels: correct buffer size * util: move SUBTEST and SUBTESTCONDITION to piglit-util * gl-3.1/draw-buffer-errors: skip if current Context is > 4.0 * gl-3.1/draw-buffers-errors: select explicitly default framebuffer * gl-4.5/named-framebuffer-draw-buffers-errors: add a new test * gl-4.5/named-framebuffer-read-buffer-errors: add test * polygon-offset: draw tests in two rows of nine * gl-1.4-polygon-offset: print more info on failure. OBS-URL: https://build.opensuse.org/request/show/454972 OBS-URL: https://build.opensuse.org/package/show/benchmark/piglit?expand=0&rev=2
112 lines
3.6 KiB
RPMSpec
112 lines
3.6 KiB
RPMSpec
#
|
|
# spec file for package piglit
|
|
#
|
|
# Copyright (c) 2017 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/
|
|
#
|
|
|
|
|
|
Name: piglit
|
|
Version: 1~20170203.ca58eec0b
|
|
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(gl)
|
|
BuildRequires: pkgconfig(glproto)
|
|
BuildRequires: pkgconfig(glu)
|
|
BuildRequires: pkgconfig(libdrm)
|
|
BuildRequires: pkgconfig(libdrm_intel)
|
|
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
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%description
|
|
OpenGL driver testing framework
|
|
The goal of Piglit is to help improve the quality of open source
|
|
OpenGL drivers by providing developers with a simple 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 -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}
|
|
make %{?_smp_mflags}
|
|
%else
|
|
make %{?_smp_mflags}
|
|
%endif
|
|
|
|
%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 %{SOURCE4} %{buildroot}%{_libdir}/piglit/tests
|
|
%fdupes %{buildroot}/%{_libdir}/piglit
|
|
|
|
%post -p /sbin/ldconfig
|
|
%postun -p /sbin/ldconfig
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%{_libdir}/piglit
|
|
%{_bindir}/piglit
|
|
%doc %{_datadir}/doc/piglit
|
|
|
|
%changelog
|