0eccf3
%global gitdate 20210504
0eccf3
%global gitcommit 0f9e7d995a14f15666600fc8598f941b619d82fe
0eccf3
%global shortcommit %(c=%{gitcommit}; echo ${c:0:7})
0eccf3
%global xdriinfo xdriinfo-1.0.4
0eccf3
%global demodir %{_libdir}/mesa
0eccf3
0eccf3
Summary: Mesa demos
0eccf3
Name: mesa-demos
0eccf3
Version: 8.4.0
0eccf3
Release: 12.%{gitdate}git%{shortcommit}%{?dist}
0eccf3
License: MIT
0eccf3
URL: http://www.mesa3d.org
0eccf3
#Source0: https://mesa.freedesktop.org/archive/demos/%{version}/%{name}-%{version}.tar.bz2
0eccf3
Source0: mesa-demos-%{gitdate}.tar.bz2
0eccf3
Source1: http://www.x.org/pub/individual/app/%{xdriinfo}.tar.bz2
0eccf3
Source2: mesad-git-snapshot.sh
0eccf3
# Patch pointblast/spriteblast out of the Makefile for legal reasons
0eccf3
Patch0: mesa-demos-8.0.1-legal.patch
0eccf3
Patch1: mesa-demos-as-needed.patch
0eccf3
# Fix xdriinfo not working with libglvnd
0eccf3
Patch2: xdriinfo-1.0.4-glvnd.patch
0eccf3
BuildRequires: make
0eccf3
BuildRequires: gcc-c++
0eccf3
BuildRequires: pkgconfig autoconf automake libtool
0eccf3
BuildRequires: freeglut-devel
0eccf3
BuildRequires: mesa-libGL-devel
0eccf3
BuildRequires: mesa-libEGL-devel
0eccf3
BuildRequires: mesa-libGLES-devel
0eccf3
BuildRequires: mesa-libgbm-devel
0eccf3
BuildRequires: libGLU-devel
0eccf3
BuildRequires: libXext-devel
0eccf3
BuildRequires: wayland-devel
0eccf3
BuildRequires: freetype-devel
0eccf3
0eccf3
%description
0eccf3
This package provides some demo applications for testing Mesa.
0eccf3
0eccf3
%package -n glx-utils
0eccf3
Summary: GLX utilities
0eccf3
Provides: glxinfo glxinfo%{?__isa_bits}
0eccf3
0eccf3
%description -n glx-utils
0eccf3
The glx-utils package provides the glxinfo and glxgears utilities.
0eccf3
0eccf3
%package -n egl-utils
0eccf3
Summary: EGL utilities
0eccf3
Provides: eglinfo es2_info
0eccf3
0eccf3
%description -n egl-utils
0eccf3
The egl-utils package provides the eglinfo and es2_info utilities.
0eccf3
0eccf3
%prep
0eccf3
%setup -q -n %{name}-%{gitdate} -b1
0eccf3
%patch0 -p1 -b .legal
0eccf3
%patch1 -p1 -b .asneeded
0eccf3
pushd ../%{xdriinfo}
0eccf3
%patch2 -p1
0eccf3
popd
0eccf3
0eccf3
# These two files are distributable, but non-free (lack of permission to modify).
0eccf3
rm -rf src/demos/pointblast.c
0eccf3
rm -rf src/demos/spriteblast.c
0eccf3
0eccf3
%build
0eccf3
autoreconf -vfi
0eccf3
%configure \
0eccf3
    --bindir=%{demodir} \
0eccf3
    --with-system-data-files \
0eccf3
    --enable-x11 \
0eccf3
    --enable-wayland \
0eccf3
    --enable-gbm \
0eccf3
    --enable-egl \
0eccf3
    --enable-gles2 \
0eccf3
    --enable-libdrm \
0eccf3
    --enable-freetype2
