Sophie

Sophie

distrib > Mageia > 2 > i586 > media > core-release-src > by-pkgid > cb4240d011cabb5137d7290198f339d0 > files > 5

id3lib-3.8.3-20.mga2.src.rpm

%define name    id3lib
%define version 3.8.3
%define release %mkrel 20

%define api 3.8
%define major 3
%define libname %mklibname id3_ %{api} %{major}
%define develname %mklibname -d id3
%define staticdevel %mklibname -d -s id3

Name:		%{name}
Version:	%{version}
Release:	%{release}
Epoch:		1
Summary:	A software library for manipulating ID3v1 and ID3v2 tags
Source:         http://download.sourceforge.net/id3lib/%{name}-%version.tar.bz2
Patch0:		id3lib-3.8.2-doxygen.patch
Patch1:		patch_id3lib_3.8.3_UTF16_writing_bug.diff
Patch2:		id3lib-3.8.3-CVE-2007-4460.patch
Patch3:		id3lib-3.8.3-includes.patch
URL:		http://id3lib.sourceforge.net
Group:		Sound
License:	LGPL
Obsoletes:      id3lib-examples
Provides:	id3lib-examples
BuildRequires:  doxygen
BuildRequires:	zlib-devel

%description
This package provides a software library for manipulating ID3v1 and ID3v2 tags.
It provides a convenient interface for software developers to include 
standards-compliant ID3v1/2 tagging capabilities in their applications.  
Features include identification of valid tags, automatic size conversions, 
(re)synchronisation of tag frames, seamless tag (de)compression, and optional
padding facilities.
Included are some simple command line example applications.

%package -n %{libname}
Summary: Id3lib libraries
Group: System/Libraries

%description -n %{libname}
This package provides a software library for manipulating ID3v1 and ID3v2 tags.

%package -n %{staticdevel}
Summary: Id3lib static libraries
Requires: %{develname} = %{epoch}:%{version}-%release
Group: Development/C++
Obsoletes: %{_lib}id3_3.8_3-static-devel < %{epoch}:%{version}-%release

%description -n %{staticdevel}
This package provides a software library for manipulating ID3v1 and
ID3v2 tags. It contains the static library of id3lib.

%package	-n %{develname}
Summary:	Headers for developing programs that will use id3lib
Group:		Development/C++
Requires:       %{libname} = %{epoch}:%{version}-%release
Obsoletes:      id3lib-doc
Provides:	libid3-devel = %{epoch}:%version-%release
Provides:	libid3lib-devel = %{epoch}:%version-%release , id3lib-doc
Provides:	id3lib-devel = %{epoch}:%version-%release
#for rpmlint
Provides:	libid3lib3.8-devel = %{epoch}:%version-%release
Provides:	libid3_3.8-devel = %{epoch}:%version-%release
Obsoletes:	%{_lib}id3_3.8_3-devel < %{epoch}:%{version}-%release

%description	-n %{develname}
This package contains the headers that programmers will need to develop
applications which will use id3lib, the software library for ID3v1 and ID3v2
tag manipulation.

%prep
%setup -q
%patch0 -p0
%patch1 -p1
%patch2 -p1
%patch3 -p1
(mkdir -p doc/examples
cd examples
cp *.cpp *.c *.h *.tag *.jpg *.mp3 ../doc/examples
)

%build
%configure2_5x
%make libid3_la_LIBADD="-lstdc++ -lz"
%make docs

%install
rm -rf %{buildroot}
%makeinstall_std

rm -f %buildroot%_libdir/*.la

%clean
rm -rf %{buildroot}

%files
%defattr(-, root, root)
%doc AUTHORS HISTORY NEWS README THANKS TODO
%{_bindir}/*

%files -n %{libname}
%defattr(-, root, root)
%doc README COPYING
%{_libdir}/libid3-%{api}.so.%{major}
%{_libdir}/libid3-%{api}.so.%{major}.*

%files -n %{develname}
%defattr(-, root, root)
%doc ChangeLog doc/*.html doc/*gif doc/*.txt doc/*.jpg doc/*.ico doc/*.css
%doc doc/api doc/examples
%{_includedir}/id3*.h
%{_includedir}/id3
%{_libdir}/*.so

%files -n %{staticdevel}
%defattr(-, root, root)
%{_libdir}/*.a


%changelog
* Fri Aug 12 2011 fwang <fwang> 1:3.8.3-20.mga2
+ Revision: 132800
- update file list
- do not ship .la files
- use correct develname policy

* Thu Jan 13 2011 ahmad <ahmad> 1:3.8.3-19.mga1
+ Revision: 7852
- drop old/unneeded scriptlets
- imported package id3lib