# # spec file for package speex (Version 1.1.99.91) # # Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild Name: speex %define package_version 1.2rc1 BuildRequires: libogg-devel pkgconfig Summary: An Open Source, Patent Free Speech Codec Version: 1.1.999_%package_version Release: 1 License: BSD 3-Clause Group: System/Libraries Url: http://www.speex.org/ Source: %{name}-%{package_version}.tar.bz2 Source2: baselibs.conf Patch1: speex-1.0.5-warning-fix.diff BuildRoot: %{_tmppath}/%{name}-%{version}-build # bug437293 %ifarch ppc64 Obsoletes: speex-64bit %endif # %description Speex is a patent free audio codec designed especially for voice (unlike Vorbis which targets general audio) signals and providing good narrowband and wideband quality. This project aims to be complementary to the Vorbis codec. %package -n libspeex1 Summary: An Open Source, Patent Free Speech Codec Library License: BSD 3-Clause Group: System/Libraries Obsoletes: libspeex < %version Provides: libspeex = %version %description -n libspeex1 Speex is a patent free audio codec designed especially for voice (unlike Vorbis which targets general audio) signals and providing good narrowband and wideband quality. This project aims to be complementary to the Vorbis codec. %package -n libspeexdsp1 Summary: An Open Source, Patent Free Speech Codec Library License: BSD 3-Clause Group: System/Libraries %description -n libspeexdsp1 Speex is a patent free audio codec designed especially for voice (unlike Vorbis which targets general audio) signals and providing good narrowband and wideband quality. This project aims to be complementary to the Vorbis codec. # XXX: not sure whether to call it libspeex-devel as it includes # devel files for libspeexdsp too. having libspeexdsp-devel seems # extreme. %package devel Summary: Development package for SpeeX License: BSD 3-Clause Group: Development/Libraries/C and C++ Provides: libspeex-devel = %version-%release Obsoletes: libspeex-devel < %version-%release Requires: libspeex1 = %version Requires: libspeexdsp1 = %version Requires: glibc-devel Requires: libogg-devel # bug437293 %ifarch ppc64 Obsoletes: speex-devel-64bit %endif # %description devel This package contains the files needed to compile programs that use the SpeeX library. %prep %setup -q -n %{name}-%{package_version} %patch1 %build autoreconf -fi %configure \ --disable-static \ --with-ogg-libraries=%{_libdir} make %{?jobs:-j%{jobs}} %install %makeinstall # remove duped documents rm -rf %{buildroot}%{_datadir}/doc/speex* # remove unneeded *.la files rm -f %{buildroot}%{_libdir}/*.la rm -f %{buildroot}%{_libdir}/*.a %post -n libspeex1 -p /sbin/ldconfig %postun -n libspeex1 -p /sbin/ldconfig %post -n libspeexdsp1 -p /sbin/ldconfig %postun -n libspeexdsp1 -p /sbin/ldconfig %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %doc AUTHORS ChangeLog COPYING NEWS README TODO %doc doc/*.pdf %{_bindir}/speex* %{_mandir}/man?/* %files -n libspeex1 %defattr(-,root,root) %{_libdir}/libspeex.so.* %files -n libspeexdsp1 %defattr(-,root,root) %{_libdir}/libspeexdsp.so.* %files devel %defattr(-,root,root) %doc doc/manual.pdf %{_includedir}/* %{_libdir}/lib*.so %{_libdir}/pkgconfig/*.pc %{_datadir}/aclocal/*.m4 %changelog