mesa-libGLU-vl.spec 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
  2. Name: mesa-libGLU
  3. Version: 9.0.0
  4. Release: 1%{?_dist_release}
  5. Summary: Mesa libGLU library
  6. Summary(ja): Mesa libGLU ライブラリ
  7. License: MIT
  8. URL: http://mesa3d.org/
  9. Source0: ftp://ftp.freedesktop.org/pub/mesa/glu/glu-%{version}.tar.bz2
  10. Source2: make-git-snapshot.sh
  11. BuildRequires: mesa-libGL-devel
  12. Provides: libGLU = %{version}-%{release}
  13. %description
  14. Mesa implementation of the standard GLU OpenGL utility API.
  15. %package devel
  16. Summary: Development files for %{name}
  17. Summary(ja): %{name} の開発ファイル
  18. Requires: %{name} = %{version}-%{release}
  19. Provides: libGLU-devel = %{version}-%{release}
  20. %description devel
  21. The %{name}-devel package contains libraries and header files for
  22. developing applications that use %{name}.
  23. # compat32
  24. %package -n compat32-%{name}
  25. Summary: Mesa libGLU runtime library
  26. Summary(ja): Mesa libGLU ランタイムライブラリ
  27. Group: System Environment/Libraries
  28. Requires(post): /sbin/ldconfig
  29. Requires(postun): /sbin/ldconfig
  30. Requires: %{name} = %{version}-%{release}
  31. %description -n compat32-%{name}
  32. Mesa libGLU runtime library
  33. %package -n compat32-%{name}-devel
  34. Summary: Mesa libGLU development package
  35. Summary(ja): Mesa libGLU 開発パッケージ
  36. Group: Development/Libraries
  37. Requires: compat32-mesa-libGL = %{version}
  38. Requires: compat32-%{name} = %{version}-%{release}
  39. Requires: mesa-libGL-devel = %{version}
  40. Requires: %{name}-devel = %{version}-%{release}
  41. %description -n compat32-%{name}-devel
  42. Mesa libGLU development package
  43. %prep
  44. %setup -q -n glu-%{version}
  45. %build
  46. %configure --disable-static
  47. make %{?_smp_mflags}
  48. %install
  49. rm -rf $RPM_BUILD_ROOT
  50. make install DESTDIR=$RPM_BUILD_ROOT
  51. find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
  52. rm -rf $RPM_BUILD_ROOT%{_datadir}/man/man3/gl[A-Z]*
  53. %post -p /sbin/ldconfig
  54. %post -n compat32-%{name} -p /sbin/ldconfig
  55. %postun -p /sbin/ldconfig
  56. %postun -n compat32-%{name} -p /sbin/ldconfig
  57. %files
  58. %{_libdir}/libGLU.so.1
  59. %{_libdir}/libGLU.so.1.3.*
  60. %files devel
  61. %{_includedir}/GL/glu*.h
  62. %{_libdir}/libGLU.so
  63. %{_libdir}/pkgconfig/glu.pc
  64. %if %{build_compat32}
  65. %files -n compat32-%{name}
  66. %{_libdir}/libGLU.so.1
  67. %{_libdir}/libGLU.so.1.3.*
  68. %files -n compat32-%{name}-devel
  69. %{_includedir}/GL/glu*.h
  70. %{_libdir}/libGLU.so
  71. %{_libdir}/pkgconfig/glu.pc
  72. %endif
  73. %changelog
  74. * Sat Nov 17 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 9.0.0-1
  75. - initial build for Vine Linux
  76. * Tue Sep 18 2012 Adam Jackson <ajax@redhat.com> 9.0.0-1
  77. - libGLU 9.0
  78. * Mon Sep 10 2012 Dave Airlie <airlied@redhat.com> 9.0-0.2
  79. - add back libGLU provides for now
  80. * Tue Sep 04 2012 Adam Jackson <ajax@redhat.com> 9.0-0.1
  81. - Initial packaging for split libGLU