libsndfile.spec.in 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. %define name @PACKAGE@
  2. %define version @VERSION@
  3. %define release 1
  4. Summary: A library to handle various audio file formats.
  5. Name: %{name}
  6. Version: %{version}
  7. Release: %{release}
  8. Copyright: LGPL
  9. Group: Libraries/Sound
  10. Source: http://www.mega-nerd.com/libsndfile/libsndfile-%{version}.tar.gz
  11. Url: http://www.mega-nerd.com/libsndfile/
  12. BuildRoot: /var/tmp/%{name}-%{version}
  13. %description
  14. libsndfile is a C library for reading and writing sound files such as
  15. AIFF, AU and WAV files through one standard interface. It can currently
  16. read/write 8, 16, 24 and 32-bit PCM files as well as 32-bit floating
  17. point WAV files and a number of compressed formats.
  18. %package devel
  19. Summary: Libraries, includes, etc to develop libsndfile applications
  20. Group: Libraries
  21. %description devel
  22. Libraries, include files, etc you can use to develop libsndfile applications.
  23. %prep
  24. %setup
  25. %build
  26. %configure
  27. make
  28. %install
  29. if [ -d $RPM_BUILD_ROOT ]; then rm -rf $RPM_BUILD_ROOT; fi
  30. mkdir -p $RPM_BUILD_ROOT
  31. make DESTDIR=$RPM_BUILD_ROOT install
  32. %clean
  33. if [ -d $RPM_BUILD_ROOT ]; then rm -rf $RPM_BUILD_ROOT; fi
  34. %files
  35. %defattr(-,root,root)
  36. %doc AUTHORS COPYING ChangeLog INSTALL NEWS README TODO doc
  37. %{_libdir}/libsndfile.so.*
  38. %{_bindir}/*
  39. %{_mandir}/man1/*
  40. %{_datadir}/octave/site/m/*
  41. %{_defaultdocdir}/libsndfile1-dev/html/*
  42. %files devel
  43. %defattr(-,root,root)
  44. %{_libdir}/libsndfile.a
  45. %{_libdir}/libsndfile.la
  46. %{_libdir}/libsndfile.so
  47. %{_includedir}/sndfile.h
  48. %{_libdir}/pkgconfig/sndfile.pc
  49. %changelog
  50. * Sun May 15 2005 Erik de Castro Lopo <erikd@mega-nerd.com>
  51. - Add html files to the files section.
  52. * Tue Sep 16 2003 Erik de Castro Lopo <erikd@mega-nerd.com>
  53. - Apply corrections from Andrew Schultz.
  54. * Mon Oct 21 2002 Erik de Castro Lopo <erikd@mega-nerd.com>
  55. - Force installation of sndfile.pc file.
  56. * Thu Jul 6 2000 Josh Green <jgreen@users.sourceforge.net>
  57. - Created libsndfile.spec.in