2010-10-28 11:06:46 +00:00
|
|
|
%define gitdate 20101028
|
2010-07-22 14:36:01 +00:00
|
|
|
%define tarball mesa-demos
|
|
|
|
%define xdriinfo xdriinfo-1.0.3
|
|
|
|
|
|
|
|
%define demodir %{_libdir}/mesa
|
|
|
|
|
|
|
|
Summary: Mesa demos
|
|
|
|
Name: mesa-demos
|
2010-10-28 11:06:46 +00:00
|
|
|
Version: 7.10
|
2012-07-27 17:39:46 +00:00
|
|
|
Release: 8.%{gitdate}%{?dist}
|
2010-07-22 14:36:01 +00:00
|
|
|
License: MIT
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
URL: http://www.mesa3d.org
|
|
|
|
|
|
|
|
Source0: %{tarball}-%{gitdate}.tar.bz2
|
|
|
|
Source1: http://www.x.org/pub/individual/app/%{xdriinfo}.tar.bz2
|
|
|
|
Source2: mesad-git-snapshot.sh
|
|
|
|
|
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
|
|
|
|
|
|
|
|
%description -n glx-utils
|
|
|
|
The glx-utils package provides the glxinfo and glxgears utilities.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{tarball}-%{gitdate} -b1
|
|
|
|
|
|
|
|
# Hack the demos to use installed data files
|
|
|
|
|
|
|
|
sed -i 's,../images,%{_libdir}/mesa,' src/demos/*.c
|
|
|
|
sed -i 's,geartrain.dat,%{_libdir}/mesa/&,' src/demos/geartrain.c
|
|
|
|
sed -i 's,isosurf.dat,%{_libdir}/mesa/&,' src/demos/isosurf.c
|
|
|
|
sed -i 's,terrain.dat,%{_libdir}/mesa/&,' src/demos/terrain.c
|
|
|
|
|
|
|
|
%build
|
|
|
|
autoreconf -i
|
|
|
|
%configure --bindir=%{demodir}
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
pushd ../%{xdriinfo}
|
|
|
|
%configure
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
popd
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
install -m 0644 src/images/*.rgb $RPM_BUILD_ROOT/%{demodir}
|
2010-11-01 13:40:39 +00:00
|
|
|
install -m 0644 src/images/*.rgba $RPM_BUILD_ROOT/%{demodir}
|
2010-07-22 14:36:01 +00:00
|
|
|
install -m 0644 src/demos/*.dat $RPM_BUILD_ROOT/%{demodir}
|
|
|
|
|
|
|
|
pushd ../%{xdriinfo}
|
|
|
|
make %{?_smp_mflags} install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
popd
|
|
|
|
|
2010-10-30 03:06:51 +00:00
|
|
|
install -m 0755 src/xdemos/glxgears $RPM_BUILD_ROOT%{_bindir}
|
|
|
|
install -m 0755 src/xdemos/glxinfo $RPM_BUILD_ROOT%{_bindir}
|
|
|
|
|
2010-07-22 14:36:01 +00:00
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{demodir}
|
|
|
|
|
|
|
|
%files -n glx-utils
|
|
|
|
%defattr(-,root,root,-)
|
2010-10-30 01:16:15 +00:00
|
|
|
%{_bindir}/glxinfo
|
|
|
|
%{_bindir}/glxgears
|
2010-07-22 14:36:01 +00:00
|
|
|
%{_bindir}/xdriinfo
|
|
|
|
%{_datadir}/man/man1/xdriinfo.1*
|
|
|
|
|
|
|
|
%changelog
|
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
|
|
|
|
|
2012-07-20 00:39:35 +00:00
|
|
|
* 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
|
|
|
|
|
2012-01-13 09:45:20 +00:00
|
|
|
* 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
|
|
|
|
|
2011-02-08 17:32:29 +00:00
|
|
|
* 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.
|