%{?mingw_package_header} Name: mingw-speex Version: 1.2.0 Release: 12%{?dist} Summary: Voice compression format (codec) License: BSD URL: http://www.speex.org/ Source0: http://downloads.xiph.org/releases/speex/speex-%{version}.tar.gz # Fix build Patch0: mingw-speex_build.patch # Backport patch for CVE-2020-23903 Patch1: https://github.com/xiph/speex/commit/870ff845b32f314aec0036641ffe18aba4916887.patch BuildArch: noarch BuildRequires: make BuildRequires: mingw32-filesystem >= 95 BuildRequires: mingw32-gcc BuildRequires: mingw32-libogg BuildRequires: mingw64-filesystem >= 95 BuildRequires: mingw64-gcc BuildRequires: mingw64-libogg %description Speex is a patent-free compression format designed especially for speech. It is specialized for voice communications at low bit-rates in the 2-45 kbps range. Possible applications include Voice over IP (VoIP), Internet audio streaming, audio books, and archiving of speech data (e.g. voice mail). %package -n mingw32-speex Summary: Voice compression format (codec) %description -n mingw32-speex Speex is a patent-free compression format designed especially for speech. It is specialized for voice communications at low bit-rates in the 2-45 kbps range. Possible applications include Voice over IP (VoIP), Internet audio streaming, audio books, and archiving of speech data (e.g. voice mail). This is the MinGW version, built for the win32 target. %package -n mingw32-speex-tools Summary: The tools package for mingw32-speex Requires: mingw32-speex = %{version}-%{release} %description -n mingw32-speex-tools Speex is a patent-free compression format designed especially for speech. It is specialized for voice communications at low bit-rates in the 2-45 kbps range. Possible applications include Voice over IP (VoIP), Internet audio streaming, audio books, and archiving of speech data (e.g. voice mail). This package contains tools files for the MinGW version of speex, built for the win32 target. %package -n mingw64-speex Summary: Voice compression format (codec) %description -n mingw64-speex Speex is a patent-free compression format designed especially for speech. It is specialized for voice communications at low bit-rates in the 2-45 kbps range. Possible applications include Voice over IP (VoIP), Internet audio streaming, audio books, and archiving of speech data (e.g. voice mail). This is the MinGW version, built for the win64 target. %package -n mingw64-speex-tools Summary: The tools package for mingw64-speex Requires: mingw64-speex = %{version}-%{release} %description -n mingw64-speex-tools Speex is a patent-free compression format designed especially for speech. It is specialized for voice communications at low bit-rates in the 2-45 kbps range. Possible applications include Voice over IP (VoIP), Internet audio streaming, audio books, and archiving of speech data (e.g. voice mail). This package contains tools files for the MinGW version of speex, built for the win64 target. %{?mingw_debug_package} %prep %autosetup -p1 -n speex-%{version} %build %mingw_configure --disable-static --enable-binaries # Remove rpath from speexenc and speexdec sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' build_win32/libtool sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' build_win32/libtool sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' build_win64/libtool sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' build_win64/libtool # Fix libtool to recognize win64 archives sed -i 's|file format pe-i386(\.\*architecture: i386)?|file format pe-x86-64|g' build_win64/libtool %mingw_make_build %install %mingw_make_install rm -f %{buildroot}%{mingw32_libdir}/libspeex*.la rm -f %{buildroot}%{mingw64_libdir}/libspeex*.la rm -f %{buildroot}%{mingw32_docdir}/speex/manual.pdf rm -f %{buildroot}%{mingw64_docdir}/speex/manual.pdf rm -rf %{buildroot}%{mingw32_mandir} rm -rf %{buildroot}%{mingw64_mandir} %files -n mingw32-speex %license COPYING %doc AUTHORS TODO ChangeLog README %{mingw32_bindir}/libspeex-1.dll %{mingw32_includedir}/speex %{mingw32_datadir}/aclocal/speex.m4 %{mingw32_libdir}/pkgconfig/speex*.pc %{mingw32_libdir}/libspeex.dll.a %files -n mingw32-speex-tools %{mingw32_bindir}/speexenc.exe %{mingw32_bindir}/speexdec.exe %files -n mingw64-speex %license COPYING %doc AUTHORS TODO ChangeLog README %{mingw64_bindir}/libspeex-1.dll %{mingw64_includedir}/speex %{mingw64_datadir}/aclocal/speex.m4 %{mingw64_libdir}/pkgconfig/speex*.pc %{mingw64_libdir}/libspeex.dll.a %files -n mingw64-speex-tools %{mingw64_bindir}/speexenc.exe %{mingw64_bindir}/speexdec.exe %changelog * Thu Jul 21 2022 Fedora Release Engineering - 1.2.0-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Fri Mar 25 2022 Sandro Mani - 1.2.0-11 - Rebuild with mingw-gcc-12 * Thu Jan 20 2022 Fedora Release Engineering - 1.2.0-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Mon Nov 22 2021 Sandro Mani - 1.2.0-9 - Backport patch for CVE-2020-23903 * Thu Jul 22 2021 Fedora Release Engineering - 1.2.0-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Tue Jan 26 2021 Fedora Release Engineering - 1.2.0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Sat Aug 01 2020 Fedora Release Engineering - 1.2.0-6 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue Jul 28 2020 Fedora Release Engineering - 1.2.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Wed Jan 29 2020 Fedora Release Engineering - 1.2.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Jul 25 2019 Fedora Release Engineering - 1.2.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Fri Feb 01 2019 Fedora Release Engineering - 1.2.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Wed Jan 09 2019 Kalev Lember - 1.2.0-1 - Update to 1.2.0 - Use license macro for COPYING * Fri Jul 13 2018 Fedora Release Engineering - 1.2-0.23.rc1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Thu Feb 08 2018 Fedora Release Engineering - 1.2-0.22.rc1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Wed Jul 26 2017 Fedora Release Engineering - 1.2-0.21.rc1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Fri Feb 10 2017 Fedora Release Engineering - 1.2-0.20.rc1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Thu Feb 04 2016 Fedora Release Engineering - 1.2-0.19.rc1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Wed Jun 17 2015 Fedora Release Engineering - 1.2-0.18.rc1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sat Jun 07 2014 Fedora Release Engineering - 1.2-0.17.rc1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Thu Feb 6 2014 František Dvořák - 1.2-0.16.rc1 - Update (review #970405) * Mon Jun 3 2013 Steven Boswell - 1.2-0.15.rc1 - Ported existing Fedora package to MinGW