libvorbis.spec 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. %define name libvorbis
  2. %define version 1.0rc1
  3. %define release 1
  4. Summary: The Vorbis General Audio Compression Codec
  5. Name: %{name}
  6. Version: %{version}
  7. Release: %{release}
  8. Group: Libraries/Multimedia
  9. Copyright: LGPL
  10. URL: http://www.xiph.org/
  11. Vendor: Xiphophorus <team@xiph.org>
  12. Source: ftp://ftp.xiph.org/pub/ogg/vorbis/%{name}-%{version}.tar.gz
  13. BuildRoot: %{_tmppath}/%{name}-root
  14. Requires: libogg >= 1.0beta4
  15. %description
  16. Ogg Vorbis is a fully open, non-proprietary, patent-and-royalty-free,
  17. general-purpose compressed audio format for audio and music at fixed
  18. and variable bitrates from 16 to 128 kbps/channel.
  19. %package devel
  20. Summary: Vorbis Library Development
  21. Group: Development/Libraries
  22. Requires: libogg-devel >= 1.0beta4
  23. Requires: libvorbis-devel = %{version}
  24. %description devel
  25. The libvorbis-devel package contains the header files and documentation
  26. needed to develop applications with libvorbis.
  27. %prep
  28. %setup -q -n %{name}-%{version}
  29. %build
  30. if [ ! -f configure ]; then
  31. CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh --prefix=/usr
  32. else
  33. CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=/usr
  34. fi
  35. make
  36. %install
  37. [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
  38. make DESTDIR=$RPM_BUILD_ROOT install
  39. %files
  40. %defattr(-,root,root)
  41. %doc COPYING
  42. %doc AUTHORS
  43. %doc README
  44. /usr/lib/libvorbis.so.*
  45. /usr/lib/libvorbisfile.so.*
  46. /usr/lib/libvorbisenc.so.*
  47. %files devel
  48. %doc doc/*.html
  49. %doc doc/*.png
  50. %doc doc/*.txt
  51. %doc doc/vorbisfile
  52. %doc doc/vorbisenc
  53. /usr/share/aclocal/vorbis.m4
  54. /usr/include/vorbis/codec.h
  55. /usr/include/vorbis/vorbisfile.h
  56. /usr/include/vorbis/vorbisenc.h
  57. /usr/lib/libvorbis.a
  58. /usr/lib/libvorbis.so
  59. /usr/lib/libvorbisfile.a
  60. /usr/lib/libvorbisfile.so
  61. /usr/lib/libvorbisenc.a
  62. /usr/lib/libvorbisenc.so
  63. %clean
  64. [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
  65. %post
  66. /sbin/ldconfig
  67. %postun
  68. /sbin/ldconfig
  69. %changelog
  70. * Sat Oct 21 2000 Jack Moffitt <jack@icecast.org>
  71. - initial spec file created