openal-vl.spec 2.0 KB

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