%define name libid3tag %define version 0.15.1b %define release 3mdk %define major 0 %define lib_name %mklibname id3tag %{major} Summary: Library for reading and writing ID3v1 and ID3v2 tags Name: %{name} Version: %{version} Release: %{release} Source0: http://prdownloads.sourceforge.net/mad/%{name}-%{version}.tar.bz2 Source1: id3tag.pc.bz2 License: GPL Group: Sound URL: http://www.underbit.com/products/mad/ BuildRoot: %_tmppath/%name-%version-%release-root BuildRequires: zlib-devel %description A library for reading and (eventually) writing ID3 tags, both ID3v1 and the various versions of ID3v2. %package -n %{lib_name} Summary: Library for reading and writing ID3v1 and ID3v2 tags Group: System/Libraries Provides: lib%{name} = %{version}-%{release} %description -n %{lib_name} A library for reading and (eventually) writing ID3 tags, both ID3v1 and the various versions of ID3v2. %package -n %{lib_name}-devel Summary: Development tools for programs which will use the %{name} library. Group: Development/C Requires: %{lib_name} = %{version} Requires: zlib-devel Requires: pkgconfig Provides: %{name}-devel = %{version}-%{release} Provides: lib%{name}-devel = %{version}-%{release} Obsoletes: %{name}-devel %description -n %{lib_name}-devel The %{name}-devel package includes the header files and static libraries necessary for developing programs using the %{name} library. If you are going to develop programs which will use the %{name} library you should install %{name}-devel. You'll also need to have the %name package installed. %prep %setup -q %build %define __libtoolize true %configure2_5x %make %install rm -rf %buildroot %makeinstall # this is an invalid locale dir rm -rf %buildroot/%{_datadir}/locale/en %find_lang %{name} mkdir -p %buildroot/%_libdir/pkgconfig bzcat %SOURCE1 | sed -e 's,/lib\>,/%{_lib},;s,0.14.2b,%{version},' >%buildroot/%_libdir/pkgconfig/id3tag.pc %clean rm -fr %buildroot %post -n %{lib_name} -p /sbin/ldconfig %postun -n %{lib_name} -p /sbin/ldconfig %files -n %{lib_name} %defattr(-,root,root,-) %doc COPYING %{_libdir}/*.so.* %files -n %{lib_name}-devel %defattr(-,root,root) %doc COPY* README TODO CHANGES CREDITS %{_libdir}/*.la %{_libdir}/*.a %{_libdir}/*.so %_libdir/pkgconfig/* %{_includedir}/* %changelog * Fri Oct 1 2004 Gwenole Beauchesne <gbeauchesne@mandrakesoft.com> 0.15.1b-3mdk - lib64 fixes to pkgconfig files * Tue Jun 03 2004 Laurent Montel <waschk@mandrakesoft.com> 0.15.1b-2mdk - Rebuild * Mon May 10 2004 Götz Waschk <waschk@linux-mandrake.com> 0.15.1b-1mdk - spec fix - don't libtoolize - fix source URL - New release 0.15.1b * Wed Jul 9 2003 Götz Waschk <waschk@linux-mandrake.com> 0.15.0b-4mdk - rebuild for new rpm * Thu Jun 26 2003 Götz Waschk <waschk@linux-mandrake.com> 0.15.0b-2mdk - update doc section - fix pkgconfig file - update URL * Thu Jun 26 2003 Götz Waschk <waschk@linux-mandrake.com> 0.15.0b-1mdk - autoconf2.5 macro - new version - split out from the main mad package * Wed May 21 2003 Götz Waschk <waschk@linux-mandrake.com> 0.14.2b-6mdk - rebuild for provides * Sun May 4 2003 Götz Waschk <waschk@linux-mandrake.com> 0.14.2b-5mdk - devel package requires zlib-devel - devel package requires pkgconfig - mklibname macro * Mon Oct 21 2002 Götz Waschk <waschk@linux-mandrake.com> 0.14.2b-4mdk - arrgh, also add mad.pc * Mon Oct 21 2002 Götz Waschk <waschk@linux-mandrake.com> 0.14.2b-3mdk - add id3tag.pc from debian package (required by xmms-mad) * Thu Jul 18 2002 Lenny Cartier <lenny@mandrakesoft.com> 0.14.2b-2mdk - add .la files * Sat Jan 26 2002 Yves Duret <yduret@mandrakesoft.com> 0.14.2b-1mdk - spec mandrakificazion: macros, standard libificazion, macros * Sat Nov 10 2001 Götz Waschk <waschk@linux-mandrake.com> 0.14.2b-0.1mdk - 0.14.2b * Wed Nov 7 2001 Götz Waschk <waschk@linux-mandrake.com> 0.14.1b-0.1mdk - 0.14.1b - build shared library * Fri Oct 19 2001 Lenny Cartier <lenny@mandrakesoft.com> 0.14.0b-0.1mdk - 0.14.0b * Mon Sep 10 2001 Lenny Cartier <lenny@mandrakesoft.com> 0.13.0-0.b1mdk - added by Götz Waschk <waschk@linux-mandrake.com> : - initial package #EOF