mesa-demos-vl.spec 2.2 KB

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