mesa-demos-vl.spec 2.3 KB

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