3 %bcond_without static_libs # static library
5 Summary: ITU G729 Annex A speech codec library
6 Summary(pl.UTF-8): Biblioteka kodeka mowy ITU G729 Annex A
12 #Source0Download: https://gitlab.linphone.org/BC/public/bcg729/tags
13 Source0: https://gitlab.linphone.org/BC/public/bcg729/-/archive/%{version}/%{name}-%{version}.tar.bz2
14 # Source0-md5: 23b0c28422df3251adbc81e596ef9861
15 URL: http://www.linphone.org/technical-corner/bcg729
16 BuildRequires: cmake >= 3.1
17 BuildRequires: pkgconfig
18 BuildRequires: rpmbuild(macros) >= 1.745
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 bcg729 is an opensource implementation of both encoder and decoder of
23 the ITU G729 Annex A speech codec. The library written in C99 is fully
24 portable and can be executed on many platforms including both ARM
25 processor and x86. libbcg729 supports concurrent channels
26 encoding/decoding for multi call application such conferencing. This
27 project was initially developed as part of Mediastreamer2, the
28 Linphone's media processing engine. So there is also available the
29 glue to be integrated in Linphone/Mediastreamer2.
31 %description -l pl.UTF-8
32 bcg729 to implementacja o otwartych źródłach kodera oraz dekorera
33 kodeka mowy ITU G729 Annex A. Biblioteka napisana w dialekcie C99 jest
34 w pełni przenośna i może być uruchamiana na wielu platformach, w tym
35 procesorach ARM i x86. libbcg729 obsługuje jednoczesne
36 kodowanie/dekodowanie wielu kanałów dla zastosowań z wieloma
37 rozmowami,takich jak konferencje. Ten projekt początkowo był częścią
38 Mediastreamera2 - silnika przetwarzania multimediów programu Linphone.
39 Dlatego jest też dostępny kod łączący z Linphonem/Mediastreamerem2.
42 Summary: Header files for bcg729 library
43 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki bcg729
44 Group: Development/Libraries
45 Requires: %{name} = %{version}-%{release}
48 Header files for bcg729 library.
50 %description devel -l pl.UTF-8
51 Pliki nagłówkowe biblioteki bcg729.
54 Summary: Static bcg729 library
55 Summary(pl.UTF-8): Statyczna biblioteka bcg729
56 Group: Development/Libraries
57 Requires: %{name}-devel = %{version}-%{release}
60 Static bcg729 library.
62 %description static -l pl.UTF-8
63 Statyczna biblioteka bcg729.
72 -DCMAKE_INSTALL_LIBDIR=%{_lib} \
73 %{!?with_static_libs:-DENABLE_STATIC=OFF}
78 rm -rf $RPM_BUILD_ROOT
80 %{__make} -C build install \
81 DESTDIR=$RPM_BUILD_ROOT
84 rm -rf $RPM_BUILD_ROOT
86 %post -p /sbin/ldconfig
87 %postun -p /sbin/ldconfig
90 %defattr(644,root,root,755)
91 %doc AUTHORS.md CHANGELOG.md README.md
92 %attr(755,root,root) %{_libdir}/libbcg729.so.0
95 %defattr(644,root,root,755)
96 %attr(755,root,root) %{_libdir}/libbcg729.so
98 %{_pkgconfigdir}/libbcg729.pc
99 %dir %{_datadir}/Bcg729
100 %{_datadir}/Bcg729/cmake
102 %if %{with static_libs}
104 %defattr(644,root,root,755)
105 %{_libdir}/libbcg729.a