[2591] | 1 | %define demodir %{_libdir}/mesa |
---|
| 2 | |
---|
| 3 | Summary: Mesa demos |
---|
| 4 | Summary(ja): Mesa demos |
---|
| 5 | Name: mesa-demos |
---|
| 6 | Version: 8.0.1 |
---|
[5390] | 7 | Release: 2%{?_dist_release} |
---|
[2591] | 8 | License: MIT |
---|
| 9 | Group: System Environment/Libraries |
---|
| 10 | URL: http://www.mesa3d.org |
---|
| 11 | |
---|
| 12 | Source0: %{name}-%{version}.tar.bz2 |
---|
| 13 | |
---|
| 14 | BuildRequires: pkgconfig autoconf automake libtool |
---|
| 15 | BuildRequires: freeglut-devel |
---|
| 16 | BuildRequires: libGL-devel |
---|
| 17 | BuildRequires: libGLU-devel |
---|
| 18 | BuildRequires: glew-devel |
---|
| 19 | |
---|
| 20 | Group: Development/Libraries |
---|
| 21 | |
---|
| 22 | %description |
---|
| 23 | This package provides some demo applications for testing Mesa. |
---|
| 24 | |
---|
| 25 | %package -n glx-utils |
---|
| 26 | Summary: GLX utilities |
---|
| 27 | Summary(ja): GLX ユーティリティ |
---|
| 28 | Group: Development/Libraries |
---|
| 29 | |
---|
| 30 | %description -n glx-utils |
---|
| 31 | The glx-utils package provides the glxinfo and glxgears utilities. |
---|
| 32 | |
---|
| 33 | %prep |
---|
| 34 | %setup -q |
---|
| 35 | |
---|
| 36 | # Hack the demos to use installed data files |
---|
| 37 | |
---|
| 38 | sed -i 's,../images,%{_libdir}/mesa,' src/demos/*.c |
---|
| 39 | sed -i 's,geartrain.dat,%{_libdir}/mesa/&,' src/demos/geartrain.c |
---|
| 40 | sed -i 's,isosurf.dat,%{_libdir}/mesa/&,' src/demos/isosurf.c |
---|
| 41 | sed -i 's,terrain.dat,%{_libdir}/mesa/&,' src/demos/terrain.c |
---|
| 42 | |
---|
| 43 | %build |
---|
| 44 | autoreconf -i |
---|
| 45 | %configure --bindir=%{demodir} |
---|
| 46 | make %{?_smp_mflags} |
---|
| 47 | |
---|
| 48 | %install |
---|
| 49 | rm -rf $RPM_BUILD_ROOT |
---|
| 50 | make install DESTDIR=$RPM_BUILD_ROOT |
---|
| 51 | install -m 0644 src/images/*.rgb $RPM_BUILD_ROOT/%{demodir} |
---|
| 52 | install -m 0644 src/images/*.rgba $RPM_BUILD_ROOT/%{demodir} |
---|
| 53 | install -m 0644 src/demos/*.dat $RPM_BUILD_ROOT/%{demodir} |
---|
| 54 | |
---|
| 55 | mkdir -p $RPM_BUILD_ROOT%{_bindir} |
---|
| 56 | install -m 0755 src/xdemos/glxgears $RPM_BUILD_ROOT%{_bindir} |
---|
| 57 | install -m 0755 src/xdemos/glxinfo $RPM_BUILD_ROOT%{_bindir} |
---|
| 58 | |
---|
| 59 | %clean |
---|
| 60 | rm -rf $RPM_BUILD_ROOT |
---|
| 61 | |
---|
| 62 | %check |
---|
| 63 | |
---|
| 64 | %files |
---|
| 65 | %defattr(-,root,root,-) |
---|
| 66 | %{demodir} |
---|
| 67 | |
---|
| 68 | %files -n glx-utils |
---|
| 69 | %defattr(-,root,root,-) |
---|
| 70 | %{_bindir}/glxinfo |
---|
| 71 | %{_bindir}/glxgears |
---|
| 72 | |
---|
| 73 | %changelog |
---|
[5390] | 74 | * Tue Jan 10 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 8.0.1-2 |
---|
| 75 | - rebuild with glew-1.7.0 |
---|
| 76 | |
---|
[2591] | 77 | * Fri Jan 28 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 8.0.1-1 |
---|
| 78 | - initial build for Vine Linux |
---|
| 79 | |
---|
| 80 | * Mon Nov 01 2010 Adam Jackson <ajax@redhat.com> 7.10-3.20101028 |
---|
| 81 | - Install rgba images too (#640688) |
---|
| 82 | |
---|
| 83 | * Sat Oct 30 2010 Dave Airlie <airlied@redhat.com> 7.10-2.20101028 |
---|
| 84 | - fix install of gears/info (#647947) |
---|
| 85 | |
---|
| 86 | * Thu Oct 28 2010 Adam Jackson <ajax@redhat.com> 7.10-1.20101028 |
---|
| 87 | - Today's git snapshot |
---|
| 88 | - Arbitrary EVR bump to be newer than when the mesa source package dropped |
---|
| 89 | the demos subpackage. |
---|
| 90 | |
---|
| 91 | * Tue Jun 15 2010 Jerome Glisse <jglisse@redhat.com> 7.7 |
---|
| 92 | - Initial build. |
---|