diff --git a/.cvsignore b/.cvsignore index 0dfd111..fb13127 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1,2 +1 @@ -libao-0.8.5.tar.gz -libao-0.8.6.tar.gz +libao-0.8.8.tar.gz diff --git a/ao.req b/ao.req index f4be78b..f1c9219 100755 --- a/ao.req +++ b/ao.req @@ -3,5 +3,6 @@ filelist=`sed "s/['\"]/\\\&/g"` { echo $filelist | tr [:blank:] \\n | /usr/lib/rpm/find-requires | \ - grep -v artsc | grep -v esd | grep -v audiofile | grep -v asound + grep -v artsc | grep -v esd | grep -v audiofile | grep -v asound | \ + grep -v libpulse } | sort -u diff --git a/libao.spec b/libao.spec index 88118d2..c1f8c28 100644 --- a/libao.spec +++ b/libao.spec @@ -1,14 +1,17 @@ -Summary: Cross Platform Audio Output Library. -Name: libao -Version: 0.8.6 -Release: 5%{?dist} -Group: System Environment/Libraries -License: GPL -URL: http://www.xiph.org/ -Source: http://www.xiph.org/ogg/vorbis/download/libao-%{version}.tar.gz -Source1: ao.req -BuildRoot: %{_tmppath}/%{name}-%{version}-root -BuildPrereq: esound-devel >= 0.2.8, arts-devel, alsa-lib-devel +Name: libao +Version: 0.8.8 +Release: 2%{?dist} +Summary: Cross Platform Audio Output Library +Group: System Environment/Libraries +License: GPLv2+ +URL: http://xiph.org/ao/ +Source0: http://downloads.xiph.org/releases/ao/%{name}-%{version}.tar.gz +Source1: ao.req +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildRequires: esound-devel >= 0.2.8 +BuildRequires: arts-devel +BuildRequires: alsa-lib-devel +BuildRequires: pulseaudio-lib-devel %define _use_internal_dependency_generator 0 %define __find_requires %{SOURCE1} @@ -16,28 +19,35 @@ BuildPrereq: esound-devel >= 0.2.8, arts-devel, alsa-lib-devel Libao is a cross platform audio output library. It currently supports ESD, OSS, Solaris, and IRIX. -%package devel -Summary: Cross Platform Audio Output Library Development. -Group: Development/Libraries -Requires: libao = %{version}-%{release} + +%package devel +Summary: Development files for %{name} +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} +Requires: pkgconfig # needed because of disabled internal dependency generator. sheesh -Requires: %{_libdir}/libao.so.2 +Requires: %{_libdir}/libao.so.2 %description devel -The libao-devel package contains the header files and documentation -needed to develop applications with libao. +The %{name}-devel package contains libraries and header files for +developing applications that use %{name}. + %prep %setup -q -perl -p -i -e "s/-O20/$RPM_OPT_FLAGS/" configure -perl -p -i -e "s/-ffast-math//" configure +sed -i "s/-O20/$RPM_OPT_FLAGS/" configure +sed -i "s/-ffast-math//" configure # 216108 -perl -p -i -e "s/= -version-info/= -export-symbols-regex '^ao_.*' -version-info/" src/Makefile.in +sed -i "s/= -version-info/= -export-symbols-regex '^ao_.*' -version-info/" src/Makefile.in + %build -%configure --enable-alsa09 -make +%configure +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 @@ -46,29 +56,45 @@ make DESTDIR=$RPM_BUILD_ROOT install # remove unpackaged files from the buildroot find $RPM_BUILD_ROOT -name '*.la' -exec rm -rf {} \; + +%clean +rm -rf $RPM_BUILD_ROOT + + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + + %files -%defattr(-,root,root) +%defattr(-,root,root,-) %doc AUTHORS CHANGES COPYING README %{_libdir}/libao.so.* %{_libdir}/ao %{_mandir}/man5/* %files devel -%defattr(-,root,root) -%doc doc/* +%defattr(-,root,root,-) +%doc doc/*.html doc/*.c doc/*.css %{_includedir}/ao %{_libdir}/libao.so %{_libdir}/pkgconfig/ao.pc %{_datadir}/aclocal/ao.m4 -%clean -[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT - -%post -p /sbin/ldconfig - -%postun -p /sbin/ldconfig %changelog +* Wed Nov 14 2007 Hans de Goede - 0.8.8-2 +- Fix multilib conflict (bz 341891) +- Fix Source0 en URL urls + +* Wed Nov 7 2007 Julian Sikorski - 0.8.8-1 +- Updated to 0.8.8 (bz 316731) +- Cleaned up the SPEC +- Added PulseAudio support +- Made build parallel +- Killed rpaths +- Changed the kludges to use sed + * Thu Aug 23 2007 Adam Jackson - 0.8.6-5 - Rebuild for build ID diff --git a/sources b/sources index 0668ecc..1443052 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -12e136a4c0995068ff134997c84421ed libao-0.8.6.tar.gz +b92cba3cbcf1ee9bc221118a85d23dcd libao-0.8.8.tar.gz