Blame SPECS/mesa-demos.spec

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