speex-vl.spec 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  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: 2%{?_dist_release}
  7. Group: System Environment/Libraries
  8. Vendor: Project Vine
  9. Distribution: Vine Linux
  10. License: BSD
  11. URL: http://www.speex.org/
  12. Source0: http://www.speex.org/download/%{name}-%{version}.tar.gz
  13. # Security fix
  14. Patch100: speex-1.2-CVE-2008-1686.diff
  15. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  16. BuildRequires: libogg-devel
  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. %license COPYING
  74. %doc AUTHORS TODO ChangeLog README NEWS doc/manual.pdf
  75. %{_bindir}/speexenc
  76. %{_bindir}/speexdec
  77. %{_mandir}/man1/speexenc.1*
  78. %{_mandir}/man1/speexdec.1*
  79. %{_libdir}/lib*.so.*
  80. %files devel
  81. %defattr(-,root,root,-)
  82. %exclude %{_libdir}/lib*.a
  83. %exclude %{_libdir}/lib*.la
  84. %{_includedir}/*
  85. %{_libdir}/lib*.so
  86. %{_libdir}/pkgconfig/*.pc
  87. %{_datadir}/aclocal/*.m4
  88. # compat32
  89. %if %{build_compat32}
  90. %files -n compat32-%{name}
  91. %defattr(-,root,root,-)
  92. %{_libdir}/lib*.so.*
  93. %files -n compat32-%{name}-devel
  94. %defattr(-,root,root,-)
  95. %exclude %{_libdir}/lib*.a
  96. %exclude %{_libdir}/lib*.la
  97. %{_libdir}/lib*.so
  98. %endif
  99. %changelog
  100. * Fri Apr 17 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.2.0-2
  101. - rebuilt with current environment.
  102. * Thu Feb 22 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.2.0-1
  103. - new upstream release.
  104. * Sat Jul 05 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.2.0-0.rc1.4
  105. - rebuild with VineSeed environment
  106. * Sun Sep 26 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.2.0-0.rc1.3
  107. - rebuild with rpm-4.8.1 for pkg-config file
  108. * Sun May 10 2009 NAKAMURA Kenta <kenta@vinelinux.org> 1.2.0-0.rc1.2
  109. - added compat32 package for x86_64 arch support
  110. - removed lib*.a from devel package
  111. * Mon Sep 15 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.0-0.rc1.1
  112. - new upstream release
  113. * Mon May 19 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.0-0.beta3.1
  114. - new upstream release
  115. - added Patch100 for security fix
  116. * Tue Apr 15 2008 Tomas Hoger <thoger@redhat.com> - 1.2-0.7.beta3
  117. - Security update: Add mode checks to speex_packet_to_header() to protect
  118. applications using speex library and not having proper checks
  119. (CVE-2008-1686, #441239, https://trac.xiph.org/changeset/14701)
  120. * Sun Jun 5 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0.5-0vl1
  121. - new upstream release
  122. * Mon Mar 1 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.3-2vl1
  123. - initial build for Vine Linux
  124. * Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
  125. - rebuilt
  126. * Fri Dec 12 2003 Bill Nottingham <notting@redhat.com> 1.0.3-1
  127. - build 1.0.3, adapt specfile from linva.org
  128. * Thu Nov 20 2003 Dams <anvil[AT]livna.org> 0:1.0.3-0.fdr.1
  129. - Updated to 1.0.3
  130. * Tue Sep 30 2003 Dams <anvil[AT]livna.org> 0:1.0.2-0.fdr.1
  131. - Updated to 1.0.2
  132. * Mon Sep 15 2003 Dams <anvil[AT]livna.org> 0:1.0.1-0.fdr.3
  133. - README doc file is no more +x
  134. * Tue Sep 9 2003 Dams <anvil[AT]livna.org> 0:1.0.1-0.fdr.2
  135. - Added missing scriplets (ldconfig)
  136. * Sat Aug 16 2003 Dams <anvil[AT]livna.org>
  137. - Initial build.