openal-vl.spec 2.3 KB

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