3 %bcond_without mediastreamer # mediastreamer plugin
5 Summary: ITU G729 Annex A speech codec library
6 Summary(pl.UTF-8): Biblioteka kodeka mowy ITU G729 Annex A
10 License: GPL v2+, ITU G729 patent license may be required
12 Source0: http://download-mirror.savannah.gnu.org/releases/linphone/plugins/sources/%{name}-%{version}.tar.gz
13 # Source0-md5: 2a3d9b422912024f97a41e56e9e3d357
14 Patch0: %{name}-lib.patch
15 URL: http://www.linphone.org/eng/documentation/dev/bcg729.html
16 BuildRequires: autoconf >= 2.63
17 BuildRequires: automake
18 BuildRequires: libtool >= 2:2
19 %{?with_mediastreamer:BuildRequires: mediastreamer-devel >= 2.9.0}
20 %{?with_mediastreamer:BuildRequires: ortp-devel >= 0.21.0}
21 BuildRequires: pkgconfig
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 bcg729 is an opensource implementation of both encoder and decoder of
26 the ITU G729 Annex A speech codec. The library written in C99 is fully
27 portable and can be executed on many platforms including both ARM
28 processor and x86. libbcg729 supports concurrent channels
29 encoding/decoding for multi call application such conferencing. This
30 project was initially developed as part of Mediastreamer2, the
31 Linphone's media processing engine. So there is also available the
32 glue to be integrated in Linphone/Mediastreamer2.
34 %description -l pl.UTF-8
35 bcg729 to implementacja o otwartych źródłach kodera oraz dekorera
36 kodeka mowy ITU G729 Annex A. Biblioteka napisana w dialekcie C99 jest
37 w pełni przenośna i może być uruchamiana na wielu platformach, w tym
38 procesorach ARM i x86. libbcg729 obsługuje jednoczesne
39 kodowanie/dekodowanie wielu kanałów dla zastosowań z wieloma
40 rozmowami,takich jak konferencje. Ten projekt początkowo był częścią
41 Mediastreamera2 - silnika przetwarzania multimediów programu Linphone.
42 Dlatego jest też dostępny kod łączący z Linphonem/Mediastreamerem2.
45 Summary: Header files for bcg729 library
46 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki bcg729
47 Group: Development/Libraries
48 Requires: %{name} = %{version}-%{release}
51 Header files for bcg729 library.
53 %description devel -l pl.UTF-8
54 Pliki nagłówkowe biblioteki bcg729.
57 Summary: Static bcg729 library
58 Summary(pl.UTF-8): Statyczna biblioteka bcg729
59 Group: Development/Libraries
60 Requires: %{name}-devel = %{version}-%{release}
63 Static bcg729 library.
65 %description static -l pl.UTF-8
66 Statyczna biblioteka bcg729.
68 %package -n mediastreamer-plugin-msbcg729
69 Summary: ITU G729 Annex A speech codec for mediastreamer
70 Summary(pl.UTF-8): Kodek mowy ITU G729 Annex A dla mediastreamera
72 Requires: %{name} = %{version}-%{release}
73 Requires: mediastreamer >= 2.9.0
75 %description -n mediastreamer-plugin-msbcg729
76 This package supplies the mediastreamer plugin for the ITU G729 Annex
79 %description -n mediastreamer-plugin-msbcg729 -l pl.UTF-8
80 Ten pakiet udostępnia wtyczkę mediastreamera do kodeka mowy ITU G729
94 %{!?with_mediastreamer:--disable-msplugin} \
95 --disable-silent-rules
100 rm -rf $RPM_BUILD_ROOT
103 DESTDIR=$RPM_BUILD_ROOT
106 %{__rm} $RPM_BUILD_ROOT%{_libdir}/mediastreamer/plugins/libmsbcg729.{la,a}
107 # obsoleted by pkg-config
108 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libbcg729.la
111 rm -rf $RPM_BUILD_ROOT
113 %post -p /sbin/ldconfig
114 %postun -p /sbin/ldconfig
117 %defattr(644,root,root,755)
119 %attr(755,root,root) %{_libdir}/libbcg729.so.*.*.*
120 %attr(755,root,root) %ghost %{_libdir}/libbcg729.so.0
123 %defattr(644,root,root,755)
124 %attr(755,root,root) %{_libdir}/libbcg729.so
125 %{_includedir}/bcg729
126 %{_pkgconfigdir}/libbcg729.pc
129 %defattr(644,root,root,755)
130 %{_libdir}/libbcg729.a
132 %if %{with mediastreamer}
133 %files -n mediastreamer-plugin-msbcg729
134 %defattr(644,root,root,755)
135 %attr(755,root,root) %{_libdir}/mediastreamer/plugins/libmsbcg729.so*