3 %bcond_with wb # use AMR wideband instead of narrowband
5 Summary: AMR audio codec for mediastreamer
6 Summary(pl.UTF-8): Kodek dźwięku AMR dla mediastreamera
7 Name: mediastreamer-plugin-msamr
12 #Source0Download: https://gitlab.linphone.org/BC/public/msamr/-/tags
13 #Source0: https://gitlab.linphone.org/BC/public/msamr/-/archive/%{version}/msamr-%{version}.tar.bz2
14 Source0: http://linphone.org/releases/old/sources/plugins/msamr/msamr-%{version}.tar.gz
15 # Source0-md5: 10c6a05e12c2af17f4ebc215d6c477da
16 URL: https://gitlab.linphone.org/BC/public/msamr
17 BuildRequires: autoconf >= 2.63
18 BuildRequires: automake
19 BuildRequires: libtool >= 2:2
20 BuildRequires: ortp-devel >= 0.16.0
21 BuildRequires: mediastreamer-devel >= 2.13.0
22 BuildRequires: opencore-amr-devel >= 0.1.2
23 BuildRequires: pkgconfig
24 %{?with_wb:BuildRequires: vo-amrwbenc-devel >= 0.1.1}
25 Requires: mediastreamer >= 2.13.0
26 Requires: opencore-amr >= 0.1.2
27 Requires: ortp >= 0.16.0
28 %{?with_wb:Requires: vo-amrwbenc >= 0.1.1}
29 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32 This package supplies the mediastreamer plugin for the AMR audio
35 %description -l pl.UTF-8
36 Ten pakiet udostępnia wtyczkę mediastreamera do kodeka dźwięku AMR.
39 %setup -q -n msamr-%{version}
48 %{?with_wb:--enable-wideband}
53 rm -rf $RPM_BUILD_ROOT
56 DESTDIR=$RPM_BUILD_ROOT
58 %{__rm} $RPM_BUILD_ROOT%{_libdir}/mediastreamer/plugins/libmsamr.la
61 rm -rf $RPM_BUILD_ROOT
64 %defattr(644,root,root,755)
65 %doc AUTHORS NEWS README
66 %attr(755,root,root) %{_libdir}/mediastreamer/plugins/libmsamr.so*