openal-vl.spec 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. Name: openal
  2. Summary: Open Audio Library
  3. Summary(ja): オープンオーディオライブラリ
  4. Version: 0.0.8
  5. Release: 3%{?_dist_release}
  6. Epoch: 1
  7. Source: openal-%{version}.tar.gz
  8. Patch0: openal-0.0.8-mmx_off.patch
  9. Group: System Environment/Libraries
  10. License: LGPL
  11. URL: http://www.openal.org
  12. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  13. BuildRequires: alsa-lib-devel
  14. BuildRequires: arts-devel
  15. BuildRequires: esound-devel
  16. BuildRequires: libvorbis-devel
  17. BuildRequires: SDL-devel
  18. #BuildRequires: automake, autoconf
  19. Obsoletes: libopenal0, libopenal0-devel
  20. %description
  21. OpenAL is a free 3D-audio library, with a programming interface similar
  22. to that of OpenGL.
  23. %package devel
  24. Summary: Headers for developing programs that will use OpenAL
  25. Group: Development/Libraries
  26. Requires: %{name} = %{epoch}:%{version}
  27. %description devel
  28. This package contains the headers that programmers will need to develop
  29. applications which will use OpenAL, a free 3D audio library.
  30. %prep
  31. %setup -q
  32. ## adhoc patch for disable MMX with gcc4
  33. %ifarch x86_64
  34. %patch0 -b1 -b .mmx_off
  35. %endif
  36. %build
  37. %configure --disable-static
  38. %__make %{?_smp_mflags}
  39. %install
  40. rm -rf $RPM_BUILD_ROOT
  41. make DESTDIR=$RPM_BUILD_ROOT install
  42. mkdir -p $RPM_BUILD_ROOT%{_infodir}
  43. install -m 755 -d $RPM_BUILD_ROOT%{_sysconfdir}
  44. cat > $RPM_BUILD_ROOT%{_sysconfdir}/openalrc <<EOF
  45. (define devices '(alsa native))
  46. ;; uncomment this to output via the 2nd soundcard
  47. ;;(define alsa-device "plughw:2,0")
  48. EOF
  49. sed -i 's/^Requires:.*//g' $RPM_BUILD_ROOT%{_libdir}/pkgconfig/openal.pc
  50. # remove uninstalled files
  51. rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
  52. %clean
  53. rm -rf $RPM_BUILD_ROOT
  54. %post -p /sbin/ldconfig
  55. %postun -p /sbin/ldconfig
  56. %files
  57. %defattr(-,root,root,0755)
  58. %{_sysconfdir}/openalrc
  59. %{_libdir}/*.so.*
  60. %files devel
  61. %defattr(-,root,root,0755)
  62. %{_bindir}/openal-config
  63. %{_includedir}/AL/*.h
  64. %{_libdir}/*.so
  65. #{_libdir}/*.a
  66. %{_libdir}/pkgconfig/openal.pc
  67. %changelog
  68. * Tue Sep 28 2010 Shu KONNO <owa@bg.wakwak.com> 1:0.0.8-3
  69. - added openal-0.0.8-mmx_off.patch (on x86_64)
  70. (see http://lists.debian.org/debian-devel-games/2007/10/msg00031.html)
  71. * Sun Sep 26 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1:0.0.8-2
  72. - rebuilt with rpm-4.8.1 for pkg-config
  73. - removed static libraries from devel package
  74. * Mon Sep 29 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1:0.0.8-1vl5
  75. - applied new versioning policy
  76. - spec in UTF-8
  77. * Sat Jul 07 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 1:0.0.8-0vl1
  78. - new upstream release
  79. - add epoch to use upstream version numbering
  80. * Sat Oct 22 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 1.1.20051022-0vl1
  81. - initial build for Vine Linux