%define xmms_inputdir %(xmms-config --input-plugin-dir 2>/dev/null || echo %{_libdir}/xmms/General) Summary: XMMS plugin needed to play FLAC (Free Lossless Audio Codec) files Name: xmms-flac Version: 1.1.2 Release: 0.%{mysig} License: GPL Group: Applications/Multimedia URL: http://flac.sourceforge.net/ Source: http://dl.sf.net/flac/flac-%{version}.tar.gz Patch0: flac-1.1.2-xmms.patch Patch1: flac-1.1.2-libtool.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: xmms-devel, libogg-devel, gettext-devel Buildrequires: autoconf, automake, libtool %description FLAC is a Free Lossless Audio Codec. The FLAC format supports streaming, seeking, and archival, and gives 25-75% compression on typical CD audio. This is the input plugin for XMMS to be able to read FLAC files. %prep %setup -n flac-%{version} %patch0 -p1 -b .xmms %patch1 -p1 -b .libtool autoreconf -i -f %build %configure --with-pic %{__make} %{?_smp_mflags} %install %{__rm} -rf %{buildroot} %{__install} -D -m 0755 src/plugin_xmms/.libs/libxmms-flac.so \ %{buildroot}%{xmms_inputdir}/libxmms-flac.so %clean %{__rm} -rf %{buildroot} %files %defattr(-, root, root, 0755) %doc COPYING.GPL %{xmms_inputdir}/libxmms-flac.so %changelog * Wed Sep 21 2005 Milan Kerslager 1.1.2-0.ker.rhel4 - rebuild for RHEL4 (package from FC4 Extras) * Sat May 28 2005 Matthias Saou 1.1.2-24 - Bump release to 24 since main Core flac obsoletes xmms-flac < 1.1.2-24. - Add patches from FC flac to fix libtool issues on x86_64. * Thu May 19 2005 Matthias Saou 1.1.2-2 - Add patch to fix memory double freeing issue (bz #157796). * Thu May 19 2005 Matthias Saou 1.1.2-1 - Initial RPM release since the plugin was disabled from the main flac in Core, because xmms was moved to Extras, thus no longer available at build time for Core packages. - Laziness has made me include the whole 1.4MB of FLAC sources, but if someone wants to provide a simple script to extract only the relevant sources in order to create a custom source package of the plugin only, that would be great!