]> git.pld-linux.org Git - packages/bcg729.git/blame - bcg729.spec
Merge branch 'DEVEL-1.1'
[packages/bcg729.git] / bcg729.spec
CommitLineData
a4520443
JB
1#
2# Conditional build:
9808087f 3%bcond_without static_libs # static library
a4520443 4
0d00f4af
JB
5Summary: ITU G729 Annex A speech codec library
6Summary(pl.UTF-8): Biblioteka kodeka mowy ITU G729 Annex A
7Name: bcg729
9808087f
JB
8Version: 1.1.1
9Release: 1
10License: GPL v3+
0d00f4af 11Group: Libraries
9808087f
JB
12#Source0Download: https://gitlab.linphone.org/BC/public/bcg729/tags
13Source0: https://gitlab.linphone.org/BC/public/bcg729/-/archive/%{version}/%{name}-%{version}.tar.bz2
14# Source0-md5: 23b0c28422df3251adbc81e596ef9861
15URL: http://www.linphone.org/technical-corner/bcg729
266daf9c 16BuildRequires: cmake >= 3.1
0d00f4af 17BuildRequires: pkgconfig
266daf9c 18BuildRequires: rpmbuild(macros) >= 1.745
0d00f4af
JB
19BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21%description
22bcg729 is an opensource implementation of both encoder and decoder of
23the ITU G729 Annex A speech codec. The library written in C99 is fully
24portable and can be executed on many platforms including both ARM
25processor and x86. libbcg729 supports concurrent channels
26encoding/decoding for multi call application such conferencing. This
27project was initially developed as part of Mediastreamer2, the
28Linphone's media processing engine. So there is also available the
29glue to be integrated in Linphone/Mediastreamer2.
30
31%description -l pl.UTF-8
32bcg729 to implementacja o otwartych źródłach kodera oraz dekorera
33kodeka mowy ITU G729 Annex A. Biblioteka napisana w dialekcie C99 jest
34w pełni przenośna i może być uruchamiana na wielu platformach, w tym
35procesorach ARM i x86. libbcg729 obsługuje jednoczesne
36kodowanie/dekodowanie wielu kanałów dla zastosowań z wieloma
37rozmowami,takich jak konferencje. Ten projekt początkowo był częścią
38Mediastreamera2 - silnika przetwarzania multimediów programu Linphone.
39Dlatego jest też dostępny kod łączący z Linphonem/Mediastreamerem2.
40
41%package devel
42Summary: Header files for bcg729 library
43Summary(pl.UTF-8): Pliki nagłówkowe biblioteki bcg729
44Group: Development/Libraries
45Requires: %{name} = %{version}-%{release}
46
47%description devel
48Header files for bcg729 library.
49
50%description devel -l pl.UTF-8
51Pliki nagłówkowe biblioteki bcg729.
52
53%package static
54Summary: Static bcg729 library
55Summary(pl.UTF-8): Statyczna biblioteka bcg729
56Group: Development/Libraries
57Requires: %{name}-devel = %{version}-%{release}
58
59%description static
60Static bcg729 library.
61
62%description static -l pl.UTF-8
63Statyczna biblioteka bcg729.
64
0d00f4af
JB
65%prep
66%setup -q
9808087f 67
0d00f4af 68%build
266daf9c
JB
69install -d build
70cd build
71%cmake .. \
72 -DCMAKE_INSTALL_LIBDIR=%{_lib} \
73 %{!?with_static_libs:-DENABLE_STATIC=OFF}
0d00f4af
JB
74
75%{__make}
76
77%install
78rm -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
87rm -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
This page took 0.230236 seconds and 4 git commands to generate.