%define name libao %define version 0.8.2 %define release 1 %define pluginver 2 Summary: Cross Platform Audio Output Library Name: %{name} Version: %{version} Release: %{release} Group: Libraries/Multimedia Copyright: GPL URL: http://www.xiph.org/ Vendor: Xiphophorus Source: ftp://ftp.xiph.org/pub/ao/%{name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-root Requires: esound >= 0.2.8 Prefix: %{_prefix} %description Libao is a cross platform audio output library. It currently supports ESD, aRts, ALSA, OSS, *BSD and Solaris. %package devel Summary: Cross Platform Audio Output Library Development Group: Development/Libraries %description devel The libao-devel package contains the header files and documentation needed to develop applications with libao. %prep %setup -q -n %{name}-%{version} %build if [ ! -f configure ]; then CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh --prefix=%{_prefix} else CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{_prefix} fi make %install [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT make DESTDIR=$RPM_BUILD_ROOT install %files %defattr(-,root,root) %doc AUTHORS %doc CHANGES %doc COPYING %doc README %{_libdir}/libao.so.* %{_libdir}/ao/plugins-%{pluginver}/*.so %files devel %doc doc/*.html %doc doc/*.css %doc doc/ao_example.c %{_includedir}/ao/ao.h %{_includedir}/ao/os_types.h %{_includedir}/ao/plugin.h %{_libdir}/libao.so %{_datadir}/aclocal/ao.m4 %clean [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT %post /sbin/ldconfig %postun /sbin/ldconfig %changelog * Tue Dec 18 2001 Jack Moffitt - Update for 0.8.2 release. * Sun Oct 07 2001 Jack Moffitt - supports configurable prefixes * Sun Oct 07 2001 Stan Seibert - devel packages look for correct documentation files - added ao/plugin.h include file to devel package - updated package description * Sun Sep 03 2000 Jack Moffitt - initial spec file created