Sophie

Sophie

distrib > Mandriva > 10.0 > i586 > by-pkgid > ec9cd3f9a9fbaac392da65ff0ea8aae7 > files > 3

speex-1.1.4-1mdk.src.rpm

%define name     speex
%define mdkversion		%(perl -pe '/(\\d+)\\.(\\d)\\.?(\\d)?/; $_="$1$2".($3||0)' /etc/mandrake-release)
%define major 1
%if %mdkversion <= 900
%define libname lib%name%major
%else
%define libname	 %mklibname %name %major
%endif
%define ver      1.1.4
%define rel      1mdk

Summary: An open-source, patent-free speech codec
Name: %name
Version: %ver
Release: %rel
License: BSD
Group: Sound
Source: http://www.speex.org/download/%{name}-%{ver}.tar.bz2
Patch0: speex-1.0.1-lib64.patch.bz2
URL: http://www.speex.org/
BuildRoot: %_tmppath/%{name}-build-root
BuildRequires: libogg-devel
#gw if patched
BuildRequires: autoconf2.5

%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 %libname
Summary: Shared library of the Speex codec
Group: System/Libraries

%description -n %libname
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.

This package contains the shared library required for running
applications based on Speex.

%package -n %libname-devel
Summary:	Speex development files
Group:		Development/C
Requires:	%{libname} = %{version}-%release
Provides:	libspeex-devel = %version-%release

%description -n %libname-devel
Speex development files.

%package -n %libname-static-devel
Summary:	Speex static library 
Group:		Development/C
Requires:	%{libname}-devel = %{version}-%release
Provides:	libspeex-static-devel = %{version}-%{release}

%description -n %libname-static-devel
Speex static library for developing applications based on Speex.

%prep
%setup -q
%patch0 -p1 -b .lib64
autoconf

%build
export CFLAGS='%optflags -DRELEASE'
%define __libtoolize true
%configure2_5x
%make

%install
rm -rf $RPM_BUILD_ROOT
%makeinstall_std
rm -f %buildroot%_datadir/doc/manual.pdf

%clean
rm -rf %buildroot

%post -n %libname -p /sbin/ldconfig
%postun -n %libname -p /sbin/ldconfig

%files
%defattr(644,root,root,755)
%doc COPYING AUTHORS ChangeLog NEWS README
/usr/share/man/man1/speexenc.1*
/usr/share/man/man1/speexdec.1*
%attr(755,root,root) %{_bindir}/speex*

%files -n %libname
%attr(755,root,root) %{_libdir}/libspeex*.so.*

%files -n %libname-devel
%defattr(644,root,root,755)
%doc doc/manual.pdf
%{_libdir}/libspeex*.la
%{_libdir}/libspeex*.so
%{_includedir}/speex*.h

%files -n %libname-static-devel
%defattr(644,root,root,755)
%{_libdir}/libspeex*.a

%changelog
* Thu Jan 22 2004 Götz Waschk <waschk@linux-mandrake.com> 1.1.4-1mdk
- don't run libtoolize
- fix buildrequires
- use the autoconf2.5 macro
- new version

* Fri Jan  2 2004 Götz Waschk <waschk@linux-mandrake.com> 1.1.3-1mdk
- use the mdkversion macro
- new version

* Tue Nov 11 2003 Götz Waschk <waschk@linux-mandrake.com> 1.1.2-1mdk
- new version

* Tue Nov  4 2003 Götz Waschk <waschk@linux-mandrake.com> 1.1-1mdk
- drop merged patch 1
- new version

* Fri Sep  5 2003 Gwenole Beauchesne <gbeauchesne@mandrakesoft.com> 1.0.1-5mdk
- lib64 & 64-bit fixes

* Sat Aug  2 2003 Götz Waschk <waschk@linux-mandrake.com> 1.0.1-4mdk
- fix my previous package 

* Sat Aug  2 2003 Götz Waschk <waschk@linux-mandrake.com> 1.0.1-3mdk
- allow backport to mdk 9.0

* Wed Jul  9 2003 Götz Waschk <waschk@linux-mandrake.com> 1.0.1-2mdk
- rebuild for new rpm

* Thu Jun  5 2003 Götz Waschk <waschk@linux-mandrake.com> 1.0.1-1mdk
- new version

* Mon Mar 24 2003 Götz Waschk <waschk@linux-mandrake.com> 1.0-1mdk
- new major version
- drop the patch
- new version

* Mon Mar  3 2003 Götz Waschk <waschk@linux-mandrake.com> 1.0-0.rc3.1mdk
- new version

* Wed Jan 29 2003 Götz Waschk <waschk@linux-mandrake.com> 1.0-0.rc2.2mdk
- remove obsolete configure options
- move manual to devel package

* Wed Jan 29 2003 Götz Waschk <waschk@linux-mandrake.com> 1.0-0.%{pre}.1mdk
- buildrequires libogg-devel

* Wed Jan 29 2003 Götz Waschk <waschk@linux-mandrake.com> 1.0-0.rc2.1mdk
- new version

* Fri Jan 17 2003 Götz Waschk <waschk@linux-mandrake.com> 1.0-0.rc1.1mdk
- new version

* Sat Dec 21 2002 Götz Waschk <waschk@linux-mandrake.com> 1.0-0.beta4.1mdk
- new version

* Thu Dec 12 2002 Götz Waschk <waschk@linux-mandrake.com> 1.0-0.beta3.1mdk
- initial Mandrake package

* Thu Oct 03 2002 Jean-Marc Valin 
- Added devel package inspired from PLD spec file

* Tue Jul 30 2002 Fredrik Rambris <boost@users.sourceforge.net> 0.5.2
- Added buildroot and docdir and ldconfig. Makes it builadble by non-roots
  and also doesn't write to actual library paths when building.