]>
Commit | Line | Data |
---|---|---|
a4520443 JB |
1 | # |
2 | # Conditional build: | |
9808087f | 3 | %bcond_without static_libs # static library |
a4520443 | 4 | |
0d00f4af JB |
5 | Summary: ITU G729 Annex A speech codec library |
6 | Summary(pl.UTF-8): Biblioteka kodeka mowy ITU G729 Annex A | |
7 | Name: bcg729 | |
9808087f JB |
8 | Version: 1.1.1 |
9 | Release: 1 | |
10 | License: GPL v3+ | |
0d00f4af | 11 | Group: Libraries |
9808087f JB |
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 | |
266daf9c | 16 | BuildRequires: cmake >= 3.1 |
0d00f4af | 17 | BuildRequires: pkgconfig |
266daf9c | 18 | BuildRequires: rpmbuild(macros) >= 1.745 |
0d00f4af JB |
19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
20 | ||
21 | %description | |
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. | |
30 | ||
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. | |
40 | ||
41 | %package devel | |
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} | |
46 | ||
47 | %description devel | |
48 | Header files for bcg729 library. | |
49 | ||
50 | %description devel -l pl.UTF-8 | |
51 | Pliki nagłówkowe biblioteki bcg729. | |
52 | ||
53 | %package static | |
54 | Summary: Static bcg729 library | |
55 | Summary(pl.UTF-8): Statyczna biblioteka bcg729 | |
56 | Group: Development/Libraries | |
57 | Requires: %{name}-devel = %{version}-%{release} | |
58 | ||
59 | %description static | |
60 | Static bcg729 library. | |
61 | ||
62 | %description static -l pl.UTF-8 | |
63 | Statyczna biblioteka bcg729. | |
64 | ||
0d00f4af JB |
65 | %prep |
66 | %setup -q | |
9808087f | 67 | |
0d00f4af | 68 | %build |
266daf9c JB |
69 | install -d build |
70 | cd build | |
71 | %cmake .. \ | |
72 | -DCMAKE_INSTALL_LIBDIR=%{_lib} \ | |
73 | %{!?with_static_libs:-DENABLE_STATIC=OFF} | |
0d00f4af JB |
74 | |
75 | %{__make} | |
76 | ||
77 | %install | |
78 | rm -rf $RPM_BUILD_ROOT | |
79 | ||
266daf9c | 80 | %{__make} -C build install \ |
0d00f4af JB |
81 | DESTDIR=$RPM_BUILD_ROOT |
82 | ||
b569abf9 JB |
83 | # disable completeness check incompatible with split packaging |
84 | %{__sed} -i -e '/^foreach(target .*IMPORT_CHECK_TARGETS/,/^endforeach/d; /^unset(_IMPORT_CHECK_TARGETS)/d' $RPM_BUILD_ROOT%{_datadir}/Bcg729/cmake/Bcg729Targets.cmake | |
85 | ||
0d00f4af JB |
86 | %clean |
87 | rm -rf $RPM_BUILD_ROOT | |
88 | ||
89 | %post -p /sbin/ldconfig | |
90 | %postun -p /sbin/ldconfig | |
91 | ||
92 | %files | |
93 | %defattr(644,root,root,755) | |
9808087f | 94 | %doc AUTHORS.md CHANGELOG.md README.md |
266daf9c | 95 | %attr(755,root,root) %{_libdir}/libbcg729.so.0 |
0d00f4af JB |
96 | |
97 | %files devel | |
98 | %defattr(644,root,root,755) | |
99 | %attr(755,root,root) %{_libdir}/libbcg729.so | |
100 | %{_includedir}/bcg729 | |
101 | %{_pkgconfigdir}/libbcg729.pc | |
266daf9c JB |
102 | %dir %{_datadir}/Bcg729 |
103 | %{_datadir}/Bcg729/cmake | |
0d00f4af | 104 | |
9808087f | 105 | %if %{with static_libs} |
0d00f4af JB |
106 | %files static |
107 | %defattr(644,root,root,755) | |
108 | %{_libdir}/libbcg729.a | |
a4520443 | 109 | %endif |