You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

59 lines
1.4KB

  1. %define name @PACKAGE@
  2. %define version @VERSION@
  3. %define release 1
  4. %define prefix /usr
  5. Summary: A library to do sample rate conversion for audio.
  6. Name: %{name}
  7. Version: %{version}
  8. Release: %{release}
  9. Prefix: %{prefix}
  10. Copyright: LGPL
  11. Group: Libraries/Sound
  12. Source: http://www.mega-nerd.com/SRC/libsamplerate-%{version}.tar.gz
  13. URL: http://www.mega-nerd.com/SRC/
  14. BuildRoot: /var/tmp/%{name}-%{version}
  15. %description
  16. libsamplerate is a C library capable of arbitrary and time varying
  17. conversions; from downsampling by a factor of 12 to upsampling by the
  18. same factor. The conversion ratio can also vary with time for speeding
  19. up and slowing down effects.
  20. %package devel
  21. Summary: Libraries, includes, etc to develop libsamplerate applications
  22. Group: Libraries
  23. %description devel
  24. Libraries, include files, etc you can use to develop libsamplerate applications.
  25. %prep
  26. %setup
  27. %build
  28. ./configure --prefix=%{prefix}
  29. make
  30. %install
  31. if [ -d $RPM_BUILD_ROOT ]; then rm -rf $RPM_BUILD_ROOT; fi
  32. mkdir -p $RPM_BUILD_ROOT
  33. make prefix=$RPM_BUILD_ROOT%{prefix} install
  34. %clean
  35. if [ -d $RPM_BUILD_ROOT ]; then rm -rf $RPM_BUILD_ROOT; fi
  36. %files
  37. %defattr(-,root,root)
  38. %doc AUTHORS COPYING ChangeLog INSTALL NEWS README doc
  39. %prefix/lib/libsamplerate.so.*
  40. %files devel
  41. %defattr(-,root,root)
  42. %{prefix}/lib/libsamplerate.a
  43. %{prefix}/lib/libsamplerate.la
  44. %{prefix}/lib/libsamplerate.so
  45. %{prefix}/include/samplerate.h
  46. %{prefix}/lib/pkgconfig/samplerate.pc