Blame SPECS/mesa-demos.spec

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