Sophie

Sophie

distrib > Mandriva > 10.0-com > i586 > by-pkgid > cae297be6ef5e7eea70aed5267bbf73c > files > 2

libcddb-0.9.4-2mdk.src.rpm

%define name libcddb
%define version 0.9.4
%define release 2mdk

%define major 0
%define buildfor_mdk90  %(awk '{print ($4 == "9.0")}' %{_sysconfdir}/mandrake-release)
%if %buildfor_mdk90
%define libname %name%major
%else
%define libname %mklibname cddb %{major}
%endif

Name: %name
Version: %version
Release: %release
License: LGPL
Group: System/Libraries
URL: http://libcddb.sourceforge.net/
Source: %name-%version.tar.bz2
BuildRoot: %_tmppath/%name-buildroot
Summary: CDDB access library

%description 
Libcddb is a library that implements the different protocols (CDDBP,
HTTP, SMTP) to access data on a CDDB server (http://freedb.org).  It
tries to be as cross-platform as possible.  The initial libary will
have a C API.


%package -n %{libname}
Summary: Libraries from libdv
Group: System/Libraries

%description -n %{libname}
Libcddb is a library that implements the different protocols (CDDBP,
HTTP, SMTP) to access data on a CDDB server (http://freedb.org).  It
tries to be as cross-platform as possible.  The initial libary will
have a C API.

%package -n %{libname}-devel
Summary: Devel files from libcddb
Group: Development/C
Requires: %{libname} = %version-%release
Provides: %name-devel = %version-%release 
Requires: pkgconfig

%description -n %{libname}-devel
Libcddb is a library that implements the different protocols (CDDBP,
HTTP, SMTP) to access data on a CDDB server (http://freedb.org).  It
tries to be as cross-platform as possible.  The initial libary will
have a C API.

This is the libraries, include files and other resources you can use
to incorporate libcddb into applications.

%package -n %libname-static-devel 
Summary: Static Library for developing applications with %name.
Group: Development/C
Requires: %libname-devel = %version-%release

%description -n %libname-static-devel
This contains the static library of %name needed for building apps that
link statically to %name.

%package apps
Summary: Example applications based on %name.
Group: Sound

%description apps
Libcddb is a library that implements the different protocols (CDDBP,
HTTP, SMTP) to access data on a CDDB server (http://freedb.org).  It
tries to be as cross-platform as possible.  The initial libary will
have a C API.

This package contains a command line client based on %name.

%prep
rm -rf $RPM_BUILD_ROOT
%setup -q

%build
%configure2_5x
%make

%install
rm -rf %buildroot
%makeinstall_std

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

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

%files apps
%defattr (- ,root,root)
%_bindir/*

%files -n %{libname}
%defattr (- ,root,root)
%_libdir/*.so.*

%files -n %{libname}-devel
%defattr(-, root, root)
%doc ChangeLog COPYING README AUTHORS NEWS INSTALL TODO
%_includedir/cddb
%_libdir/*.so
%_libdir/*.la
%_libdir/pkgconfig/*.pc

%files -n %libname-static-devel
%defattr(-,root,root)
%{_libdir}/lib*.a

%clean
rm -rf ${RPM_BUILD_ROOT}

%changelog
* Wed Jul  9 2003 Götz Waschk <waschk@linux-mandrake.com> 0.9.4-2mdk
- rebuild for new rpm

* Thu Jun  5 2003 Götz Waschk <waschk@linux-mandrake.com> 0.9.4-1mdk
- add apps subpackage
- add pkgconfig file
- new version

* Mon May 26 2003 Götz Waschk <waschk@linux-mandrake.com> 0.9.3-1mdk
- new version

* Fri May 23 2003 Götz Waschk <waschk@linux-mandrake.com> 0.9.2-1mdk
- initial package