Speex.spec.in 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. %define name @PACKAGE@
  2. %define ver @VERSION@
  3. %define rel 1
  4. Summary: An open-source, patent-free speech codec
  5. Name: %name
  6. Version: %ver
  7. Release: %rel
  8. License: BSD
  9. Group: Application/Devel
  10. Source: http://www.speex.org/download/%{name}-%{ver}.tar.gz
  11. URL: http://www.speex.org/
  12. Vendor: Speex
  13. Packager: Jean-Marc Valin (jean-marc.valin@usherbrooke.ca)
  14. BuildRoot: /var/tmp/%{name}-build-root
  15. Docdir: /usr/share/doc
  16. %description
  17. Speex is a patent-free audio codec designed especially for voice (unlike
  18. Vorbis which targets general audio) signals and providing good narrowband
  19. and wideband quality. This project aims to be complementary to the Vorbis
  20. codec.
  21. %package devel
  22. Summary: Speex development files
  23. Group: Development/Libraries
  24. Requires: %{name} = %{version}
  25. %description devel
  26. Speex development files.
  27. %changelog
  28. * Thu Oct 03 2002 Jean-Marc Valin
  29. - Added devel package inspired from PLD spec file
  30. * Tue Jul 30 2002 Fredrik Rambris <boost@users.sourceforge.net> 0.5.2
  31. - Added buildroot and docdir and ldconfig. Makes it builadble by non-roots
  32. and also doesn't write to actual library paths when building.
  33. %prep
  34. %setup
  35. %build
  36. export CFLAGS='-O3'
  37. ./configure --prefix=/usr --enable-shared --enable-static
  38. make
  39. %install
  40. rm -rf $RPM_BUILD_ROOT
  41. make DESTDIR=$RPM_BUILD_ROOT install
  42. %post -p /sbin/ldconfig
  43. %postun -p /sbin/ldconfig
  44. %files
  45. %defattr(644,root,root,755)
  46. %doc COPYING AUTHORS ChangeLog NEWS README
  47. %doc doc/manual.pdf
  48. /usr/share/man/man1/speexenc.1*
  49. /usr/share/man/man1/speexdec.1*
  50. %attr(755,root,root) %{_bindir}/speex*
  51. %attr(755,root,root) %{_libdir}/libspeex*.so*
  52. %files devel
  53. %defattr(644,root,root,755)
  54. %attr(755,root,root) %{_libdir}/libspeex*.la
  55. %{_includedir}/speex/speex*.h
  56. /usr/share/aclocal/speex.m4
  57. %{_libdir}/pkgconfig/speex.pc
  58. %{_libdir}/pkgconfig/speexdsp.pc
  59. %{_libdir}/libspeex*.a