[mingw-celt051: 2/9] Initial import (#613993)

epienbro epienbro at fedoraproject.org
Wed Mar 7 15:54:52 UTC 2012


commit 274272f64774da54feb4434a099ba1a7749f6fba
Author: Gerd Hoffmann <kraxel at redhat.com>
Date:   Fri Sep 17 12:12:25 2010 +0200

    Initial import (#613993)

 .gitignore                          |    1 +
 celt051-build-a-dll-for-win32.patch |   11 +++++
 celt051-tests-makefile-fix.patch    |   17 +++++++
 mingw32-celt051.spec                |   80 +++++++++++++++++++++++++++++++++++
 sources                             |    1 +
 5 files changed, 110 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..86472e0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/celt-0.5.1.3.tar.gz
diff --git a/celt051-build-a-dll-for-win32.patch b/celt051-build-a-dll-for-win32.patch
new file mode 100644
index 0000000..5626a53
--- /dev/null
+++ b/celt051-build-a-dll-for-win32.patch
@@ -0,0 +1,11 @@
+--- celt-0.5.1.3/libcelt/Makefile.am.orig	2010-08-07 23:56:53.668270934 +0200
++++ celt-0.5.1.3/libcelt/Makefile.am	2010-08-07 23:57:05.491145959 +0200
+@@ -22,7 +22,7 @@
+ 
+ #noinst_HEADERS =
+ 
+-libcelt at PACKAGE_APPEND@_la_LDFLAGS = -version-info @CELT_LT_CURRENT@:@CELT_LT_REVISION@:@CELT_LT_AGE@
++libcelt at PACKAGE_APPEND@_la_LDFLAGS = -version-info @CELT_LT_CURRENT@:@CELT_LT_REVISION@:@CELT_LT_AGE@ -no-undefined
+ 
+ noinst_HEADERS = _kiss_fft_guts.h arch.h bands.h fixed_c5x.h fixed_c6x.h \
+ 	cwrs.h ecintrin.h entcode.h entdec.h entenc.h fixed_generic.h float_cast.h \
diff --git a/celt051-tests-makefile-fix.patch b/celt051-tests-makefile-fix.patch
new file mode 100644
index 0000000..eb93a49
--- /dev/null
+++ b/celt051-tests-makefile-fix.patch
@@ -0,0 +1,17 @@
+diff -up celt-0.5.1.3/tests/Makefile.am.orig celt-0.5.1.3/tests/Makefile.am
+--- celt-0.5.1.3/tests/Makefile.am.orig	2009-05-06 22:10:14.000000000 +0200
++++ celt-0.5.1.3/tests/Makefile.am	2010-07-02 12:09:19.906422310 +0200
+@@ -7,10 +7,13 @@ noinst_PROGRAMS = type-test ectest cwrs3
+ 
+ type_test_SOURCES = type-test.c
+ ectest_SOURCES = ectest.c
++ectest_LDADD = $(top_builddir)/libcelt/libcelt at PACKAGE_APPEND@.la
+ cwrs32_test_SOURCES = cwrs32-test.c
++cwrs32_test_LDADD = $(top_builddir)/libcelt/libcelt at PACKAGE_APPEND@.la
+ real_fft_test_SOURCES = real-fft-test.c
+ dft_test_SOURCES = dft-test.c
+ laplace_test_SOURCES = laplace-test.c
++laplace_test_LDADD = $(top_builddir)/libcelt/libcelt at PACKAGE_APPEND@.la
+ mdct_test_SOURCES = mdct-test.c
+ #rotation_test_SOURCES = rotation-test.c
+ mathops_test_SOURCES = mathops-test.c
diff --git a/mingw32-celt051.spec b/mingw32-celt051.spec
new file mode 100644
index 0000000..fa00065
--- /dev/null
+++ b/mingw32-celt051.spec
@@ -0,0 +1,80 @@
+%global __strip %{_mingw32_strip}
+%global __objdump %{_mingw32_objdump}
+%global _use_internal_dependency_generator 0
+%global __find_requires %{_mingw32_findrequires}
+%global __find_provides %{_mingw32_findprovides}
+
+Name:           mingw32-celt051
+Version:        0.5.1.3
+Release:        3%{?dist}
+Summary:        An audio codec for use in low-delay speech and audio communication
+
+Group:          System Environment/Libraries
+License:        BSD
+# Files without license header are confirmed to be BSD. Will be fixed in later release
+# http://lists.xiph.org/pipermail/celt-dev/2009-February/000063.html
+URL:            http://www.celt-codec.org/
+Source0:        http://downloads.us.xiph.org/releases/celt/celt-%{version}.tar.gz
+
+# Some tests need libcelt but are not explicitly linked against it.
+# Windows cross builds fail because of that (native linux builds
+# don't for some mysterious reason).  Fix it.
+Patch1:         celt051-tests-makefile-fix.patch
+
+# Fixes "libtool: link: warning: undefined symbols not allowed in
+# i686-pc-mingw32 shared libraries"
+Patch2:         celt051-build-a-dll-for-win32.patch
+
+BuildArch:      noarch
+BuildRequires:  mingw32-filesystem >= 49
+BuildRequires:  mingw32-gcc
+BuildRequires:  mingw32-binutils
+BuildRequires:  pkgconfig autoconf automake libtool
+Requires:       pkgconfig
+
+BuildRequires:  mingw32-libogg libogg-devel
+Requires:       mingw32-libogg
+
+%description
+CELT (Constrained Energy Lapped Transform) is an ultra-low delay audio 
+codec designed for realtime transmission of high quality speech and audio. 
+This is meant to close the gap between traditional speech codecs 
+(such as Speex) and traditional audio codecs (such as Vorbis). 
+
+%prep
+%setup -q -n celt-%{version}
+%patch1 -p1
+%patch2 -p1
+
+%build
+autoreconf -i -f
+%{_mingw32_configure}
+make %{?_smp_mflags}
+
+%install
+make DESTDIR=%{buildroot} install
+rm -f %{buildroot}/%{_mingw32_libdir}/libcelt051.a
+
+%files
+%defattr(-,root,root,-)
+%doc COPYING README TODO
+%{_mingw32_bindir}/celtenc051.exe
+%{_mingw32_bindir}/celtdec051.exe
+%{_mingw32_bindir}/libcelt051-0.dll
+%{_mingw32_includedir}/celt051
+%{_mingw32_libdir}/libcelt051.la
+%{_mingw32_libdir}/libcelt051.dll.a
+%{_mingw32_libdir}/pkgconfig/celt051.pc
+
+%changelog
+* Mon Aug 23 2010 Gerd Hoffmann <kraxel at redhat.com> - 0.5.1.3-3
+- Fix dll build, drop static library from package.
+
+* Tue Aug 3 2010 Gerd Hoffmann <kraxel at redhat.com> - 0.5.1.3-2
+- Don't use wildcards in the file list.
+- Use %%global instead of %%define.
+- Do parallel builds.
+- Add patch comment.
+
+* Tue Jul 13 2010 Gerd Hoffmann <kraxel at redhat.com> - 0.5.1.3-1
+- Initial package.
diff --git a/sources b/sources
index e69de29..41d0f30 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+67e7b5e45db57a6f1f0a6962f5ecb190  celt-0.5.1.3.tar.gz


More information about the scm-commits mailing list