%define name libsndfile %define version 1.0.13 %define release 1 Summary: A library to handle various audio file formats. Name: %{name} Version: %{version} Release: %{release} Copyright: LGPL Group: Libraries/Sound Source: http://www.mega-nerd.com/libsndfile/libsndfile-%{version}.tar.gz URL: http://www.mega-nerd.com/libsndfile/ BuildRoot: %{_tmppath}/%{name}-%{version}-root %description libsndfile is a C library for reading and writing sound files such as AIFF, AU and WAV files through one standard interface. It can currently read/write 8, 16, 24 and 32-bit PCM files as well as 32-bit and 64-bit floating point WAV files and a number of compressed formats. It compiles and runs on *nix, MacOS, and Win32. %package devel Summary: Libraries, includes, etc to develop libsndfile applications Group: Libraries %description devel libsndfile is a C library for reading and writing sound files such as AIFF, AU, WAV, and others through one standard interface. This package contains files needed to develop with libsndfile. %prep %setup -q %build export CC=xlc export CFLAGS="-O2" ./configure --prefix=%{_prefix} --disable-static --enable-shared make %install [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT make DESTDIR=$RPM_BUILD_ROOT install %clean [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,system) %doc AUTHORS COPYING ChangeLog INSTALL NEWS README TODO doc %{_bindir}/* %{_mandir}/man1/* %{_libdir}/libsndfile.a %{_datadir}/octave/site/m/* %{_datadir}/doc/libsndfile1-dev/html/* %files devel %defattr(-,root,system) %{_libdir}/libsndfile.la %{_libdir}/pkgconfig/sndfile.pc %{_includedir}/sndfile.h %changelog * Tue Jan 24 2006 Michael Perzl - 1.0.13-1 - first version for AIX V5.1 and higher