File ilbc.spec of Package ilbc
%global commit 88cd1613a1db8d5dee0910a9a0c3e676e31bc529
%global shortcommit %(c=%{commit}; echo ${c:0:7})
Summary: iLBC is a library for the iLBC low bit rate speech codec.
Name: ilbc
Version: 1.1.1
Release: <RELEASE>%{?dist}
License: BSD
Group: System Environment/Libraries
URL: https://github.com/TimothyGu/libilbc
BuildRoot: %{_tmppath}/%{name}-%{version}-root
Source: %{url}/archive/%{commit}/libilbc-%{shortcommit}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Docdir: %{_prefix}/doc
BuildRequires: audiofile-devel
BuildRequires: doxygen
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libtool
%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 devel
Summary: iLBC development files
Group: Development/Libraries
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
Additional header files for development with %{name}.
%prep
%autosetup -n libilbc-%{commit} -p1
%build
autoreconf -ivf
%configure --disable-static --with-pic
%make_build
%install
%make_install
rm -f %{buildroot}%{_libdir}/libilbc.la
# Required for compatibility with a very old apps
cd %{buildroot}%{_libdir}/pkgconfig && ln -s libilbc.pc ilbc.pc
# Make compat symlinks
cd %{buildroot}%{_includedir}
ln -s ilbc.h iLBC_decode.h
ln -s ilbc.h iLBC_define.h
ln -s ilbc.h iLBC_encode.h
%if 0%{?fedora} >= 29 || 0%{?rhel} == 8
%ldconfig_scriptlets
%else
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%endif
%files
%doc README
%license COPYING
%{_libdir}/lib%{name}.so.*
%files devel
%{_includedir}/ilbc.h
# Compat symlinks
%{_includedir}/iLBC_decode.h
%{_includedir}/iLBC_define.h
%{_includedir}/iLBC_encode.h
%{_libdir}/pkgconfig/ilbc.pc
%{_libdir}/pkgconfig/libilbc.pc
%{_libdir}/lib%{name}.so
%changelog
* Sat Feb 29 2020 Ganapathi Chidambaram <ganapathi.rj@gmail.com> - %{version}-%{release}
- Updated to %{version}
* Tue Oct 8 2019 Ganapathi Chidambaram <ganapathi.rj@gmail.com> - 0.0.1
- Generated by OpenSUSE OBS System