%define major 0 %define libname %mklibname ilbc %{major} %define libnamedev %mklibname ilbc -d Summary: Internet Low Bitrate Codec (iLBC) library Name: libilbc Version: 1.1.1 Release: %mkrel 2 License: BSD-style Group: System/Libraries URL: https://github.com/dekkers/libilbc Source0: libilbc-master.zip BuildRequires: autoconf automake libtool BuildRequires: pkgconfig BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot %description iLBC (internet Low Bitrate Codec) is a FREE speech codec suitable for robust voice communication over IP. The codec is designed for narrow band speech and results in a payload bit rate of 13.33 kbit/s with an encoding frame length of 30 ms and 15.20 kbps with an encoding length of 20 ms. The iLBC codec enables graceful speech quality degradation in the case of lost frames, which occurs in connection with lost or delayed IP packets. %package -n %{libname} Summary: Internet Low Bitrate Codec (iLBC) library Group: System/Libraries %description -n %{libname} iLBC (internet Low Bitrate Codec) is a FREE speech codec suitable for robust voice communication over IP. The codec is designed for narrow band speech and results in a payload bit rate of 13.33 kbit/s with an encoding frame length of 30 ms and 15.20 kbps with an encoding length of 20 ms. The iLBC codec enables graceful speech quality degradation in the case of lost frames, which occurs in connection with lost or delayed IP packets. %package -n %{libnamedev} Summary: Development and header files for the iLBC library Group: Development/C Requires: %{libname} = %{version}-%{release} Provides: %{name}-devel = %{version}-%{release} Provides: lib%{name}-devel = %{version}-%{release} %description -n %{libnamedev} iLBC (internet Low Bitrate Codec) is a FREE speech codec suitable for robust voice communication over IP. The codec is designed for narrow band speech and results in a payload bit rate of 13.33 kbit/s with an encoding frame length of 30 ms and 15.20 kbps with an encoding length of 20 ms. The iLBC codec enables graceful speech quality degradation in the case of lost frames, which occurs in connection with lost or delayed IP packets. %prep %setup -q -n libilbc-master %build autoreconf -fi %configure2_5x \ --disable-static %make %install rm -rf %{buildroot} %makeinstall_std rm -f %{buildroot}%{_libdir}/*.*a %clean rm -rf %{buildroot} %files -n %{libname} %defattr(-,root,root) %doc COPYING README %{_libdir}/libilbc.so.%{major}* %files -n %{libnamedev} %defattr(-,root,root) %{_includedir}/ilbc.h %{_libdir}/libilbc.so %{_libdir}/pkgconfig/libilbc.pc %changelog * Sat Jan 12 2013 umeabot <umeabot> 1.1.1-2.mga3 + Revision: 357526 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Thu Dec 13 2012 oden <oden> 1.1.1-1.mga3 + Revision: 330112 - use the new friendly version from https://github.com/dekkers/libilbc - further cleanups * Thu Dec 13 2012 oden <oden> 0.6-10.mga3 + Revision: 330103 - sync with the bundled ilbc in asterisk-11.1.0 (the code is now googlecode, webrtc) - cleanup the spec file a bit * Wed Jun 08 2011 ze <ze> 0.6-9.mga2 + Revision: 102044 - imported package libilbc