mesa-libGLU-vl.spec 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
  2. Name: mesa-libGLU
  3. Version: 9.0.0
  4. Release: 2%{?_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. Requires: mesa-libGL-devel >= 9.0.0
  20. Provides: libGLU-devel = %{version}-%{release}
  21. %description devel
  22. The %{name}-devel package contains libraries and header files for
  23. developing applications that use %{name}.
  24. # compat32
  25. %package -n compat32-%{name}
  26. Summary: Mesa libGLU runtime library
  27. Summary(ja): Mesa libGLU ランタイムライブラリ
  28. Group: System Environment/Libraries
  29. Requires(post): /sbin/ldconfig
  30. Requires(postun): /sbin/ldconfig
  31. Requires: %{name} = %{version}-%{release}
  32. %description -n compat32-%{name}
  33. Mesa libGLU runtime library
  34. %package -n compat32-%{name}-devel
  35. Summary: Mesa libGLU development package
  36. Summary(ja): Mesa libGLU 開発パッケージ
  37. Group: Development/Libraries
  38. Requires: compat32-mesa-libGL >= 9.0.0
  39. Requires: compat32-%{name} = %{version}-%{release}
  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. * Wed Jan 09 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 9.0.0-2
  75. - add Requires: mesa-libGL-devel to mesa-libGLU-devel package
  76. - remove Requires: mesa-libGL-devel from compat-mesa-libGLU-devel package
  77. * Sat Nov 17 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 9.0.0-1
  78. - initial build for Vine Linux
  79. * Tue Sep 18 2012 Adam Jackson <ajax@redhat.com> 9.0.0-1
  80. - libGLU 9.0
  81. * Mon Sep 10 2012 Dave Airlie <airlied@redhat.com> 9.0-0.2
  82. - add back libGLU provides for now
  83. * Tue Sep 04 2012 Adam Jackson <ajax@redhat.com> 9.0-0.1
  84. - Initial packaging for split libGLU