Sophie

Sophie

distrib > Mandriva > 10.2 > x86_64 > by-pkgid > 746bc4c2e97570aced41d8c802b1d4f7 > files > 2

libid3-1.0-2mdk.src.rpm

%define	name	libid3
%define	version	1.0

%define	major	0
%define libname	%mklibname id3_ %{major}

Summary:	ID3 Parsing Library
Name:		%{name}
Version:	%{version}
Release:	%mkrel 2
Group:		System/Libraries
License:	BSD-like
URL:		http://www.tangent.org/
Source0:	http://download.tangent.org/%{name}-%{version}.tar.bz2
BuildRoot:	%{_tmppath}/%{name}-%{version}-root

%description
Library for parsing ID3 tags from files or sections of memory.

%package -n	%{libname}
Summary:	ID3 Parsing Library
Group:          System/Libraries

%description -n	%{libname}
Library for parsing ID3 tags from files or sections of memory.

%package -n	%{libname}-devel
Summary:	Static library and header files for the ID3 Parsing Library
Group:		Development/C
Obsoletes:	%{name}-devel
Provides:	%{name}-devel
Conflicts:	libid3_3.8-devel
Requires:	%{libname} = %{version}

%description -n	%{libname}-devel
Library for parsing ID3 tags from files or sections of memory.

This package contains the static libid3 library and its header
files.

%package	tools
Summary:	Tools using the ID3 Parsing Library
Group:		Sound

%description	tools
This package contains various files using the ID3 Parsing Library.

%prep

%setup -q -n %{name}-%{version}

%build

%configure2_5x

%make

# make the man pages
pod2man Docs/libID3.pod > libID3.3
pod2man Docs/tagpuller.pod > tagpuller.1

%install
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}

install -d %{buildroot}%{_mandir}/man{1,3}

%makeinstall_std

install -m0755 test/.libs/id3test %{buildroot}%{_bindir}/

install -m0644 libID3.3 %{buildroot}%{_mandir}/man3/
install -m0644 tagpuller.1 %{buildroot}%{_mandir}/man1/

%post -n %{libname} -p /sbin/ldconfig

%postun -n %{libname} -p /sbin/ldconfig

%clean
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}

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

%files -n %{libname}-devel
%defattr(-,root,root)
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/*.a
%{_libdir}/*.la
%{_mandir}/man3/*

%files tools
%defattr(-,root,root)
%{_bindir}/tagpuller
%{_bindir}/id3test
%{_mandir}/man1/*

%changelog
* Sat Mar 19 2005 Oden Eriksson <oeriksson@mandrakesoft.com> 1.0-2mdk
- use the %%mkrel macro
- added a conflict for the devel sub package conflicts with 
  libid3_3.8-devel

* Mon Feb 07 2005 Oden Eriksson <oeriksson@mandrakesoft.com> 1.0-1mdk
- initial Mandrakelinux package