|
|
aac66cb |
%global commit0 0003eff782938daf852a70f6ca4cdf8fafd02854
|
|
|
aac66cb |
%global shortcommit0 %(c=%{commit0}; echo ${c:0:7})
|
|
|
aac66cb |
%global commitdate0 20180717
|
|
|
aac66cb |
|
|
Jon Disnard |
fd1001e |
Name: glmark2
|
|
|
aac66cb |
Version: 2017.07
|
|
|
aac66cb |
Release: 1.%{commitdate0}git%{shortcommit0}%{?dist}
|
|
Jon Disnard |
fd1001e |
Summary: Benchmark for OpenGL 2.0
|
|
Jon Disnard |
fd1001e |
|
|
Jon Disnard |
fd1001e |
|
|
Jon Disnard |
fd1001e |
License: GPLv3
|
|
|
aac66cb |
URL: https://github.com/glmark2/glmark2
|
|
|
aac66cb |
Source0: %{url}/archive/%{commit0}/%{name}-%{shortcommit0}.tar.gz
|
|
Jon Disnard |
fd1001e |
|
|
Jon Disnard |
fd1001e |
|
|
Jon Disnard |
fd1001e |
## The bellow sources are carried by Fedora package maintaners
|
|
Jon Disnard |
fd1001e |
|
|
Jon Disnard |
fd1001e |
|
|
Jon Disnard |
fd1001e |
##
|
|
Jon Disnard |
fd1001e |
## .desktop files
|
|
Jon Disnard |
fd1001e |
##
|
|
Jon Disnard |
fd1001e |
|
|
Jon Disnard |
fd1001e |
# 9a43f39f0ddfc91e758e7d7cc44169df30f432b85e668ac135eb38e5dbaa48d8
|
|
Jon Disnard |
fd1001e |
Source1: %{name}.desktop
|
|
Jon Disnard |
fd1001e |
|
|
Jon Disnard |
fd1001e |
# 5f4c57f5d183ab1b989f293bbc2a6abc27d54f6f796a62318fe7519cc9311a21
|
|
Jon Disnard |
fd1001e |
Source2: %{name}-es2.desktop
|
|
Jon Disnard |
fd1001e |
|
|
Jon Disnard |
fd1001e |
# ca9e822c62d415052cb27474bfa6ac2f700409bfbeffe9450444b9ef2f5ee246
|
|
Jon Disnard |
fd1001e |
Source8: %{name}-drm.desktop
|
|
Jon Disnard |
fd1001e |
|
|
Jon Disnard |
fd1001e |
# 74d8b8939dbb9c704c355aa76c10e71bb85adf500ebe3dfa5049d29c52876d05
|
|
Jon Disnard |
fd1001e |
Source9: %{name}-es2-drm.desktop
|
|
Jon Disnard |
fd1001e |
|
|
Jon Disnard |
fd1001e |
|
|
Jon Disnard |
fd1001e |
|
|
Jon Disnard |
fd1001e |
##
|
|
Jon Disnard |
fd1001e |
## .desktop pixmap icons
|
|
Jon Disnard |
fd1001e |
##
|
|
Jon Disnard |
fd1001e |
|
|
Jon Disnard |
fd1001e |
|
|
Jon Disnard |
fd1001e |
# de1229366912806f838409c7ff315be5cc48c6e659d78dfd80d0c5db4dcede1d
|
|
Jon Disnard |
fd1001e |
Source3: %{name}.png
|
|
Jon Disnard |
fd1001e |
|
|
Jon Disnard |
fd1001e |
# aabcddd0c23d20daf0ed024ae4e7b925ec2fb63bb656843d7180904093a8020e
|
|
Jon Disnard |
fd1001e |
Source4: %{name}-es2.png
|
|
Jon Disnard |
fd1001e |
|
|
Jon Disnard |
fd1001e |
# 12262d758152ac7c404e8f7173024366ebf4f326935584c1b147c5f3ce1341bf
|
|
Jon Disnard |
fd1001e |
Source12: %{name}-drm.png
|
|
Jon Disnard |
fd1001e |
|
|
Jon Disnard |
fd1001e |
# 12262d758152ac7c404e8f7173024366ebf4f326935584c1b147c5f3ce1341bf
|
|
Jon Disnard |
fd1001e |
Source13: %{name}-es2-drm.png
|
|
Jon Disnard |
fd1001e |
|
|
Jon Disnard |
fd1001e |
|
|
Jon Disnard |
fd1001e |
##
|
|
Jon Disnard |
fd1001e |
## gimp icon sources (not packaged into final rpm, just source rpm)
|
|
Jon Disnard |
fd1001e |
##
|
|
Jon Disnard |
fd1001e |
|
|
Jon Disnard |
fd1001e |
# 1e96f5291318a9c466eed0435ad0e740c789a9b418476807b7253ce0d88b5421
|
|
Jon Disnard |
fd1001e |
Source5: %{name}.xcf
|
|
Jon Disnard |
fd1001e |
|
|
Jon Disnard |
fd1001e |
# 163b7db2a293e1e86a34c6f84294bb1f54e313ef983fff511a4fe1abca9acd5f
|
|
Jon Disnard |
fd1001e |
Source6: %{name}-es2.xcf
|
|
Jon Disnard |
fd1001e |
|
|
Jon Disnard |
fd1001e |
# 7ab4b18107ecf3140493f7eeaf2374f8de82bbcb82fe98d58e444b174266f1f7
|
|
Jon Disnard |
fd1001e |
Source10: %{name}-drm.xcf
|
|
Jon Disnard |
fd1001e |
|
|
Jon Disnard |
fd1001e |
# cc25e28b8c5db4f03e18b95d557323ab09d5a9849946e41e45ba11e3b6df13bb
|
|
Jon Disnard |
fd1001e |
Source11: %{name}-es2-drm.xcf
|
|
Jon Disnard |
fd1001e |
|
|
Jon Disnard |
fd1001e |
|
|
Jon Disnard |
fd1001e |
|
|
Jon Disnard |
fd1001e |
##
|
|
Jon Disnard |
fd1001e |
## appdata - glmark2 only!
|
|
Jon Disnard |
fd1001e |
##
|
|
Jon Disnard |
fd1001e |
|
|
Jon Disnard |
fd1001e |
# 2d5b3e7c9380d068598f272b2f5b55ca736fa157fd205246a86c2473e08577d4
|
|
Jon Disnard |
fd1001e |
Source7: %{name}.appdata.xml
|
|
Jon Disnard |
fd1001e |
|
|
Jon Disnard |
fd1001e |
|
|
Jon Disnard |
fd1001e |
##
|
|
Jon Disnard |
fd1001e |
## BRs
|
|
Jon Disnard |
fd1001e |
##
|
|
Jon Disnard |
fd1001e |
|
|
|
aac66cb |
BuildRequires: gcc-c++
|
|
Jon Disnard |
fd1001e |
BuildRequires: libjpeg-devel
|
|
Jon Disnard |
fd1001e |
BuildRequires: pkgconfig(libpng12)
|
|
Jon Disnard |
fd1001e |
BuildRequires: pkgconfig(x11)
|
|
Jon Disnard |
fd1001e |
BuildRequires: pkgconfig(gl)
|
|
Jon Disnard |
fd1001e |
BuildRequires: pkgconfig(egl)
|
|
Jon Disnard |
fd1001e |
BuildRequires: pkgconfig(glesv2)
|
|
Jon Disnard |
fd1001e |
BuildRequires: pkgconfig(gbm)
|
|
|
aac66cb |
BuildRequires: pkgconfig(libdrm)
|
|
|
aac66cb |
BuildRequires: pkgconfig(libudev)
|
|
|
aac66cb |
BuildRequires: pkgconfig(wayland-client)
|
|
|
aac66cb |
BuildRequires: pkgconfig(wayland-egl)
|
|
|
aac66cb |
BuildRequires: python2-devel
|
|
Jon Disnard |
fd1001e |
BuildRequires: desktop-file-utils
|
|
Jon Disnard |
fd1001e |
BuildRequires: appdata-tools
|
|
|
aac66cb |
BuildRequires: waf
|
|
Jon Disnard |
fd1001e |
|
|
Jon Disnard |
fd1001e |
|
|
Jon Disnard |
fd1001e |
|
|
Jon Disnard |
fd1001e |
Requires: %{name}-common = %{version}-%{release}
|
|
Jon Disnard |
fd1001e |
|
|
Jon Disnard |
fd1001e |
%description
|
|
Jon Disnard |
fd1001e |
Glmark2 is a benchmark for OpenGL 2.0.
|
|
Jon Disnard |
fd1001e |
|
|
Jon Disnard |
fd1001e |
|
|
Jon Disnard |
fd1001e |
|
|
Jon Disnard |
fd1001e |
|
|
Jon Disnard |
fd1001e |
##
|
|
Jon Disnard |
fd1001e |
## sub-package
|
|
Jon Disnard |
fd1001e |
## The noarch sub-package is easier on the mirrors.
|
|
Jon Disnard |
fd1001e |
## One package for common noarch data shared with all architectures.
|
|
Jon Disnard |
fd1001e |
##
|
|
Jon Disnard |
fd1001e |
|
|
Jon Disnard |
fd1001e |
|
|
Jon Disnard |
fd1001e |
%package common
|
|
Jon Disnard |
fd1001e |
Summary: Models, Textures, and Shaders for GLmark2 Benchmark suite
|
|
Jon Disnard |
fd1001e |
BuildArch: noarch
|
|
Jon Disnard |
fd1001e |
Requires: %{name} = %{version}-%{release}
|
|
Jon Disnard |
fd1001e |
%description common
|
|
|
c5ba83b |
Common graphical assets for Glmark2 benchmark suite
|
|
Jon Disnard |
fd1001e |
|
|
Jon Disnard |
fd1001e |
|
|
Jon Disnard |
fd1001e |
|
|
Jon Disnard |
fd1001e |
|
|
Jon Disnard |
fd1001e |
%prep
|
|
|
aac66cb |
%autosetup -p1 -n %{name}-%{commit0}
|
|
Jon Disnard |
fd1001e |
|
|
Jon Disnard |
fd1001e |
# Remove bundled libraries!
|
|
|
aac66cb |
rm -r src/libjpeg-turbo src/libpng
|
|
|
aac66cb |
rm -r waf waflib
|
|
Jon Disnard |
fd1001e |
|
|
Jon Disnard |
fd1001e |
%build
|
|
|
aac66cb |
%{_bindir}/waf configure \
|
|
|
aac66cb |
--with-flavors="x11-gl,x11-glesv2,drm-gl,wayland-gl,wayland-glesv2,drm-glesv2" \
|
|
|
aac66cb |
--prefix=%{_usr} \
|
|
Jon Disnard |
fd1001e |
|
|
|
aac66cb |
%{_bindir}/waf -v %{?_smp_mflags}
|
|
Jon Disnard |
fd1001e |
|
|
Jon Disnard |
fd1001e |
|
|
Jon Disnard |
fd1001e |
%install
|
|
|
aac66cb |
%{_bindir}/waf install -v --destdir=%{buildroot}
|
|
Jon Disnard |
fd1001e |
|
|
Jon Disnard |
fd1001e |
|
|
Jon Disnard |
fd1001e |
## The .desktop files
|
|
Jon Disnard |
fd1001e |
desktop-file-install \
|
|
Jon Disnard |
fd1001e |
--dir=%{buildroot}%{_datadir}/applications %{SOURCE1}
|
|
Jon Disnard |
fd1001e |
|
|
Jon Disnard |
fd1001e |
desktop-file-install \
|
|
Jon Disnard |
fd1001e |
--dir=%{buildroot}%{_datadir}/applications %{SOURCE2}
|
|
Jon Disnard |
fd1001e |
|
|
Jon Disnard |
fd1001e |
desktop-file-install \
|
|
Jon Disnard |
fd1001e |
--dir=%{buildroot}%{_datadir}/applications %{SOURCE8}
|
|
Jon Disnard |
fd1001e |
|
|
Jon Disnard |
fd1001e |
desktop-file-install \
|
|
Jon Disnard |
fd1001e |
--dir=%{buildroot}%{_datadir}/applications %{SOURCE9}
|
|
Jon Disnard |
fd1001e |
|
|
Jon Disnard |
fd1001e |
|
|
Jon Disnard |
fd1001e |
## The ICON files
|
|
Jon Disnard |
fd1001e |
%{__install} -vd "%{buildroot}%{_datadir}/pixmaps/"
|
|
Jon Disnard |
fd1001e |
%{__install} -vp %{SOURCE3} \
|
|
Jon Disnard |
fd1001e |
%{SOURCE4} \
|
|
Jon Disnard |
fd1001e |
%{SOURCE12} \
|
|
Jon Disnard |
fd1001e |
%{SOURCE13} \
|
|
Jon Disnard |
fd1001e |
"%{buildroot}%{_datadir}/pixmaps/"
|
|
Jon Disnard |
fd1001e |
|
|
Jon Disnard |
fd1001e |
## The appdata
|
|
Jon Disnard |
fd1001e |
%{__install} -vd "%{buildroot}%{_datadir}/appdata/"
|
|
Jon Disnard |
fd1001e |
%{__install} -vp %{SOURCE7} "%{buildroot}%{_datadir}/appdata/"
|
|
Jon Disnard |
fd1001e |
|
|
Jon Disnard |
fd1001e |
|
|
Jon Disnard |
fd1001e |
## Upstream presently does not have any %%check's
|
|
Jon Disnard |
fd1001e |
## Here we validate .appdata.xml files, but make erros non-fatal
|
|
Jon Disnard |
fd1001e |
%check
|
|
Jon Disnard |
fd1001e |
#appdata-validate %{buildroot}%{_datadir}/appdata/%{name}.appdata.xml || true
|
|
Jon Disnard |
fd1001e |
appstream-util validate-relax --nonet %{buildroot}%{_datadir}/appdata/%{name}.appdata.xml || :
|
|
Jon Disnard |
fd1001e |
|
|
Jon Disnard |
fd1001e |
|
|
Jon Disnard |
fd1001e |
%files
|
|
Jon Disnard |
fd1001e |
## the x11 opengl benchmark
|
|
|
aac66cb |
%doc NEWS README
|
|
|
aac66cb |
%license COPYING COPYING.SGI
|
|
Jon Disnard |
fd1001e |
%{_datadir}/applications/%{name}.desktop
|
|
Jon Disnard |
fd1001e |
%{_datadir}/appdata/%{name}.appdata.xml
|
|
Jon Disnard |
fd1001e |
%{_datadir}/pixmaps/%{name}.png
|
|
Jon Disnard |
fd1001e |
%{_bindir}/%{name}
|
|
Jon Disnard |
fd1001e |
%{_mandir}/man1/%{name}.1.gz
|
|
Jon Disnard |
fd1001e |
|
|
Jon Disnard |
fd1001e |
|
|
Jon Disnard |
fd1001e |
## x11 Opengl benchmark DRM
|
|
Jon Disnard |
fd1001e |
%{_datadir}/applications/%{name}-drm.desktop
|
|
Jon Disnard |
fd1001e |
%{_datadir}/pixmaps/%{name}-drm.png
|
|
Jon Disnard |
fd1001e |
%{_bindir}/%{name}-drm
|
|
Jon Disnard |
fd1001e |
%{_mandir}/man1/%{name}-drm.1.gz
|
|
Jon Disnard |
fd1001e |
|
|
Jon Disnard |
fd1001e |
|
|
Jon Disnard |
fd1001e |
## Opengl ES 2 benchmark
|
|
Jon Disnard |
fd1001e |
%{_datadir}/applications/%{name}-es2.desktop
|
|
Jon Disnard |
fd1001e |
%{_datadir}/pixmaps/%{name}-es2.png
|
|
Jon Disnard |
fd1001e |
%{_bindir}/%{name}-es2
|
|
Jon Disnard |
fd1001e |
%{_mandir}/man1/%{name}-es2.1.gz
|
|
Jon Disnard |
fd1001e |
|
|
Jon Disnard |
fd1001e |
|
|
Jon Disnard |
fd1001e |
## Opengl ES 2 benchmark DRM
|
|
Jon Disnard |
fd1001e |
%{_datadir}/applications/%{name}-es2-drm.desktop
|
|
Jon Disnard |
fd1001e |
%{_datadir}/pixmaps/%{name}-es2-drm.png
|
|
Jon Disnard |
fd1001e |
%{_bindir}/%{name}-es2-drm
|
|
Jon Disnard |
fd1001e |
%{_mandir}/man1/%{name}-es2-drm.1.gz
|
|
Jon Disnard |
fd1001e |
|
|
Jon Disnard |
fd1001e |
|
|
Jon Disnard |
fd1001e |
%files common
|
|
Jon Disnard |
fd1001e |
## assets: models, shaders, textures
|
|
Jon Disnard |
fd1001e |
%{_datadir}/%{name}/
|
|
Jon Disnard |
fd1001e |
|
|
Jon Disnard |
fd1001e |
|
|
Jon Disnard |
fd1001e |
|
|
Jon Disnard |
fd1001e |
%changelog
|
|
|
aac66cb |
* Tue Jul 17 2018 Nicolas Chauvet <kwizart@gmail.com> - 2017.07-1.20180407git0003eff
|
|
|
aac66cb |
- Bump to 2017.07 snapshot
|
|
|
aac66cb |
- Switch to github
|
|
|
aac66cb |
- Switch to system waf
|
|
|
aac66cb |
|
|
|
6cda659 |
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2014.03-11
|
|
|
6cda659 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
6cda659 |
|
|
|
d08a057 |
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2014.03-10
|
|
|
d08a057 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
d08a057 |
|
|
|
89e3675 |
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2014.03-9
|
|
|
89e3675 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
89e3675 |
|
|
|
8f494d4 |
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2014.03-8
|
|
|
8f494d4 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
8f494d4 |
|
|
|
297d747 |
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2014.03-7
|
|
|
297d747 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
297d747 |
|
|
|
c5ba83b |
* Fri May 20 2016 Jonathan Wakely <jwakely@redhat.com> - 2014.03-6
|
|
|
c5ba83b |
- Fixed description of glmark2-common subpackage
|
|
|
c5ba83b |
|
|
|
e83e796 |
* Thu May 19 2016 Jonathan Wakely <jwakely@redhat.com> - 2014.03-5
|
|
|
e83e796 |
- Fixed build with GCC 6 (#1307539)
|
|
|
e83e796 |
|
|
|
63f3ab4 |
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2014.03-5
|
|
|
63f3ab4 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
63f3ab4 |
|
|
|
29a7ecf |
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2014.03-4
|
|
|
29a7ecf |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
29a7ecf |
|
|
|
e2da12e |
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 2014.03-3
|
|
|
e2da12e |
- Rebuilt for GCC 5 C++11 ABI change
|
|
|
e2da12e |
|
|
Jon Disnard |
fd1001e |
* Sun Jan 04 2015 Jon Disnard <jdisnard@gmail.com> 2014.03-2
|
|
Jon Disnard |
fd1001e |
- Use current appdata validation standards.
|
|
Jon Disnard |
fd1001e |
|
|
Jon Disnard |
fd1001e |
* Fri Jan 02 2015 Jon Disnard <jdisnard@gmail.com> 2014.03-1
|
|
Jon Disnard |
fd1001e |
- Now using upstream 2014.03
|
|
Jon Disnard |
fd1001e |
- re-jiggered waf configure per upstream
|
|
Jon Disnard |
fd1001e |
|
|
Jon Disnard |
fd1001e |
* Sun Feb 23 2014 Jon Disnard <jdisnard@gmail.com> 2012.12-3
|
|
Jon Disnard |
fd1001e |
- fix %%files datadir ownership
|
|
Jon Disnard |
fd1001e |
- remove redundant .desktop validation checks
|
|
Jon Disnard |
fd1001e |
- add transitive dep in -common sub-package
|
|
Jon Disnard |
fd1001e |
- Remove bundled libraries per package guidelines
|
|
Jon Disnard |
fd1001e |
- Move waf ./configure to %%build phase
|
|
Jon Disnard |
fd1001e |
|
|
Jon Disnard |
fd1001e |
|
|
Jon Disnard |
fd1001e |
* Sat Feb 01 2014 Jon Disnard <jdisnard@gmail.com> 2012.12-2
|
|
Jon Disnard |
fd1001e |
- Make appdata-validate informative, not imperative.
|
|
Jon Disnard |
fd1001e |
|
|
Jon Disnard |
fd1001e |
* Sat Feb 01 2014 Jon Disnard <jdisnard@gmail.com> 2012.12-2
|
|
Jon Disnard |
fd1001e |
- Package review fixes
|
|
Jon Disnard |
fd1001e |
|
|
Jon Disnard |
fd1001e |
* Sun Jan 26 2014 Jon Disnard <jdisnard@gmail.com> 2012.12-1
|
|
Jon Disnard |
fd1001e |
- Inception
|
|
Jon Disnard |
fd1001e |
|