%define name python-flac %define packname pyflac %define version 0.0.4 %define release 1mdk Name: %{name} Summary: Python access for FLAC audio files Version: %{version} Release: %{release} Source: http://www.sacredchao.net/~piman/software/%{packname}-%{version}.tar.bz2 URL: http://www.sacredchao.net/ License: GPL Group: Development/Python BuildRoot: %{_tmppath}/%{name}-buildroot BuildRequires: python-devel libflac-devel swig %description This module lets you encode or decode FLAC audio files, and edit the metadata (cue sheets or Vorbis comments) in them. It requires libFLAC. %prep %setup -q -n %packname-%version #sed -i -e 's|FLAC__metadata_object_vorbiscomment_entry_matches(self|FLAC__metadata_object_vorbiscomment_entry_matches(*self|g' flac/sw_metadata_wrap.c %install rm -rf $RPM_BUILD_ROOT make python setup.py install --root=%buildroot %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %doc README examples %_libdir/python*/site-packages/flac %changelog * Tue Oct 04 2005 Austin Acton <austin@mandriva.org> 0.0.4-1mdk - New release 0.0.4 * Sat Aug 13 2005 Austin Acton <austin@mandriva.org> 0.0.3-1mdk - initial package