Summary: Voice compression format (codec)
Name: speex
Version: 1.2
Release: 0.2.beta2
License: BSD
Group: System Environment/Libraries
URL: http://www.speex.org/
Source0: http://downloads.us.xiph.org/releases/speex/speex-1.2beta2.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
BuildRequires: libogg-devel
# don't build unneded test programs, since they seem to cause
# build failures
Patch0: speex-1.2beta1-test-progs.patch
%description
Speex is a patent-free compression format designed especially for
speech. It is specialized for voice communications at low bit-rates in
the 2-45 kbps range. Possible applications include Voice over IP
(VoIP), Internet audio streaming, audio books, and archiving of speech
data (e.g. voice mail).
%package devel
Summary: Development package for %{name}
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
Requires: pkgconfig
%description devel
Speex is a patent-free compression format designed especially for
speech. This package contains development files for %{name}
%prep
%setup -q -n speex-1.2beta2
%patch0 -p1 -b .test-progs
%build
%configure --enable-static --with-ogg-libraries=%{_libdir}
# Remove rpath from speexenc and speexdec
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
%makeinstall
rm -f $RPM_BUILD_ROOT%{_docdir}/speex-*/manual.pdf
chmod a-x README
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root,-)
%doc AUTHORS COPYING TODO ChangeLog README NEWS doc/manual.pdf
%{_bindir}/speexenc
%{_bindir}/speexdec
%{_mandir}/man1/speexenc.1*
%{_mandir}/man1/speexdec.1*
%{_libdir}/libspeex.so.*
%files devel
%defattr(-,root,root,-)
%exclude %{_libdir}/libspeex.a
%exclude %{_libdir}/libspeex.la
%{_includedir}/speex
%{_datadir}/aclocal/speex.m4
%{_libdir}/pkgconfig/speex.pc
%{_libdir}/libspeex.so
%changelog
* Fri Aug 31 2007 Matthias Saou 1.2.0-0.2.beta2
- Update to 1.2.0beta2.
- Remove rpath.
- Exclude static library.
* Tue Oct 24 2006 Matthias Clasen - 1.2-0.2.beta1
- Rebuild
* Tue Oct 24 2006 Matthias Clasen - 1.2-0.1.beta1
- Update to 1.2beta1
- Require pkgconfig in the -devel package
* Wed Jul 12 2006 Jesse Keating - 1.0.5-2.1
- rebuild
* Wed Jun 7 2006 Jeremy Katz - 1.0.5-2
- rebuild for -devel deps
* Fri Feb 10 2006 Jesse Keating - 1.0.5-1.2.1
- bump again for double-long bug on ppc(64)
* Tue Feb 07 2006 Jesse Keating - 1.0.5-1.2
- rebuilt for new gcc4.1 snapshot and glibc changes
* Fri Dec 09 2005 Jesse Keating
- rebuilt
* Wed Nov 09 2005 John (J5) Palmieri -1.0.5-1
- Update to 1.0.5
* Wed Mar 02 2005 John (J5) Palmieri -1.0.4-5
- rebuild for gcc 4.0
* Mon Oct 18 2004 Miloslav Trmac - 1.0.4-4
- Fix version in pkg-config file (#135987, patch by Michael Schwendt)
* Wed Aug 11 2004 Tim Waugh 1.0.4-3
- Fixed underquoted m4 definition.
* Fri Jul 30 2004 Colin Walters 1.0.4-2
- Include /usr/include/speex directory, thanks
Nils Philippsen.
* Thu Jul 29 2004 Colin Walters
- Update to 1.0.4.
- Include /usr/include/speex
- Include speex.pc
* Tue Jun 15 2004 Elliot Lee
- rebuilt
* Tue Mar 02 2004 Elliot Lee
- rebuilt
* Fri Feb 13 2004 Elliot Lee
- rebuilt
* Fri Dec 12 2003 Bill Nottingham 1.0.3-1
- build 1.0.3, adapt specfile from linva.org
* Thu Nov 20 2003 Dams 0:1.0.3-0.fdr.1
- Updated to 1.0.3
* Tue Sep 30 2003 Dams 0:1.0.2-0.fdr.1
- Updated to 1.0.2
* Mon Sep 15 2003 Dams 0:1.0.1-0.fdr.3
- README doc file is no more +x
* Tue Sep 9 2003 Dams 0:1.0.1-0.fdr.2
- Added missing scriplets (ldconfig)
* Sat Aug 16 2003 Dams
- Initial build.