mesa-demos/mesa-demos.spec

132 lines
4.1 KiB
RPMSpec
Raw Normal View History

%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
2010-07-22 14:36:01 +00:00
Summary: Mesa demos
Name: mesa-demos
Version: 8.1.0
Release: 2%{?dist}
2010-07-22 14:36:01 +00:00
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
Source0: ftp://ftp.freedesktop.org/pub/mesa/demos/8.1.0/%{tarball}-%{version}.tar.bz2
2010-07-22 14:36:01 +00:00
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
2010-10-28 11:06:46 +00:00
BuildRequires: pkgconfig autoconf automake libtool
2010-07-22 14:36:01 +00:00
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
Provides: glxinfo glxinfo%{?__isa_bits}
2010-07-22 14:36:01 +00:00
%description -n glx-utils
The glx-utils package provides the glxinfo and glxgears utilities.
%prep
%setup -q -n %{tarball}-%{version} -b1
%patch0 -p1 -b .legal
2010-07-22 14:36:01 +00:00
# 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
2010-07-22 14:36:01 +00:00
%build
autoreconf -i
%configure --bindir=%{demodir} --with-system-data-files
2010-07-22 14:36:01 +00:00
make %{?_smp_mflags}
pushd ../%{xdriinfo}
%configure
make %{?_smp_mflags}
popd
%install
make install DESTDIR=%{buildroot}
2010-07-22 14:36:01 +00:00
pushd ../%{xdriinfo}
make %{?_smp_mflags} install DESTDIR=%{buildroot}
2010-07-22 14:36:01 +00:00
popd
install -m 0755 src/xdemos/glxgears %{buildroot}%{_bindir}
install -m 0755 src/xdemos/glxinfo %{buildroot}%{_bindir}
%if 0%{?__isa_bits} != 0
install -m 0755 src/xdemos/glxinfo %{buildroot}%{_bindir}/glxinfo%{?__isa_bits}
%endif
2010-07-22 14:36:01 +00:00
%check
%files
%{demodir}
%{_datadir}/%{name}/
2010-07-22 14:36:01 +00:00
%files -n glx-utils
%{_bindir}/glxinfo*
2010-10-30 01:16:15 +00:00
%{_bindir}/glxgears
2010-07-22 14:36:01 +00:00
%{_bindir}/xdriinfo
%{_datadir}/man/man1/xdriinfo.1*
%changelog
* Wed Feb 27 2013 Adam Jackson <ajax@redhat.com> 8.1.0-2
- Copy glxinfo to glxinfo%%{__isa_bits}, to allow people to check that their
compatibility drivers are working.
* Sun Feb 24 2013 Dave Airlie <airlied@redhat.com> 8.1.0-1
- package upstream demos release 8.1.0 (mainly for new glxinfo)
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 8.0.1-2.20121218git6eef979
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
* Tue Jan 8 2013 Tom Callaway <spot@fedoraproject.org> - 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)
2012-12-13 18:40:07 +00:00
* Thu Dec 13 2012 Adam Jackson <ajax@redhat.com> - 7.10-9.20101028
- Rebuild for glew 1.9.0
2012-07-27 17:39:46 +00:00
* Fri Jul 27 2012 Kalev Lember <kalevlember@gmail.com> - 7.10-8.20101028
- Rebuilt for GLEW soname bump
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 7.10-7.20101028
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 7.10-6.20101028
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
2011-06-20 23:00:04 +00:00
* Mon Jun 20 2011 ajax@redhat.com - 7.10-5.20101028
- Rebuild for new glew soname
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 7.10-4.20101028
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
2010-11-01 13:40:39 +00:00
* Mon Nov 01 2010 Adam Jackson <ajax@redhat.com> 7.10-3.20101028
- Install rgba images too (#640688)
2010-10-30 01:16:15 +00:00
* Sat Oct 30 2010 Dave Airlie <airlied@redhat.com> 7.10-2.20101028
- fix install of gears/info (#647947)
2010-10-28 11:06:46 +00:00
* Thu Oct 28 2010 Adam Jackson <ajax@redhat.com> 7.10-1.20101028
- Today's git snapshot
- Arbitrary EVR bump to be newer than when the mesa source package dropped
the demos subpackage.
2010-07-22 14:36:01 +00:00
* Tue Jun 15 2010 Jerome Glisse <jglisse@redhat.com> 7.7
- Initial build.