forked from pool/glmark2
* Use std::filesystem throughout the codebase * android: Build native code with C++17 * Doc: Recommend meson for building win32 flavors * github: Build win32 flavors with msvc in CI * github: Build win32 flavors with mingw in CI * include/getopt: Always use non-const char array to avoid MSVC errors * libmatrix: Add utility function to get idle time * libmatrix: Add utility function to get process times * libmatrix: Add utility function to get the number of processors * libmatrix: Use C++ std::chrono instead of clock_gettime * libmatrix: Use C++17 std::filesystem instead of dirent * Build: Add support for win32 flavors in meson * libmatrix: Provide a copy of the va_list to __android_log_vprint * NativeStateX11: Fix WM_DELETE_WINDOW handling OBS-URL: https://build.opensuse.org/package/show/benchmark/glmark2?expand=0&rev=56
87 lines
2.7 KiB
RPMSpec
87 lines
2.7 KiB
RPMSpec
#
|
|
# spec file for package glmark2
|
|
#
|
|
# Copyright (c) 2024 SUSE LLC
|
|
# Copyright (c) 2015-2016 Malcolm J Lewis <malcolmlewis@opensuse.org>
|
|
#
|
|
# 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 https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: glmark2
|
|
Version: 20240425
|
|
Release: 0
|
|
Summary: OpenGL 2.0 and ES 2.0 benchmark
|
|
License: GPL-3.0-only
|
|
Group: System/X11/Utilities
|
|
URL: https://github.com/glmark2/glmark2
|
|
Source0: %{name}-%{version}.tar.gz
|
|
BuildRequires: ImageMagick
|
|
BuildRequires: fdupes
|
|
BuildRequires: gcc-c++ >= 5.0
|
|
BuildRequires: libjpeg-devel
|
|
BuildRequires: pkgconfig
|
|
BuildRequires: python3-base
|
|
BuildRequires: pkgconfig(egl)
|
|
BuildRequires: pkgconfig(gbm)
|
|
BuildRequires: pkgconfig(gl)
|
|
BuildRequires: pkgconfig(glesv2)
|
|
BuildRequires: pkgconfig(libdrm)
|
|
BuildRequires: pkgconfig(libpng16)
|
|
BuildRequires: pkgconfig(libudev)
|
|
BuildRequires: pkgconfig(wayland-client)
|
|
BuildRequires: pkgconfig(wayland-egl)
|
|
BuildRequires: pkgconfig(wayland-protocols)
|
|
BuildRequires: pkgconfig(x11)
|
|
|
|
%description
|
|
A benchmark for OpenGL (ES) 2.0 that uses only the OpenGL ES 2.0 compatible
|
|
API. It contains tests for standard OpenGL (ES) 2.0 features, such as vertex
|
|
arrays, VBOs, texturing and shaders.
|
|
|
|
%prep
|
|
%autosetup
|
|
|
|
%build
|
|
export CXXFLAGS="%{optflags}"
|
|
python3 waf configure \
|
|
--with-flavors=x11-gl,x11-glesv2,wayland-gl,wayland-glesv2,drm-gl,drm-glesv2 \
|
|
--prefix=%{_prefix}
|
|
python3 waf --verbose %{?_smp_mflags}
|
|
|
|
%install
|
|
python3 waf install --destdir=%{buildroot}
|
|
#FIXME Clean up runtime warning - libpng warning: iCCP: known incorrect sRGB profile
|
|
pushd %{buildroot}%{_datadir}/%{name}/textures
|
|
convert effect-2d.png -strip effect-2d.png
|
|
popd
|
|
%fdupes -s %{buildroot}
|
|
|
|
%files
|
|
%license COPYING COPYING.SGI
|
|
%doc NEWS
|
|
%{_bindir}/glmark2
|
|
%{_bindir}/glmark2-drm
|
|
%{_bindir}/glmark2-es2
|
|
%{_bindir}/glmark2-es2-drm
|
|
%{_bindir}/glmark2-es2-wayland
|
|
%{_bindir}/glmark2-wayland
|
|
%{_datadir}/%{name}
|
|
%{_mandir}/man1/glmark2.1%{?ext_man}
|
|
%{_mandir}/man1/glmark2-drm.1%{?ext_man}
|
|
%{_mandir}/man1/glmark2-es2.1%{?ext_man}
|
|
%{_mandir}/man1/glmark2-es2-drm.1%{?ext_man}
|
|
%{_mandir}/man1/glmark2-es2-wayland.1%{?ext_man}
|
|
%{_mandir}/man1/glmark2-wayland.1%{?ext_man}
|
|
|
|
%changelog
|