%define package_name lib%{name} %define version 2.1.3 %define release %mkrel 1 %define major 4 %define libname %mklibname %{name} %{major} Name: musicbrainz Version: %{version} Release: %{release} Summary: A software library for accesing MusicBrainz servers Source: http://ftp.musicbrainz.org/pub/musicbrainz/%{package_name}-%{version}.tar.bz2 # (gb) 2.1.1-3mdk libtool fixes, don't bother with aclocal machinery #Patch1: libmusicbrainz-2.1.1-libtool.patch.bz2 # (misc) fix import for setup.py, from debian #Patch2: libmusicbrainz-2.1.2-python.diff.bz2 # (misc) fix ctypes on 64 bits #Patch3: libmusicbrainz-2.1.2-python-64bits.diff.bz2 URL: http://www.musicbrainz.org Group: Sound BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot License: LGPL BuildRequires: expat-devel python-ctypes BuildRequires: autoconf2.5 >= 2.58 BuildRequires: python-devel %description The MusicBrainz client library allows applications to make metadata lookup to a MusicBrainz server, generate signatures from WAV data and create CD Index Disk ids from audio CD roms. %package -n %{libname} Summary: A software library for accesing MusicBrainz servers Group: System/Libraries %description -n %{libname} The MusicBrainz client library allows applications to make metadata lookup to a MusicBrainz server, generate signatures from WAV data and create CD Index Disk ids from audio CD roms. %package -n %{libname}-devel Summary: Headers for developing programs that will use libmusicbrainz Group: Development/Other Requires: %{libname} = %{version}-%{release} Provides: %{name}-devel = %{version}-%{release} Provides: lib%{name}-devel = %{version}-%{release} %description -n %{libname}-devel This package contains the headers that programmers will need to develop applications which will use libmusicbrainz. %package -n python-%{name} Summary: Python binding to use libmusicbrainz Group: Development/Python %description -n python-%{name} Python binding to use libmusicbrainz. %prep %setup -q -n %{package_name}-%{version} #%patch1 -p0 -b .libtool autoconf #%patch2 -p1 -b .python #%patch3 -p0 -b .python64 %build %configure2_5x %make %install rm -rf $RPM_BUILD_ROOT #mkdir -p $RPM_BUILD_ROOT%{_libdir}/pkgconfig %makeinstall_std cd python python setup.py install --prefix=$RPM_BUILD_ROOT/%_prefix cd - %clean rm -rf $RPM_BUILD_ROOT %post -n %{libname} -p /sbin/ldconfig %postun -n %{libname} -p /sbin/ldconfig %files -n python-%{name} %defattr(-, root, root) %doc python/examples/ %{py_puresitedir}/* %files -n %{libname} %defattr(-, root, root) %doc AUTHORS COPYING ChangeLog README TODO INSTALL %{_libdir}/*.so.* %files -n %{libname}-devel %defattr(-, root, root) %{_includedir}/musicbrainz %{_libdir}/*.la %{_libdir}/*.a %{_libdir}/*.so %{_libdir}/pkgconfig/* %changelog * Thu Aug 24 2006 Emmanuel Andry <eandry@mandriva.org> 2.1.3-1mdv2007.0 - 2.1.3 - drop patches * Thu Mar 30 2006 Christiaan Welvaart <cjw@daneel.dyndns.org> 2.1.2-3mdk - add BuildRequires: python-devel * Mon Mar 06 2006 Michael Scherer <misc@mandriva.org> 2.1.2-2mdk - fix python module on 64 bits - add examples to python submodule * Mon Mar 06 2006 Michael Scherer <misc@mandriva.org> 2.1.2-1mdk - mkrel - 2.1.2 - put download url for rpmbuildupdate -add python subpackage - add debian patch for python subpackage ( without, setup doesn't work ) - rediff patch1 * Thu Aug 18 2005 Gwenole Beauchesne <gbeauchesne@mandriva.com> 2.1.1-3mdk - 64-bit & libtool fixes * Sun Jun 06 2004 Abel Cheung <deaddog@deaddog.org> 2.1.1-2mdk - Rebuild with new gcc - Add missing Buildrequires * Thu Apr 15 2004 Götz Waschk <waschk@linux-mandrake.com> 2.1.1-1mdk - increase major number - fix build - new version * Fri Feb 6 2004 Götz Waschk <waschk@linux-mandrake.com> 2.0.2-1mdk - new version * Thu Jul 10 2003 Götz Waschk <waschk@linux-mandrake.com> 2.0.1-4mdk - rebuild for new rpm * Wed May 28 2003 Götz Waschk <waschk@linux-mandrake.com> 2.0.1-3mdk - fix build with new automake * Mon Apr 14 2003 Götz Waschk <waschk@linux-mandrake.com> 2.0.1-2mdk - fix build - fix buildrequires * Thu Apr 10 2003 Frederic Crozat <fcrozat@mandrakesoft.com> - 2.0.1-1mdk - Release 2.0.1 * Wed Jan 29 2003 Lenny Cartier <lenny@mandrakesoft.com> 1.1.0-4mdk - rebuild * Wed Dec 11 2002 Olivier Thauvin <thauvin@aerov.jussieu.fr> 1.1.0-3mdk - rebuild against new gcc (ppc) * Thu May 30 2002 Lenny Cartier <lenny@mandrakesoft.com> 1.1.0-2mdk - rebuild against new gcc * Sun May 05 2002 Lenny Cartier <lenny@mandrakesoft.com> 1.1.0-1mdk - 1.1.0 * Wed Dec 12 2001 Lenny Cartier <lenny@mandrakesoft.com> 1.0.1-1mdk - 1.0.1 * Mon Jul 09 2001 Lenny Cartier <lenny@mandrakesoft.com> 1.0.0-2mdk - rebuild * Wed Apr 25 2001 Lenny Cartier <lenny@mandrakesoft.com> 1.0.0-1mdk - updated by Götz Waschk <waschk@linux-mandrake.com> : - 1.0.0 * Mon Jan 22 2001 Lenny Cartier <lenny@mandrakesoft.com> 1.0.0pre6-1mdk - rebuild - apply library policy * Thu Dec 21 2000 Lenny Cartier <lenny@mandrakesoft.com> 1.0.0pre1-2mdk - rebuild * Mon Sep 25 2000 Lenny Cartier <lenny@mandrakesoft.com> 1.0.0pre1-1mdk - new in contribs * Fri Sep 22 2000 Robert Kaye <rob@emusic.com> 1.0.0pre1 - First attempt to create a spec file for this library