packages: opus/opus-celt-rename.patch (NEW), opus/opus-link.patch (NEW), op...
qboosh
qboosh at pld-linux.org
Fri Mar 11 21:12:54 CET 2011
Author: qboosh Date: Fri Mar 11 20:12:54 2011 GMT
Module: packages Tag: HEAD
---- Log message:
- new
---- Files affected:
packages/opus:
opus-celt-rename.patch (NONE -> 1.1) (NEW), opus-link.patch (NONE -> 1.1) (NEW), opus.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/opus/opus-celt-rename.patch
diff -u /dev/null packages/opus/opus-celt-rename.patch:1.1
--- /dev/null Fri Mar 11 21:12:54 2011
+++ packages/opus/opus-celt-rename.patch Fri Mar 11 21:12:49 2011
@@ -0,0 +1,60 @@
+--- opus-0.9.2/celt/tools/Makefile.am.orig 2011-02-14 21:09:02.000000000 +0100
++++ opus-0.9.2/celt/tools/Makefile.am 2011-03-11 19:08:02.971416294 +0100
+@@ -15,7 +15,7 @@
+ bin_PROGRAMS = celtenc celtdec
+
+ celtenc_SOURCES = celtenc.c wav_io.c skeleton.c
+-celtenc_LDADD = $(top_builddir)/libcelt/libcelt at LIBCELT_SUFFIX@.la $(OGG_LIBS)
++celtenc_LDADD = $(top_builddir)/libcelt/libopuscelt at LIBCELT_SUFFIX@.la $(OGG_LIBS)
+
+ celtdec_SOURCES = celtdec.c wav_io.c
+-celtdec_LDADD = $(top_builddir)/libcelt/libcelt at LIBCELT_SUFFIX@.la $(OGG_LIBS)
++celtdec_LDADD = $(top_builddir)/libcelt/libopuscelt at LIBCELT_SUFFIX@.la $(OGG_LIBS)
+--- opus-0.9.2/celt/libcelt/Makefile.am.orig 2011-02-28 22:28:54.000000000 +0100
++++ opus-0.9.2/celt/libcelt/Makefile.am 2011-03-11 19:07:39.119417970 +0100
+@@ -11,14 +11,14 @@
+
+ noinst_SCRIPTS = match-test.sh
+
+-lib_LTLIBRARIES = libcelt at LIBCELT_SUFFIX@.la
++lib_LTLIBRARIES = libopuscelt at LIBCELT_SUFFIX@.la
+
+ # Sources for compilation in the library
+-libcelt at LIBCELT_SUFFIX@_la_SOURCES = bands.c celt.c cwrs.c ecintrin.h entcode.c \
++libopuscelt at LIBCELT_SUFFIX@_la_SOURCES = bands.c celt.c cwrs.c ecintrin.h entcode.c \
+ entdec.c entenc.c header.c kiss_fft.c laplace.c mathops.c mdct.c \
+ modes.c pitch.c plc.c quant_bands.c rate.c vq.c
+
+-libcelt at LIBCELT_SUFFIX@_la_LDFLAGS = \
++libopuscelt at LIBCELT_SUFFIX@_la_LDFLAGS = \
+ -version-info @CELT_LT_CURRENT@:@CELT_LT_REVISION@:@CELT_LT_AGE@ \
+ -no-undefined
+
+@@ -31,9 +31,9 @@
+
+ noinst_PROGRAMS = testcelt dump_modes
+ testcelt_SOURCES = testcelt.c
+-testcelt_LDADD = libcelt at LIBCELT_SUFFIX@.la
++testcelt_LDADD = libopuscelt at LIBCELT_SUFFIX@.la
+ INCLUDES =
+ #libcelt at LIBCELT_SUFFIX@_la_LIBADD =
+
+ dump_modes_SOURCES = dump_modes.c
+-dump_modes_LDADD = libcelt at LIBCELT_SUFFIX@.la
++dump_modes_LDADD = libopuscelt at LIBCELT_SUFFIX@.la
+--- opus-0.9.2/celt/tests/Makefile.am.orig 2011-02-14 21:09:02.000000000 +0100
++++ opus-0.9.2/celt/tests/Makefile.am 2011-03-11 19:28:09.623417970 +0100
+@@ -14,4 +14,4 @@
+ #rotation_test_SOURCES = rotation-test.c
+ mathops_test_SOURCES = mathops-test.c
+ tandem_test_SOURCES = tandem-test.c
+-tandem_test_LDADD = $(top_builddir)/libcelt/libcelt at LIBCELT_SUFFIX@.la
++tandem_test_LDADD = $(top_builddir)/libcelt/libopuscelt at LIBCELT_SUFFIX@.la
+--- opus-0.9.2/silk/Makefile.am.orig 2011-03-11 19:28:47.939416294 +0100
++++ opus-0.9.2/silk/Makefile.am 2011-03-11 19:50:01.543418808 +0100
+@@ -215,4 +215,4 @@
+ signalCompare_LDADD = $(lib_LTLIBRARIES) -lm
+ signalCompare_LDFLAGS = $(LIBS)
+
+-LIBS = ../celt/libcelt/libcelt0.la
++LIBS = ../celt/libcelt/libopuscelt0.la
================================================================
Index: packages/opus/opus-link.patch
diff -u /dev/null packages/opus/opus-link.patch:1.1
--- /dev/null Fri Mar 11 21:12:54 2011
+++ packages/opus/opus-link.patch Fri Mar 11 21:12:49 2011
@@ -0,0 +1,28 @@
+--- opus-0.9.2/silk/Makefile.am.orig 2011-02-28 22:07:43.000000000 +0100
++++ opus-0.9.2/silk/Makefile.am 2011-03-11 17:58:27.851418808 +0100
+@@ -212,7 +212,7 @@
+ Decoder_LDFLAGS = $(LIBS)
+
+ signalCompare_SOURCES = test/signalCompare.c $(top_builddir)/interface/SKP_Silk_SDK_API.h
+-signalCompare_LDADD = $(lib_LTLIBRARIES)
++signalCompare_LDADD = $(lib_LTLIBRARIES) -lm
+ signalCompare_LDFLAGS = $(LIBS)
+
+ LIBS = ../celt/libcelt/libcelt0.la
+--- opus-0.9.2/src/Makefile.am.orig 2011-03-02 21:42:36.000000000 +0100
++++ opus-0.9.2/src/Makefile.am 2011-03-11 19:09:20.591416294 +0100
+@@ -3,6 +3,7 @@
+
+ lib_LTLIBRARIES = libietfcodec.la
+ libietfcodec_la_SOURCES = opus_decoder.c opus_encoder.c
++libietfcodec_la_LIBADD = $(top_builddir)/celt/libcelt/libopuscelt0.la $(top_builddir)/silk/libSKP_SILK_SDK.la
+
+ noinst_HEADERS = opus_decoder.h opus_encoder.h
+
+@@ -11,5 +12,5 @@
+ noinst_PROGRAMS = test_opus
+
+ test_opus_SOURCES = test_opus.c
+-test_opus_LDADD = libietfcodec.la $(top_builddir)/celt/libcelt/libcelt0.la $(top_builddir)/silk/libSKP_SILK_SDK.la
++test_opus_LDADD = libietfcodec.la
+
================================================================
Index: packages/opus/opus.spec
diff -u /dev/null packages/opus/opus.spec:1.1
--- /dev/null Fri Mar 11 21:12:54 2011
+++ packages/opus/opus.spec Fri Mar 11 21:12:49 2011
@@ -0,0 +1,137 @@
+# $Revision$, $Date$
+Summary: IETF Opus Interactive Audio Codec
+Summary(pl.UTF-8): Opus - interaktywny kodek dźwięku wg projektu IETF
+Name: opus
+Version: 0.9.2
+Release: 1
+License: BSD
+Group: Libraries
+Source0: http://downloads.xiph.org/releases/opus/%{name}-%{version}.tar.gz
+# Source0-md5: 8b9047956c4a781e05d3ac8565cd28f5
+Patch0: %{name}-link.patch
+Patch1: %{name}-celt-rename.patch
+URL: http://opus-codec.org/
+BuildRequires: autoconf >= 2.59
+BuildRequires: automake >= 1.6
+# for tools
+BuildRequires: libogg-devel
+BuildRequires: libtool
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+The Opus codec is designed for interactive speech and audio
+transmission over the Internet. It is designed by the IETF Codec
+Working Group and incorporates technology from Skype's SILK codec and
+Xiph.Org's CELT codec.
+
+%description -l pl.UTF-8
+Kodek Opus został zaprojektowany do interaktywnej transmisji mowy i
+dźwięku przez Internet. Zaprojektowała go IETC Codec Working Group,
+łącząc technologię z kodeka SILK Skype'a i kodeka CELT Xiph.Org.
+
+%package devel
+Summary: Header files for OPUS libraries
+Summary(pl.UTF-8): Pliki nagłówkowe bibliotek OPUS
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+
+%description devel
+Header files for OPUS libraries.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe bibliotek OPUS.
+
+%package static
+Summary: Static OPUS libraries
+Summary(pl.UTF-8): Statyczne biblioteki OPUS
+Group: Development/Libraries
+Requires: %{name}-devel = %{version}-%{release}
+
+%description static
+Static OPUS libraries.
+
+%description static -l pl.UTF-8
+Statyczne biblioteki OPUS.
+
+%prep
+%setup -q
+%patch0 -p1
+%patch1 -p1
+
+%build
+cd celt
+%{__libtoolize}
+%{__aclocal}
+%{__autoconf}
+%{__autoheader}
+%{__automake}
+cd ../silk
+%{__libtoolize}
+%{__aclocal}
+%{__autoconf}
+%{__automake}
+cd ..
+%{__libtoolize}
+%{__aclocal}
+%{__autoconf}
+%{__automake}
+%configure
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+for f in Decoder Encoder signalCompare ; do
+ mv $RPM_BUILD_ROOT%{_bindir}/$f $RPM_BUILD_ROOT%{_bindir}/opus-$f
+done
+%{__rm} $RPM_BUILD_ROOT%{_bindir}/celt{dec,enc}
+%{__rm} -r $RPM_BUILD_ROOT%{_includedir}/celt
+%{__rm} $RPM_BUILD_ROOT%{_pkgconfigdir}/celt.pc
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS COPYING README TODO
+%attr(755,root,root) %{_bindir}/opus-Decoder
+%attr(755,root,root) %{_bindir}/opus-Encoder
+%attr(755,root,root) %{_bindir}/opus-signalCompare
+%attr(755,root,root) %{_libdir}/libSKP_SILK_SDK.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libSKP_SILK_SDK.so.0
+%attr(755,root,root) %{_libdir}/libietfcodec.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libietfcodec.so.0
+%attr(755,root,root) %{_libdir}/libopuscelt0.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libopuscelt0.so.2
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libSKP_SILK_SDK.so
+%attr(755,root,root) %{_libdir}/libietfcodec.so
+%attr(755,root,root) %{_libdir}/libopuscelt0.so
+%{_libdir}/libSKP_SILK_SDK.la
+%{_libdir}/libietfcodec.la
+%{_libdir}/libopuscelt0.la
+%{_includedir}/opus
+%{_includedir}/silk
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libSKP_SILK_SDK.a
+%{_libdir}/libietfcodec.a
+%{_libdir}/libopuscelt0.a
+
+%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1 2011/03/11 20:12:49 qboosh
+- new
================================================================
More information about the pld-cvs-commit
mailing list