libvorbis.spec 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. %define name libvorbis
  2. %define version 1.0.0
  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.0.0
  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.0.0
  23. %description devel
  24. The libvorbis-devel package contains the header files and documentation
  25. needed to develop applications with libvorbis.
  26. %prep
  27. %setup -q -n %{name}-%{version}
  28. %build
  29. if [ ! -f configure ]; then
  30. CFLAGS="$RPM_FLAGS" ./autogen.sh --prefix=/usr
  31. else
  32. CFLAGS="$RPM_FLAGS" ./configure --prefix=/usr
  33. fi
  34. make
  35. %install
  36. [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
  37. make DESTDIR=$RPM_BUILD_ROOT install
  38. %files
  39. %defattr(-,root,root)
  40. %doc COPYING
  41. %doc README
  42. /usr/lib/libvorbis.so.*
  43. /usr/lib/libvorbisfile.so.*
  44. /usr/lib/libvorbisenc.so.*
  45. %files devel
  46. %doc doc/*.html
  47. %doc doc/*.txt
  48. %doc doc/*.png
  49. %doc doc/vorbisfile/*.html
  50. %doc doc/vorbisfile/*.css
  51. /usr/include/vorbis/codec.h
  52. /usr/include/vorbis/vorbisfile.h
  53. /usr/include/vorbis/vorbisenc.h
  54. /usr/lib/libvorbis.a
  55. /usr/lib/libvorbis.so
  56. /usr/lib/libvorbisfile.a
  57. /usr/lib/libvorbisfile.so
  58. /usr/lib/libvorbisenc.a
  59. /usr/lib/libvorbisenc.so
  60. %clean
  61. [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
  62. %post
  63. /sbin/ldconfig
  64. %postun
  65. /sbin/ldconfig
  66. %changelog
  67. * Sat Oct 21 2000 Jack Moffitt <jack@icecast.org>
  68. - initial spec file created