Name:           amrwb
Version:        6.0.0.1
Release:        0
URL:            http://www.penguin.cz/~utx/amr
Group:          System/Libraries
License:        Commercial
Summary:        Adaptive Multi-Rate - Wideband (AMR-WB) Speech Codec
Source:         http://ftp.penguin.cz/pub/users/utx/amr/%{name}-%{version}.tar.bz2
Autoreqprov:    on
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Adaptive Multi-Rate Wideband decoder and encoder library.
(3GPP TS 26.204 V6.0.0)

http://www.3gpp.org/ftp/Specs/html-info/26204.htm

%package devel
Group:          System/Libraries
Summary:        Adaptive Multi-Rate - Wideband (AMR-WB) Speech Codec
Requires:       %{name} = %{version} glibc-devel

%description devel
Adaptive Multi-Rate Wideband decoder and encoder library.
(3GPP TS 26.204 V6.0.0)

http://www.3gpp.org/ftp/Specs/html-info/26204.htm

%prep
%setup -q

%build
%configure
# Parallel build does not work:
#make %{?jobs:-j %jobs}
make
#make distcheck

%install
%makeinstall

%clean
rm -rf $RPM_BUILD_ROOT

%post
%run_ldconfig

%postun
%run_ldconfig

%files
%defattr (-, root, root)
%doc AUTHORS ChangeLog COPYING NEWS README TODO readme.txt
%{_bindir}/*
%{_libdir}/*.so.*

%files devel
%defattr (-, root, root)
%{_includedir}/amrwb
%{_libdir}/*.so
%{_libdir}/*.*a
