[mingw-speex] Initial import (#1062291).

František Dvořák valtri at fedoraproject.org
Fri Feb 7 18:28:54 UTC 2014


commit 547b8ee6971be4f231165d589cd9cbba436de680
Author: František Dvořák <valtri at civ.zcu.cz>
Date:   Fri Feb 7 19:31:27 2014 +0100

    Initial import (#1062291).

 .gitignore       |    1 +
 mingw-speex.spec |  154 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources          |    1 +
 3 files changed, 156 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..d48a34e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/speex-1.2rc1.tar.gz
diff --git a/mingw-speex.spec b/mingw-speex.spec
new file mode 100644
index 0000000..f977011
--- /dev/null
+++ b/mingw-speex.spec
@@ -0,0 +1,154 @@
+%{?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 <valtri at civ.zcu.cz> - 1.2-0.16.rc1
+- Update (review #970405)
+
+* Mon Jun 3 2013 Steven Boswell <ulatekh at yahoo.com> - 1.2-0.15.rc1
+- Ported existing Fedora package to MinGW
diff --git a/sources b/sources
index e69de29..8bd92a8 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+c4438b22c08e5811ff10e2b06ee9b9ae  speex-1.2rc1.tar.gz


More information about the scm-commits mailing list