Blame SPECS/mesa-demos.spec

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