%{?mingw_package_header} %global rc_ver rc1 Name: mingw-speex Version: 1.2 Release: 0.16.%{rc_ver}%{?dist} Summary: Voice compression format (codec) License: BSD URL: http://www.speex.org/ Source0: http://downloads.xiph.org/releases/speex/speex-%{version}%{rc_ver}.tar.gz BuildArch: noarch 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 %setup -q -n speex-%{version}%{rc_ver} %build %{mingw_configure} --disable-static # 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} %{?_smp_mflags} %install %{mingw_make} DESTDIR=$RPM_BUILD_ROOT install rm -f $RPM_BUILD_ROOT%{mingw32_libdir}/libspeex*.la rm -f $RPM_BUILD_ROOT%{mingw64_libdir}/libspeex*.la rm -f $RPM_BUILD_ROOT%{mingw32_docdir}/speex/manual.pdf rm -f $RPM_BUILD_ROOT%{mingw64_docdir}/speex/manual.pdf rm -rf $RPM_BUILD_ROOT%{mingw32_mandir} rm -rf $RPM_BUILD_ROOT%{mingw64_mandir} %files -n mingw32-speex %doc AUTHORS COPYING TODO ChangeLog README %{mingw32_bindir}/libspeex-1.dll %{mingw32_bindir}/libspeexdsp-1.dll %{mingw32_includedir}/speex %{mingw32_datadir}/aclocal/speex.m4 %{mingw32_libdir}/pkgconfig/speex*.pc %{mingw32_libdir}/libspeex.dll.a %{mingw32_libdir}/libspeexdsp.dll.a %files -n mingw32-speex-tools %{mingw32_bindir}/speexenc.exe %{mingw32_bindir}/speexdec.exe %files -n mingw64-speex %doc AUTHORS COPYING TODO ChangeLog README %{mingw64_bindir}/libspeex-1.dll %{mingw64_bindir}/libspeexdsp-1.dll %{mingw64_includedir}/speex %{mingw64_datadir}/aclocal/speex.m4 %{mingw64_libdir}/pkgconfig/speex*.pc %{mingw64_libdir}/libspeex.dll.a %{mingw64_libdir}/libspeexdsp.dll.a %files -n mingw64-speex-tools %{mingw64_bindir}/speexenc.exe %{mingw64_bindir}/speexdec.exe %changelog * 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