0eccf3
%make_build
0eccf3
0eccf3
pushd ../%{xdriinfo}
0eccf3
%configure
0eccf3
%make_build
0eccf3
popd
0eccf3
0eccf3
%install
0eccf3
%make_install
0eccf3
0eccf3
pushd ../%{xdriinfo}
0eccf3
%make_install %{?_smp_mflags}
0eccf3
popd
0eccf3
0eccf3
install -m 0755 src/xdemos/glxgears %{buildroot}%{_bindir}
0eccf3
install -m 0755 src/xdemos/glxinfo %{buildroot}%{_bindir}
0eccf3
%if 0%{?__isa_bits} != 0
0eccf3
install -m 0755 src/xdemos/glxinfo %{buildroot}%{_bindir}/glxinfo%{?__isa_bits}
0eccf3
%endif
0eccf3
0eccf3
install -m 0755 src/egl/opengl/eglinfo %{buildroot}%{_bindir}
0eccf3
install -m 0755 src/egl/opengles2/es2_info %{buildroot}%{_bindir}
0eccf3
0eccf3
%check
0eccf3
0eccf3
%files
0eccf3
%{demodir}
0eccf3
%{_datadir}/%{name}/
0eccf3
0eccf3
%files -n glx-utils
0eccf3
%{_bindir}/glxinfo*
0eccf3
%{_bindir}/glxgears
0eccf3
%{_bindir}/xdriinfo
0eccf3
%{_datadir}/man/man1/xdriinfo.1*
0eccf3
0eccf3
%files -n egl-utils
0eccf3
%{_bindir}/eglinfo
0eccf3
%{_bindir}/es2_info
0eccf3
0eccf3
%changelog
0eccf3
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 8.4.0-12.20210504git0f9e7d9
0eccf3
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
0eccf3
  Related: rhbz#1991688
