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 Patch0: %{name}-git.patch
16 URL: https://www.linphone.org/technical-corner/bcg729
17 BuildRequires: cmake >= 3.22
18 BuildRequires: pkgconfig
19 BuildRequires: rpmbuild(macros) >= 1.745
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 bcg729 is an opensource implementation of both encoder and decoder of
24 the ITU G729 Annex A speech codec. The library written in C99 is fully
25 portable and can be executed on many platforms including both ARM
26 processor and x86. libbcg729 supports concurrent channels
27 encoding/decoding for multi call application such conferencing. This
28 project was initially developed as part of Mediastreamer2, the
29 Linphone's media processing engine. So there is also available the
30 glue to be integrated in Linphone/Mediastreamer2.
32 %description -l pl.UTF-8
33 bcg729 to implementacja o otwartych źródłach kodera oraz dekorera
34 kodeka mowy ITU G729 Annex A. Biblioteka napisana w dialekcie C99 jest
35 w pełni przenośna i może być uruchamiana na wielu platformach, w tym
36 procesorach ARM i x86. libbcg729 obsługuje jednoczesne
37 kodowanie/dekodowanie wielu kanałów dla zastosowań z wieloma
38 rozmowami,takich jak konferencje. Ten projekt początkowo był częścią
39 Mediastreamera2 - silnika przetwarzania multimediów programu Linphone.
40 Dlatego jest też dostępny kod łączący z Linphonem/Mediastreamerem2.
43 Summary: Header files for bcg729 library
44 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki bcg729
45 Group: Development/Libraries
46 Requires: %{name} = %{version}-%{release}
49 Header files for bcg729 library.
51 %description devel -l pl.UTF-8
52 Pliki nagłówkowe biblioteki bcg729.
55 Summary: Static bcg729 library
56 Summary(pl.UTF-8): Statyczna biblioteka bcg729
57 Group: Development/Libraries
58 Requires: %{name}-devel = %{version}-%{release}
61 Static bcg729 library.
63 %description static -l pl.UTF-8
64 Statyczna biblioteka bcg729.
71 %if %{with static_libs}
72 %cmake -B builddir-static \
73 -DCMAKE_INSTALL_LIBDIR=%{_lib} \
74 -DBUILD_SHARED_LIBS=OFF
76 %{__make} -C builddir-static
80 -DCMAKE_INSTALL_LIBDIR=%{_lib}
85 rm -rf $RPM_BUILD_ROOT
87 %if %{with static_libs}
88 %{__make} -C builddir-static install \
89 DESTDIR=$RPM_BUILD_ROOT
92 %{__make} -C builddir install \
93 DESTDIR=$RPM_BUILD_ROOT
96 rm -rf $RPM_BUILD_ROOT
98 %post -p /sbin/ldconfig
99 %postun -p /sbin/ldconfig
102 %defattr(644,root,root,755)
103 %doc AUTHORS.md CHANGELOG.md README.md
104 %attr(755,root,root) %{_libdir}/libbcg729.so.0
107 %defattr(644,root,root,755)
108 %attr(755,root,root) %{_libdir}/libbcg729.so
109 %{_includedir}/bcg729
110 %{_pkgconfigdir}/libbcg729.pc
111 %dir %{_datadir}/BCG729
112 %{_datadir}/BCG729/cmake
114 %if %{with static_libs}
116 %defattr(644,root,root,755)
117 %{_libdir}/libbcg729.a