2017-01-24 20:59:06 +01:00
|
|
|
#
|
|
|
|
# spec file for package piglit
|
|
|
|
#
|
2024-01-04 09:00:34 +01:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2017-01-24 20:59:06 +01:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2019-12-10 14:08:31 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2017-01-24 20:59:06 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2018-06-06 16:31:12 +02:00
|
|
|
%ifarch %{arm} aarch64
|
2018-03-29 10:44:21 +02:00
|
|
|
# Enable openGL ES only
|
|
|
|
%bcond_with opengl
|
|
|
|
%bcond_without opengles
|
|
|
|
%else
|
|
|
|
# Enable openGL and openGL ES
|
|
|
|
%bcond_without opengl
|
|
|
|
%bcond_without opengles
|
|
|
|
%endif
|
2017-01-24 20:59:06 +01:00
|
|
|
Name: piglit
|
2024-01-04 09:00:34 +01:00
|
|
|
Version: 1~20231228
|
2017-01-24 20:59:06 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: OpenGL driver testing framework
|
|
|
|
License: MIT
|
|
|
|
Group: System/Benchmark
|
2020-07-22 08:38:28 +02:00
|
|
|
URL: https://cgit.freedesktop.org/piglit
|
2023-06-14 13:51:25 +02:00
|
|
|
Source0: %{name}-%{version}.tar.gz
|
2017-01-24 20:59:06 +01:00
|
|
|
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
|
2023-06-14 13:51:25 +02:00
|
|
|
BuildRequires: glslang-devel
|
2017-01-24 20:59:06 +01:00
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: python3
|
|
|
|
BuildRequires: python3-Mako
|
|
|
|
BuildRequires: python3-numpy
|
|
|
|
BuildRequires: python3-xml
|
|
|
|
BuildRequires: pkgconfig(egl)
|
2018-06-06 16:31:12 +02:00
|
|
|
BuildRequires: pkgconfig(libdrm)
|
|
|
|
BuildRequires: pkgconfig(libpng)
|
2023-06-14 13:51:25 +02:00
|
|
|
BuildRequires: pkgconfig(vulkan)
|
2023-06-14 13:57:10 +02:00
|
|
|
BuildRequires: pkgconfig(waffle-1) >= 1.6.0
|
2018-06-06 16:31:12 +02:00
|
|
|
BuildRequires: pkgconfig(x11)
|
|
|
|
BuildRequires: pkgconfig(xcb)
|
2023-06-14 13:51:25 +02:00
|
|
|
BuildRequires: pkgconfig(xkbcommon)
|
2018-06-06 16:31:12 +02:00
|
|
|
Requires: python3
|
|
|
|
Requires: python3-Mako
|
|
|
|
Requires: python3-numpy
|
|
|
|
Requires: python3-xml
|
2023-06-14 13:57:10 +02:00
|
|
|
Recommends: waffle >= 1.6.0
|
2018-06-06 16:31:12 +02:00
|
|
|
ExcludeArch: %{ix86} ppc
|
2018-03-29 10:44:21 +02:00
|
|
|
%if %{with opengl}
|
2017-01-24 20:59:06 +01:00
|
|
|
BuildRequires: pkgconfig(gl)
|
|
|
|
BuildRequires: pkgconfig(glproto)
|
|
|
|
BuildRequires: pkgconfig(glu)
|
2018-03-29 10:44:21 +02:00
|
|
|
%endif
|
|
|
|
%if %{with opengles}
|
|
|
|
BuildRequires: Mesa-libGLESv3-devel
|
|
|
|
BuildRequires: pkgconfig(glesv1_cm)
|
|
|
|
BuildRequires: pkgconfig(glesv2)
|
|
|
|
%endif
|
|
|
|
%ifarch x86_64
|
2017-01-24 20:59:06 +01:00
|
|
|
BuildRequires: pkgconfig(libdrm_intel)
|
2018-03-29 10:44:21 +02:00
|
|
|
%endif
|
2017-01-24 20:59:06 +01:00
|
|
|
|
|
|
|
%description
|
2017-02-16 19:57:41 +01:00
|
|
|
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.
|
2017-01-24 20:59:06 +01:00
|
|
|
|
|
|
|
%prep
|
2023-06-14 13:51:25 +02:00
|
|
|
%autosetup
|
2017-01-24 20:59:06 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
# 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
|
2017-02-16 11:18:55 +01:00
|
|
|
%cmake \
|
2018-03-29 10:44:21 +02:00
|
|
|
%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
|
2020-06-11 10:54:23 +02:00
|
|
|
-DCMAKE_C_FLAGS="%{optflags} -fcommon -DNDEBUG" \
|
2017-02-16 11:18:55 +01:00
|
|
|
-DCMAKE_SHARED_LINKER_FLAGS="-Wl,--as-needed -Wl,-z,now" \
|
|
|
|
-DCMAKE_SKIP_RPATH:BOOL=OFF \
|
2018-06-13 14:29:32 +02:00
|
|
|
-DCMAKE_BUILD_WITH_INSTALL_RPATH:BOOL=ON \
|
|
|
|
-Wno-dev
|
2019-12-10 14:08:31 +01:00
|
|
|
%cmake_build
|
2017-01-24 20:59:06 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
%cmake_install
|
|
|
|
|
2018-06-13 14:29:32 +02:00
|
|
|
install -Dpm 644 %{SOURCE2} \
|
|
|
|
%{buildroot}%{_libdir}/piglit/tests
|
|
|
|
install -Dpm 644 %{SOURCE3} \
|
|
|
|
%{buildroot}%{_libdir}/piglit/tests
|
|
|
|
install -Dpm 644 %{SOURCE4} \
|
|
|
|
%{buildroot}%{_libdir}/piglit/tests
|
|
|
|
install -Dpm 644 %{SOURCE5} \
|
|
|
|
{buildroot}%{_libdir}/piglit/tests
|
2017-01-24 20:59:06 +01:00
|
|
|
%fdupes %{buildroot}/%{_libdir}/piglit
|
|
|
|
|
2023-06-14 13:51:25 +02:00
|
|
|
%ldconfig_scriptlets
|
2017-01-24 20:59:06 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%{_libdir}/piglit
|
|
|
|
%{_bindir}/piglit
|
|
|
|
%doc %{_datadir}/doc/piglit
|
|
|
|
|
|
|
|
%changelog
|