Группа :: Графика
Пакет: glmark2
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
%define flavors x11-gl,drm-gl,x11-glesv2,drm-glesv2,wayland-gl,wayland-glesv2
Name: glmark2
Version: 2021.12
Release: alt4
Summary: an OpenGL 2.0 and ES 2.0 benchmark
Url: https://github.com/glmark2/glmark2
Group: Graphics
License: GPL-3.0-or-later
Vcs: git://git.altlinux.org:/gears/g/glmark2.git
Source: %name-%version-%release.tar
BuildRequires(pre): gcc-c++
BuildRequires: /usr/bin/python3
BuildRequires: libjpeg-devel
BuildRequires: libpng-devel
BuildRequires: libudev-devel
# GL support
BuildRequires: libGL-devel
# GLESv2 support
BuildRequires: libEGL-devel libglvnd-devel
# DRM support
BuildRequires: libdrm-devel libgbm-devel
# Wayland support
BuildRequires: libwayland-client-devel libwayland-cursor-devel libwayland-egl-devel wayland-protocols
Requires: %name-common
%package es2
Summary: an OpenGL 2.0 and ES 2.0 benchmark - ES 2.0 flavour
Group: Graphics
Requires: %name-common
Requires: libGLES
%package drm
Summary: an OpenGL 2.0 and ES 2.0 benchmark - DRM flavor
Group: Graphics
Requires: %name-common
%package es2-drm
Summary: an OpenGL 2.0 and ES 2.0 benchmark - ES 2.0 DRM flavor
Group: Graphics
Requires: %name-common
Requires: libGLES
%package wayland
Summary: an OpenGL 2.0 and ES 2.0 benchmark - Wayland flavor
Group: Graphics
Requires: %name-common
%package es2-wayland
Summary: an OpenGL 2.0 and ES 2.0 benchmark - ES 2.0 Wayland flavor
Group: Graphics
Requires: %name-common
Requires: libGLES
%package common
Summary: Common graphical assets for an OpenGL 2.0 and ES 2.0 benchmark
Group: Graphics
BuildArch: noarch
Obsoletes: %name-data < %version
%define common_descr \
glmark2 is an OpenGL 2.0 and ES 2.0 benchmark.\
\
glmark2 is developed by Alexandros Frantzis and Jesse Barker based on the\
original glmark benchmark by Ben Smith.
%description
%common_descr
%description es2
%common_descr
This package contains ES 2.0 flavor.
%description drm
%common_descr
This package contains DRM flavor.
%description es2-drm
%common_descr
This package contains ES 2.0 DRM flavor.
%description wayland
%common_descr
This package contains Wayland flavor.
%description es2-wayland
%common_descr
This package contains ES 2.0 Wayland flavor.
%description common
%common_descr
This package contains common graphical assets for OpenGL 2.0 and ES 2.0
benchmark.
%prep
%setup -n %name-%version-%release
%build
export CFLAGS="%optflags"
export CXXFLAGS="${CFLAGS}"
./waf configure \
--with-flavors="%flavors" \
--data-path=%_datadir/%name \
--prefix=%prefix \
#
./waf
%install
./waf install --destdir=%buildroot
%files
%_bindir/%name
%_man1dir/%name.1.*
%files es2
%_bindir/%name-es2
%_man1dir/%name-es2.1.*
%files drm
%_bindir/%name-drm
%_man1dir/%name-drm.1.*
%files es2-drm
%_bindir/%name-es2-drm
%_man1dir/%name-es2-drm.1.*
%files wayland
%_bindir/%name-wayland
%_man1dir/%name-wayland.1.*
%files es2-wayland
%_bindir/%name-es2-wayland
%_man1dir/%name-es2-wayland.1.*
%files common
%_datadir/%name
%changelog
…
Полный changelog можно просмотреть здесь
Name: glmark2
Version: 2021.12
Release: alt4
Summary: an OpenGL 2.0 and ES 2.0 benchmark
Url: https://github.com/glmark2/glmark2
Group: Graphics
License: GPL-3.0-or-later
Vcs: git://git.altlinux.org:/gears/g/glmark2.git
Source: %name-%version-%release.tar
BuildRequires(pre): gcc-c++
BuildRequires: /usr/bin/python3
BuildRequires: libjpeg-devel
BuildRequires: libpng-devel
BuildRequires: libudev-devel
# GL support
BuildRequires: libGL-devel
# GLESv2 support
BuildRequires: libEGL-devel libglvnd-devel
# DRM support
BuildRequires: libdrm-devel libgbm-devel
# Wayland support
BuildRequires: libwayland-client-devel libwayland-cursor-devel libwayland-egl-devel wayland-protocols
Requires: %name-common
%package es2
Summary: an OpenGL 2.0 and ES 2.0 benchmark - ES 2.0 flavour
Group: Graphics
Requires: %name-common
Requires: libGLES
%package drm
Summary: an OpenGL 2.0 and ES 2.0 benchmark - DRM flavor
Group: Graphics
Requires: %name-common
%package es2-drm
Summary: an OpenGL 2.0 and ES 2.0 benchmark - ES 2.0 DRM flavor
Group: Graphics
Requires: %name-common
Requires: libGLES
%package wayland
Summary: an OpenGL 2.0 and ES 2.0 benchmark - Wayland flavor
Group: Graphics
Requires: %name-common
%package es2-wayland
Summary: an OpenGL 2.0 and ES 2.0 benchmark - ES 2.0 Wayland flavor
Group: Graphics
Requires: %name-common
Requires: libGLES
%package common
Summary: Common graphical assets for an OpenGL 2.0 and ES 2.0 benchmark
Group: Graphics
BuildArch: noarch
Obsoletes: %name-data < %version
%define common_descr \
glmark2 is an OpenGL 2.0 and ES 2.0 benchmark.\
\
glmark2 is developed by Alexandros Frantzis and Jesse Barker based on the\
original glmark benchmark by Ben Smith.
%description
%common_descr
%description es2
%common_descr
This package contains ES 2.0 flavor.
%description drm
%common_descr
This package contains DRM flavor.
%description es2-drm
%common_descr
This package contains ES 2.0 DRM flavor.
%description wayland
%common_descr
This package contains Wayland flavor.
%description es2-wayland
%common_descr
This package contains ES 2.0 Wayland flavor.
%description common
%common_descr
This package contains common graphical assets for OpenGL 2.0 and ES 2.0
benchmark.
%prep
%setup -n %name-%version-%release
%build
export CFLAGS="%optflags"
export CXXFLAGS="${CFLAGS}"
./waf configure \
--with-flavors="%flavors" \
--data-path=%_datadir/%name \
--prefix=%prefix \
#
./waf
%install
./waf install --destdir=%buildroot
%files
%_bindir/%name
%_man1dir/%name.1.*
%files es2
%_bindir/%name-es2
%_man1dir/%name-es2.1.*
%files drm
%_bindir/%name-drm
%_man1dir/%name-drm.1.*
%files es2-drm
%_bindir/%name-es2-drm
%_man1dir/%name-es2-drm.1.*
%files wayland
%_bindir/%name-wayland
%_man1dir/%name-wayland.1.*
%files es2-wayland
%_bindir/%name-es2-wayland
%_man1dir/%name-es2-wayland.1.*
%files common
%_datadir/%name
%changelog
…
Полный changelog можно просмотреть здесь