libvorbis.spec.in 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. Name: libvorbis
  2. Version: @VERSION@
  3. Release: 0.xiph.1
  4. Summary: The Vorbis General Audio Compression Codec.
  5. Group: System Environment/Libraries
  6. License: BSD
  7. URL: http://www.xiph.org/
  8. Vendor: Xiph.org Foundation <team@xiph.org>
  9. Source: http://www.vorbis.com/files/1.0.1/unix/%{name}-%{version}.tar.gz
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  11. # We're forced to use an epoch since both Red Hat and Ximian use it in their
  12. # rc packages
  13. Epoch: 2
  14. # Dirty trick to tell rpm that this package actually provides what the
  15. # last rc and beta was offering
  16. Provides: %{name} = %{epoch}:1.0rc3-%{release}
  17. Provides: %{name} = %{epoch}:1.0beta4-%{release}
  18. Requires: libogg >= 1.1
  19. BuildRequires: libogg-devel >= 1.1
  20. %description
  21. Ogg Vorbis is a fully open, non-proprietary, patent-and-royalty-free,
  22. general-purpose compressed audio format for audio and music at fixed
  23. and variable bitrates from 16 to 128 kbps/channel.
  24. %package devel
  25. Summary: Vorbis Library Development
  26. Group: Development/Libraries
  27. Requires: libogg-devel >= 1.1
  28. Requires: libvorbis = %{version}
  29. # Dirty trick to tell rpm that this package actually provides what the
  30. # last rc and beta was offering
  31. Provides: %{name}-devel = %{epoch}:1.0rc3-%{release}
  32. Provides: %{name}-devel = %{epoch}:1.0beta4-%{release}
  33. %description devel
  34. The libvorbis-devel package contains the header files, static libraries
  35. and documentation needed to develop applications with libvorbis.
  36. %prep
  37. %setup -q -n %{name}-%{version}
  38. %build
  39. CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{_prefix} --enable-static
  40. make
  41. %install
  42. rm -rf $RPM_BUILD_ROOT
  43. make DESTDIR=$RPM_BUILD_ROOT install
  44. %clean
  45. rm -rf $RPM_BUILD_ROOT
  46. %post -p /sbin/ldconfig
  47. %postun -p /sbin/ldconfig
  48. %files
  49. %defattr(-,root,root)
  50. %doc AUTHORS COPYING README
  51. %{_libdir}/libvorbis.so.*
  52. %{_libdir}/libvorbisfile.so.*
  53. %{_libdir}/libvorbisenc.so.*
  54. %files devel
  55. %doc doc/*.html
  56. %doc doc/*.png
  57. %doc doc/*.txt
  58. %doc doc/vorbisfile
  59. %doc doc/vorbisenc
  60. %{_datadir}/aclocal/vorbis.m4
  61. %dir %{_includedir}/vorbis
  62. %{_includedir}/vorbis/codec.h
  63. %{_includedir}/vorbis/vorbisfile.h
  64. %{_includedir}/vorbis/vorbisenc.h
  65. %{_libdir}/libvorbis.a
  66. %{_libdir}/libvorbis.la
  67. %{_libdir}/libvorbis.so
  68. %{_libdir}/libvorbisfile.a
  69. %{_libdir}/libvorbisfile.la
  70. %{_libdir}/libvorbisfile.so
  71. %{_libdir}/libvorbisenc.a
  72. %{_libdir}/libvorbisenc.la
  73. %{_libdir}/libvorbisenc.so
  74. %{_libdir}/pkgconfig/vorbis.pc
  75. %{_libdir}/pkgconfig/vorbisfile.pc
  76. %{_libdir}/pkgconfig/vorbisenc.pc
  77. %changelog
  78. * Thu Jun 10 2004 Thomas Vander Stichele <thomas at apestaart dot org>
  79. - autogenerate from configure
  80. - fix download location
  81. - remove Prefix
  82. - own include dir
  83. - move ldconfig runs to -p scripts
  84. - change Release tag to include xiph
  85. * Tue Oct 07 2003 Warren Dukes <shank@xiph.org>
  86. - update for 1.0.1 release
  87. * Sun Jul 14 2002 Thomas Vander Stichele <thomas@apestaart.org>
  88. - Added BuildRequires:
  89. - updated for 1.0 release
  90. * Sat May 25 2002 Michael Smith <msmith@icecast.org>
  91. - Fixed requires, copyright string.
  92. * Sun Dec 31 2001 Jack Moffitt <jack@xiph.org>
  93. - Updated for rc3 release.
  94. * Sun Oct 07 2001 Jack Moffitt <jack@xiph.org>
  95. - Updated for configurable prefixes
  96. * Sat Oct 21 2000 Jack Moffitt <jack@icecast.org>
  97. - initial spec file created