%global gitdate 20121218 %global gitcommit 6eef979a5488dab01088412f88374b2ea9d615cd %global shortcommit %(c=%{gitcommit}; echo ${c:0:7}) %global tarball mesa-demos %global xdriinfo xdriinfo-1.0.4 %global demodir %{_libdir}/mesa Summary: Mesa demos Name: mesa-demos Version: 8.0.1 Release: 2.%{gitdate}git%{shortcommit}%{?dist} License: MIT Group: System Environment/Libraries URL: http://www.mesa3d.org # git clone http://anongit.freedesktop.org/git/mesa/demos.git # mv demos mesa-demos-6eef979a5488dab01088412f88374b2ea9d615cd # tar --exclude-vcs -cjf mesa-demos-6eef979.tar.bz2 mesa-demos-6eef979a5488dab01088412f88374b2ea9d615cd Source0: %{tarball}-%{shortcommit}.tar.bz2 Source1: http://www.x.org/pub/individual/app/%{xdriinfo}.tar.bz2 Source2: mesad-git-snapshot.sh # Patch pointblast/spriteblast out of the Makefile for legal reasons Patch0: mesa-demos-8.0.1-legal.patch BuildRequires: pkgconfig autoconf automake libtool BuildRequires: freeglut-devel BuildRequires: libGL-devel BuildRequires: libGLU-devel BuildRequires: glew-devel Group: Development/Libraries %description This package provides some demo applications for testing Mesa. %package -n glx-utils Summary: GLX utilities Group: Development/Libraries %description -n glx-utils The glx-utils package provides the glxinfo and glxgears utilities. %prep %setup -q -n %{tarball}-%{gitcommit} -b1 %patch0 -p1 -b .legal # These two files are distributable, but non-free (lack of permission to modify). rm -rf src/demos/pointblast.c rm -rf src/demos/spriteblast.c %build autoreconf -i %configure --bindir=%{demodir} --with-system-data-files make %{?_smp_mflags} pushd ../%{xdriinfo} %configure make %{?_smp_mflags} popd %install make install DESTDIR=%{buildroot} pushd ../%{xdriinfo} make %{?_smp_mflags} install DESTDIR=%{buildroot} popd install -m 0755 src/xdemos/glxgears %{buildroot}%{_bindir} install -m 0755 src/xdemos/glxinfo %{buildroot}%{_bindir} %check %files %{demodir} %{_datadir}/%{name}/ %files -n glx-utils %{_bindir}/glxinfo %{_bindir}/glxgears %{_bindir}/xdriinfo %{_datadir}/man/man1/xdriinfo.1* %changelog * Thu Feb 14 2013 Fedora Release Engineering - 8.0.1-2.20121218git6eef979 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Tue Jan 8 2013 Tom Callaway - 8.0.1-1.20121218git6eef979 - update to 8.0.1 (git checkout from 20121218) - update xdriinfo to 1.0.4 - remove non-free files (bz892925) * Thu Dec 13 2012 Adam Jackson - 7.10-9.20101028 - Rebuild for glew 1.9.0 * Fri Jul 27 2012 Kalev Lember - 7.10-8.20101028 - Rebuilt for GLEW soname bump * Fri Jul 20 2012 Fedora Release Engineering - 7.10-7.20101028 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Fri Jan 13 2012 Fedora Release Engineering - 7.10-6.20101028 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Mon Jun 20 2011 ajax@redhat.com - 7.10-5.20101028 - Rebuild for new glew soname * Tue Feb 08 2011 Fedora Release Engineering - 7.10-4.20101028 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Mon Nov 01 2010 Adam Jackson 7.10-3.20101028 - Install rgba images too (#640688) * Sat Oct 30 2010 Dave Airlie 7.10-2.20101028 - fix install of gears/info (#647947) * Thu Oct 28 2010 Adam Jackson 7.10-1.20101028 - Today's git snapshot - Arbitrary EVR bump to be newer than when the mesa source package dropped the demos subpackage. * Tue Jun 15 2010 Jerome Glisse 7.7 - Initial build.