[2591] | 1 | %define demodir %{_libdir}/mesa |
---|
| 2 | |
---|
| 3 | Summary: Mesa demos |
---|
| 4 | Summary(ja): Mesa demos |
---|
| 5 | Name: mesa-demos |
---|
[9767] | 6 | Version: 8.2.0 |
---|
| 7 | Release: 1%{?_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 | |
---|
[9767] | 14 | Patch0: mesa-demos-8.0.1-legal.patch |
---|
| 15 | Patch1: mesa-demos-as-needed.patch |
---|
| 16 | |
---|
[2591] | 17 | BuildRequires: pkgconfig autoconf automake libtool |
---|
| 18 | BuildRequires: freeglut-devel |
---|
| 19 | BuildRequires: libGL-devel |
---|
| 20 | BuildRequires: libGLU-devel |
---|
| 21 | BuildRequires: glew-devel |
---|
| 22 | |
---|
| 23 | Group: Development/Libraries |
---|
| 24 | |
---|
| 25 | %description |
---|
| 26 | This package provides some demo applications for testing Mesa. |
---|
| 27 | |
---|
| 28 | %package -n glx-utils |
---|
| 29 | Summary: GLX utilities |
---|
| 30 | Summary(ja): GLX ユーティリティ |
---|
| 31 | Group: Development/Libraries |
---|
| 32 | |
---|
| 33 | %description -n glx-utils |
---|
| 34 | The glx-utils package provides the glxinfo and glxgears utilities. |
---|
| 35 | |
---|
| 36 | %prep |
---|
| 37 | %setup -q |
---|
[9767] | 38 | %patch0 -p1 -b .legal |
---|
| 39 | %patch1 -p1 -b .asneeded |
---|
[2591] | 40 | |
---|
[9767] | 41 | # These two files are distributable, but non-free (lack of permission to modify). |
---|
| 42 | rm -rf src/demos/pointblast.c |
---|
| 43 | rm -rf src/demos/spriteblast.c |
---|
[2591] | 44 | |
---|
| 45 | %build |
---|
| 46 | autoreconf -i |
---|
[9767] | 47 | %configure --bindir=%{demodir} --with-system-data-files |
---|
[2591] | 48 | make %{?_smp_mflags} |
---|
| 49 | |
---|
| 50 | %install |
---|
| 51 | rm -rf $RPM_BUILD_ROOT |
---|
| 52 | make install DESTDIR=$RPM_BUILD_ROOT |
---|
| 53 | |
---|
| 54 | mkdir -p $RPM_BUILD_ROOT%{_bindir} |
---|
| 55 | install -m 0755 src/xdemos/glxgears $RPM_BUILD_ROOT%{_bindir} |
---|
| 56 | install -m 0755 src/xdemos/glxinfo $RPM_BUILD_ROOT%{_bindir} |
---|
| 57 | |
---|
| 58 | %clean |
---|
| 59 | rm -rf $RPM_BUILD_ROOT |
---|
| 60 | |
---|
| 61 | %check |
---|
| 62 | |
---|
| 63 | %files |
---|
| 64 | %defattr(-,root,root,-) |
---|
| 65 | %{demodir} |
---|
[9767] | 66 | %{_datadir}/%{name} |
---|
[2591] | 67 | |
---|
| 68 | %files -n glx-utils |
---|
| 69 | %defattr(-,root,root,-) |
---|
| 70 | %{_bindir}/glxinfo |
---|
| 71 | %{_bindir}/glxgears |
---|
| 72 | |
---|
| 73 | %changelog |
---|
[9767] | 74 | * Thu Oct 15 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 8.2.0-1 |
---|
| 75 | - update to 8.2.0 |
---|
| 76 | - add Patch0,1 from fedora |
---|
| 77 | |
---|
[5390] | 78 | * Tue Jan 10 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 8.0.1-2 |
---|
| 79 | - rebuild with glew-1.7.0 |
---|
| 80 | |
---|
[2591] | 81 | * Fri Jan 28 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 8.0.1-1 |
---|
| 82 | - initial build for Vine Linux |
---|
| 83 | |
---|
| 84 | * Mon Nov 01 2010 Adam Jackson <ajax@redhat.com> 7.10-3.20101028 |
---|
| 85 | - Install rgba images too (#640688) |
---|
| 86 | |
---|
| 87 | * Sat Oct 30 2010 Dave Airlie <airlied@redhat.com> 7.10-2.20101028 |
---|
| 88 | - fix install of gears/info (#647947) |
---|
| 89 | |
---|
| 90 | * Thu Oct 28 2010 Adam Jackson <ajax@redhat.com> 7.10-1.20101028 |
---|
| 91 | - Today's git snapshot |
---|
| 92 | - Arbitrary EVR bump to be newer than when the mesa source package dropped |
---|
| 93 | the demos subpackage. |
---|
| 94 | |
---|
| 95 | * Tue Jun 15 2010 Jerome Glisse <jglisse@redhat.com> 7.7 |
---|
| 96 | - Initial build. |
---|