0eccf3
0eccf3
* Tue May 04 2021 Adam Jackson <ajax@redhat.com> - 8.4.0-11.20210504git0f9e7d995a14f15
0eccf3
- Sync with upstream to drop the glew dependency
0eccf3
0eccf3
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 8.4.0-9.20181118git1830dcb
0eccf3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
0eccf3
0eccf3
* Wed Jul 29 2020 Tom Stellard <tstellar@redhat.com> - 8.4.0-8.20181118git1830dcb
0eccf3
- Use make macros
0eccf3
- https://fedoraproject.org/wiki/Changes/UseMakeBuildInstallMacro
0eccf3
0eccf3
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 8.4.0-7.20181118git1830dcb
0eccf3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
0eccf3
0eccf3
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 8.4.0-6.20181118git1830dcb
0eccf3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
0eccf3
0eccf3
* Fri Oct 04 2019 Gwyn Ciesla <gwync@protonmail.com> - 8.4.0-5.20181118git1830dcb
0eccf3
- Rebuilt for new freeglut.
0eccf3
0eccf3
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 8.4.0-4.20181118git1830dcb
0eccf3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
0eccf3
0eccf3
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 8.4.0-3.20181118git1830dcb
0eccf3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
0eccf3
0eccf3
* Mon Nov 19 2018 Lyude Paul <lyude@redhat.com> - 8.4.0-2.20181118git1830dcb
0eccf3
- Start using proper git version strings for rawhide
0eccf3
- Enabling building of wayland and freetype demos
0eccf3
0eccf3
* Sun Nov 18 2018 Lyude Paul <lyude@redhat.com> - 8.4.0-1
0eccf3
- New git snapshot
0eccf3
0eccf3
* Thu Aug 23 2018 Nicolas Chauvet <kwizart@gmail.com> - 8.3.0-12
0eccf3
- Rebuilt for glew 2.1.0
0eccf3
0eccf3
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 8.3.0-11
0eccf3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
0eccf3
0eccf3
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 8.3.0-10
0eccf3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
0eccf3
0eccf3
* Fri Oct 27 2017 Adam Jackson <ajax@redhat.com> - 8.3.0-9
0eccf3
- New git snapshot
0eccf3
0eccf3
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 8.3.0-8
0eccf3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
0eccf3
0eccf3
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 8.3.0-7
0eccf3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
0eccf3
0eccf3
* Mon Mar 13 2017 Hans de Goede <hdegoede@redhat.com> - 8.3.0-6
0eccf3
- Fix xdriinfo not working with libglvnd (rhbz#1429894)
0eccf3
0eccf3
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 8.3.0-5
0eccf3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
0eccf3
0eccf3
* Tue Jan 10 2017 Orion Poplawski <orion@cora.nwra.com> - 8.3.0-4
0eccf3
- Rebuild for glew 2.0.0
0eccf3
0eccf3
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 8.3.0-3
0eccf3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
0eccf3
0eccf3
* Thu Jan 14 2016 Adam Jackson <ajax@redhat.com> - 8.3.0-2
0eccf3
- Rebuild for glew 1.13
0eccf3
0eccf3
* Fri Dec 18 2015 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 8.3.0-1
0eccf3
- 8.3.0
0eccf3
0eccf3
* Thu Dec 03 2015 Adam Jackson <ajax@redhat.com> 8.2.0-5
0eccf3
- New git snap
0eccf3
- Add EGL/GLES buildreqs and egl-utils subpackage
0eccf3
0eccf3
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 8.2.0-4
0eccf3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
0eccf3
0eccf3
* Sat Feb 21 2015 Till Maas <opensource@till.name> - 8.2.0-3
0eccf3
- Rebuilt for Fedora 23 Change
0eccf3
  https://fedoraproject.org/wiki/Changes/Harden_all_packages_with_position-independent_code
0eccf3
0eccf3
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 8.2.0-2
0eccf3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
0eccf3
0eccf3
* Sat Jul 05 2014 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 8.2.0-1
0eccf3
- 8.2.0 upstream release
0eccf3
0eccf3
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 8.1.0-6
0eccf3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
0eccf3
0eccf3
* Sun Nov 17 2013 Dave Airlie <airlied@redhat.com> - 8.1.0-5
0eccf3
- rebuilt for glew 1.10
0eccf3
0eccf3
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 8.1.0-4
0eccf3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
0eccf3
0eccf3
* Wed Mar 27 2013 Adam Jackson <ajax@redhat.com> 8.1.0-3
0eccf3
- Build with --as-needed so glxinfo doesn't needlessly drag in GLEW
0eccf3
0eccf3
* Wed Feb 27 2013 Adam Jackson <ajax@redhat.com> 8.1.0-2
0eccf3
- Copy glxinfo to glxinfo%%{__isa_bits}, to allow people to check that their
0eccf3
  compatibility drivers are working.
0eccf3
0eccf3
* Sun Feb 24 2013 Dave Airlie <airlied@redhat.com> 8.1.0-1
0eccf3
- package upstream demos release 8.1.0 (mainly for new glxinfo)
0eccf3
0eccf3
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 8.0.1-2.20121218git6eef979
0eccf3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
0eccf3
0eccf3
* Tue Jan  8 2013 Tom Callaway <spot@fedoraproject.org> - 8.0.1-1.20121218git6eef979
0eccf3
- update to 8.0.1 (git checkout from 20121218)
0eccf3
- update xdriinfo to 1.0.4
0eccf3
- remove non-free files (bz892925)
0eccf3
0eccf3
* Thu Dec 13 2012 Adam Jackson <ajax@redhat.com> - 7.10-9.20101028
0eccf3
- Rebuild for glew 1.9.0
0eccf3
0eccf3
* Fri Jul 27 2012 Kalev Lember <kalevlember@gmail.com> - 7.10-8.20101028
0eccf3
- Rebuilt for GLEW soname bump
0eccf3
0eccf3
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 7.10-7.20101028
0eccf3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
0eccf3
0eccf3
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 7.10-6.20101028
0eccf3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
0eccf3
0eccf3
* Mon Jun 20 2011 ajax@redhat.com - 7.10-5.20101028
0eccf3
- Rebuild for new glew soname
0eccf3
0eccf3
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 7.10-4.20101028
0eccf3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
0eccf3
0eccf3
* Mon Nov 01 2010 Adam Jackson <ajax@redhat.com> 7.10-3.20101028
0eccf3
- Install rgba images too (#640688)
0eccf3
0eccf3
* Sat Oct 30 2010 Dave Airlie <airlied@redhat.com> 7.10-2.20101028
0eccf3
- fix install of gears/info (#647947)
0eccf3
0eccf3
* Thu Oct 28 2010 Adam Jackson <ajax@redhat.com> 7.10-1.20101028
0eccf3
- Today's git snapshot
0eccf3
- Arbitrary EVR bump to be newer than when the mesa source package dropped
0eccf3
  the demos subpackage.
0eccf3
0eccf3
* Tue Jun 15 2010 Jerome Glisse <jglisse@redhat.com> 7.7
0eccf3
- Initial build.