]> git.pld-linux.org Git - packages/bcg729.git/blame - bcg729.spec
- aded git patch (updated to current master, adjusting cmake config files for mediast...
[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 8Version: 1.1.1
f458c530 9Release: 2
9808087f 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
f458c530
JB
15Patch0: %{name}-git.patch
16URL: https://www.linphone.org/technical-corner/bcg729
17BuildRequires: cmake >= 3.22
0d00f4af 18BuildRequires: pkgconfig
266daf9c 19BuildRequires: rpmbuild(macros) >= 1.745
0d00f4af
JB
20BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22%description
23bcg729 is an opensource implementation of both encoder and decoder of
24the ITU G729 Annex A speech codec. The library written in C99 is fully
25portable and can be executed on many platforms including both ARM
26processor and x86. libbcg729 supports concurrent channels
27encoding/decoding for multi call application such conferencing. This
28project was initially developed as part of Mediastreamer2, the
29Linphone's media processing engine. So there is also available the
30glue to be integrated in Linphone/Mediastreamer2.
31
32%description -l pl.UTF-8
33bcg729 to implementacja o otwartych źródłach kodera oraz dekorera
34kodeka mowy ITU G729 Annex A. Biblioteka napisana w dialekcie C99 jest
35w pełni przenośna i może być uruchamiana na wielu platformach, w tym
36procesorach ARM i x86. libbcg729 obsługuje jednoczesne
37kodowanie/dekodowanie wielu kanałów dla zastosowań z wieloma
38rozmowami,takich jak konferencje. Ten projekt początkowo był częścią
39Mediastreamera2 - silnika przetwarzania multimediów programu Linphone.
40Dlatego jest też dostępny kod łączący z Linphonem/Mediastreamerem2.
41
42%package devel
43Summary: Header files for bcg729 library
44Summary(pl.UTF-8): Pliki nagłówkowe biblioteki bcg729
45Group: Development/Libraries
46Requires: %{name} = %{version}-%{release}
47
48%description devel
49Header files for bcg729 library.
50
51%description devel -l pl.UTF-8
52Pliki nagłówkowe biblioteki bcg729.
53
54%package static
55Summary: Static bcg729 library
56Summary(pl.UTF-8): Statyczna biblioteka bcg729
57Group: Development/Libraries
58Requires: %{name}-devel = %{version}-%{release}
59
60%description static
61Static bcg729 library.
62
63%description static -l pl.UTF-8
64Statyczna biblioteka bcg729.
65
0d00f4af
JB
66%prep
67%setup -q
f458c530 68%patch0 -p1
9808087f 69
0d00f4af 70%build
f458c530
JB
71%if %{with static_libs}
72%cmake -B builddir-static \
266daf9c 73 -DCMAKE_INSTALL_LIBDIR=%{_lib} \
f458c530
JB
74 -DBUILD_SHARED_LIBS=OFF
75
76%{__make} -C builddir-static
77%endif
78
79%cmake -B builddir \
80 -DCMAKE_INSTALL_LIBDIR=%{_lib}
0d00f4af 81
f458c530 82%{__make} -C builddir
0d00f4af
JB
83
84%install
85rm -rf $RPM_BUILD_ROOT
86
f458c530
JB
87%if %{with static_libs}
88%{__make} -C builddir-static install \
0d00f4af 89 DESTDIR=$RPM_BUILD_ROOT
f458c530 90%endif
0d00f4af 91
f458c530
JB
92%{__make} -C builddir install \
93 DESTDIR=$RPM_BUILD_ROOT
b569abf9 94
0d00f4af
JB
95%clean
96rm -rf $RPM_BUILD_ROOT
97
98%post -p /sbin/ldconfig
99%postun -p /sbin/ldconfig
100
101%files
102%defattr(644,root,root,755)
9808087f 103%doc AUTHORS.md CHANGELOG.md README.md
266daf9c 104%attr(755,root,root) %{_libdir}/libbcg729.so.0
0d00f4af
JB
105
106%files devel
107%defattr(644,root,root,755)
108%attr(755,root,root) %{_libdir}/libbcg729.so
109%{_includedir}/bcg729
110%{_pkgconfigdir}/libbcg729.pc
f458c530
JB
111%dir %{_datadir}/BCG729
112%{_datadir}/BCG729/cmake
0d00f4af 113
9808087f 114%if %{with static_libs}
0d00f4af
JB
115%files static
116%defattr(644,root,root,755)
117%{_libdir}/libbcg729.a
a4520443 118%endif
This page took 0.113281 seconds and 4 git commands to generate.