speex-vl.spec 5.2 KB

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