speex-vl.spec 5.0 KB

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