2
0

spandsp.spec.in 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. %global pre 21
  2. Summary: A DSP library for telephony.
  3. Name: @PACKAGE@
  4. Version: @VERSION@
  5. Release: 1
  6. License: LGPLv2 and GPLv2
  7. Group: System Environment/Libraries
  8. URL: http://www.soft-switch.org/spandsp
  9. Source: http://www.soft-switch.org/downloads/spandsp/@PACKAGE@-@VERSION@.tar.gz
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
  11. BuildRequires: libtiff-devel%{?_isa}
  12. BuildRequires: libjpeg-turbo-devel%{?_isa}
  13. BuildRequires: libxml2-devel%{?_isa}
  14. BuildRequires: libsndfile-devel%{?_isa}
  15. BuildRequires: doxygen
  16. BuildRequires: libxslt
  17. BuildRequires: docbook-style-xsl
  18. %description
  19. SpanDSP is a library of DSP functions for telephony, in the 8000
  20. sample per second world of E1s, T1s, and higher order PCM channels. It
  21. contains low level functions, such as basic filters. It also contains
  22. higher level functions, such as cadenced supervisory tone detection,
  23. and a complete software FAX machine. The software has been designed to
  24. avoid intellectual property issues, using mature techniques where all
  25. relevant patents have expired. See the file DueDiligence for important
  26. information about these intellectual property issues.
  27. %package devel
  28. Summary: SpanDSP development files
  29. Group: Development/Libraries
  30. Requires: spandsp%{?_isa} = %{version}-%{release}
  31. Requires: libtiff-devel%{?_isa}
  32. Requires: libjpeg-turbo-devel%{?_isa}
  33. %description devel
  34. SpanDSP development files.
  35. %package apidoc
  36. Summary: SpanDSP API documentation
  37. Group: Development/Libraries
  38. %description apidoc
  39. SpanDSP API documentation.
  40. %prep
  41. %setup -q
  42. %build
  43. %configure --enable-doc --disable-static --disable-rpath
  44. make
  45. find doc/api -type f | xargs touch -r configure
  46. %install
  47. rm -rf %{buildroot}
  48. make install DESTDIR=%{buildroot}
  49. rm %{buildroot}%{_libdir}/libspandsp.la
  50. mkdir -p %{buildroot}%{_datadir}/spandsp
  51. %clean
  52. rm -rf %{buildroot}
  53. %files
  54. %defattr(-,root,root,-)
  55. %doc DueDiligence ChangeLog AUTHORS COPYING NEWS README
  56. %{_libdir}/libspandsp.so.*
  57. %{_datadir}/spandsp
  58. %files devel
  59. %defattr(-,root,root,-)
  60. %{_includedir}/spandsp.h
  61. %{_includedir}/spandsp
  62. %{_libdir}/libspandsp.so
  63. %{_libdir}/pkgconfig/spandsp.pc
  64. %files apidoc
  65. %defattr(-,root,root,-)
  66. %doc doc/api/html/*
  67. %post -p /sbin/ldconfig
  68. %postun -p /sbin/ldconfig
  69. %changelog
  70. * Mon Oct 03 2011 Steve Underwood <steveu@coppice.org> 0.0.6-1
  71. - Converge with what Fedora do
  72. * Wed Sep 24 2008 Tzafrir Cohen <tzafrir.cohen@xorcom.com> 0.0.5-1
  73. - Preparing for 0.0.5pre4 release
  74. - License: LGPL
  75. * Mon Jun 23 2008 Steve Underwood <steveu@coppice.org> 0.0.5-1
  76. - Cleared out the dependency on libxml2
  77. * Sun Dec 31 2006 Steve Underwood <steveu@coppice.org> 0.0.3-1
  78. - Preparing for 0.0.3 release
  79. * Sat Oct 16 2004 Steve Underwood <steveu@coppice.org> 0.0.2-1
  80. - Preparing for 0.0.2 release
  81. * Thu Apr 15 2004 Steve Underwood <steveu@coppice.org> 0.0.1-1
  82. - Initial version