speex-vl.spec 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
  2. Summary: A voice compression format/codec
  3. Summary(ja): 音声圧縮フォーマット/コーデック
  4. Name: speex
  5. Version: 1.2
  6. Release: 0.rc1.3%{?_dist_release}
  7. License: BSD
  8. Group: System Environment/Libraries
  9. URL: http://www.speex.org/
  10. Source0: http://www.speex.org/download/%{name}-%{version}rc1.tar.gz
  11. # Security fix
  12. Patch100: speex-1.2-CVE-2008-1686.diff
  13. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  14. BuildRequires: libogg-devel
  15. %description
  16. Speex is a patent-free compression format designed especially for
  17. speech. It is specialized for voice communications at low bit-rates in
  18. the 2-45 kbps range. Possible applications include Voice over IP
  19. (VoIP), Internet audio streaming, audio books, and archiving of speech
  20. data (e.g. voice mail).
  21. %package devel
  22. Summary: Development package for %{name}
  23. Summary(ja): %{name} 用開発ファイル
  24. Group: Development/Libraries
  25. Requires: %{name} = %{version}-%{release}
  26. %description devel
  27. Speex is a patent-free compression format designed especially for
  28. speech. This package contains development files for %{name}
  29. # compat32
  30. %package -n compat32-%{name}
  31. Summary: A voice compression format/codec
  32. Summary(ja): 音声圧縮フォーマット/コーデック
  33. Group: System Environment/Libraries
  34. %description -n compat32-%{name}
  35. Speex is a patent-free compression format designed especially for
  36. speech. It is specialized for voice communications at low bit-rates in
  37. the 2-45 kbps range. Possible applications include Voice over IP
  38. (VoIP), Internet audio streaming, audio books, and archiving of speech
  39. data (e.g. voice mail).
  40. %package -n compat32-%{name}-devel
  41. Summary: Development package for %{name}
  42. Summary(ja): %{name} 用開発ファイル
  43. Group: Development/Libraries
  44. Requires: compat32-%{name} = %{version}-%{release}
  45. Requires: %{name}-devel = %{version}-%{release}
  46. %description -n compat32-%{name}-devel
  47. Speex is a patent-free compression format designed especially for
  48. speech. This package contains development files for %{name}
  49. %prep
  50. %setup -q -n %{name}-%{version}rc1
  51. %patch100 -p1 -b .CVE-2008-1686
  52. chmod a-x README
  53. %build
  54. %configure --enable-static --with-ogg-libraries=%{_libdir}
  55. # Remove rpath from speexenc and speexdec
  56. sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
  57. sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
  58. make %{?_smp_mflags}
  59. %install
  60. rm -rf $RPM_BUILD_ROOT
  61. make DESTDIR=$RPM_BUILD_ROOT install
  62. rm -f $RPM_BUILD_ROOT%{_docdir}/speex/manual.pdf
  63. %clean
  64. rm -rf $RPM_BUILD_ROOT
  65. %post -p /sbin/ldconfig
  66. %postun -p /sbin/ldconfig
  67. %post -n compat32-%{name} -p /sbin/ldconfig
  68. %postun -n compat32-%{name} -p /sbin/ldconfig
  69. %files
  70. %defattr(-,root,root,-)
  71. %doc AUTHORS COPYING TODO ChangeLog README NEWS doc/manual.pdf
  72. %{_bindir}/speexenc
  73. %{_bindir}/speexdec
  74. %{_mandir}/man1/speexenc.1*
  75. %{_mandir}/man1/speexdec.1*
  76. %{_libdir}/lib*.so.*
  77. %files devel
  78. %defattr(-,root,root,-)
  79. %exclude %{_libdir}/lib*.a
  80. %exclude %{_libdir}/lib*.la
  81. %{_includedir}/*
  82. %{_libdir}/lib*.so
  83. %{_libdir}/pkgconfig/*.pc
  84. %{_datadir}/aclocal/*.m4
  85. # compat32
  86. %if %{build_compat32}
  87. %files -n compat32-%{name}
  88. %defattr(-,root,root,-)
  89. %{_libdir}/lib*.so.*
  90. %files -n compat32-%{name}-devel
  91. %defattr(-,root,root,-)
  92. %exclude %{_libdir}/lib*.a
  93. %exclude %{_libdir}/lib*.la
  94. %{_libdir}/lib*.so
  95. %{_libdir}/pkgconfig/*.pc
  96. %endif
  97. %changelog
  98. * Sun Sep 26 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.2.0-0.rc1.3
  99. - rebuild with rpm-4.8.1 for pkg-config file
  100. * Sun May 10 2009 NAKAMURA Kenta <kenta@vinelinux.org> 1.2.0-0.rc1.2
  101. - added compat32 package for x86_64 arch support
  102. - removed lib*.a from devel package
  103. * Mon Sep 15 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.0-0.rc1.1
  104. - new upstream release
  105. * Mon May 19 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.0-0.beta3.1
  106. - new upstream release
  107. - added Patch100 for security fix
  108. * Tue Apr 15 2008 Tomas Hoger <thoger@redhat.com> - 1.2-0.7.beta3
  109. - Security update: Add mode checks to speex_packet_to_header() to protect
  110. applications using speex library and not having proper checks
  111. (CVE-2008-1686, #441239, https://trac.xiph.org/changeset/14701)
  112. * Sun Jun 5 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0.5-0vl1
  113. - new upstream release
  114. * Mon Mar 1 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.3-2vl1
  115. - initial build for Vine Linux
  116. * Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
  117. - rebuilt
  118. * Fri Dec 12 2003 Bill Nottingham <notting@redhat.com> 1.0.3-1
  119. - build 1.0.3, adapt specfile from linva.org
  120. * Thu Nov 20 2003 Dams <anvil[AT]livna.org> 0:1.0.3-0.fdr.1
  121. - Updated to 1.0.3
  122. * Tue Sep 30 2003 Dams <anvil[AT]livna.org> 0:1.0.2-0.fdr.1
  123. - Updated to 1.0.2
  124. * Mon Sep 15 2003 Dams <anvil[AT]livna.org> 0:1.0.1-0.fdr.3
  125. - README doc file is no more +x
  126. * Tue Sep 9 2003 Dams <anvil[AT]livna.org> 0:1.0.1-0.fdr.2
  127. - Added missing scriplets (ldconfig)
  128. * Sat Aug 16 2003 Dams <anvil[AT]livna.org>
  129. - Initial build.