File libcddb.spec of Package libcddb

#
# spec file for package libcddb (Version 1.3.0)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           libcddb
Version:        1.3.0
Release:        65
Url:            http://libcddb.sourceforge.net/
Group:          Productivity/Multimedia/Other
License:        LGPL v2.1 or later
Summary:        CDDB Access Library
Source:         %{name}-%{version}.tar.bz2
AutoReqProv:    on
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  pkgconfig
Patch0:         libcddb-1.3.0-no-examples.patch

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



Authors:
--------
    Kris Verbeeck <airborne@advalvas.be>

%package -n libcddb2
License:        LGPL v2.1 or later
Summary:        CDDB Access Library
Group:          Productivity/Multimedia/Other
Provides:       %{name} = %{version}
#opensuse 10.3
Obsoletes:      %{name} <= 1.3.0

%description -n libcddb2
Libcddb is a library that implements the different protocols (CDDBP,
HTTP, and SMTP) to access data on a CDDB server (http://freedb.org). It
tries to be as cross-platform as possible.



Authors:
--------
    Kris Verbeeck <airborne@advalvas.be>

%package devel
License:        LGPL v2.1 or later
Group:          Productivity/Multimedia/Other
Summary:        CDDB Access Library
Requires:       libcddb2 = %{version} glibc-devel

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



Authors:
--------
    Kris Verbeeck <airborne@advalvas.be>

%prep
%setup
%patch0

%build
autoreconf -fiv
%configure --disable-rpath --disable-static --with-pic
make %{?jobs:-j%jobs}

%install
make DESTDIR=$RPM_BUILD_ROOT install
%{__rm} -f %{buildroot}%{_libdir}/libcddb.la

%clean
rm -rf $RPM_BUILD_ROOT

%post -n libcddb2 -p /sbin/ldconfig

%postun -n libcddb2 -p /sbin/ldconfig

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

%files devel
%defattr (-, root, root)
%doc AUTHORS COPYING ChangeLog NEWS README THANKS TODO
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%dir %{_includedir}/cddb
%{_includedir}/cddb/*.h

%changelog
* Thu Nov 27 2008 ro@suse.de
- update baselibs.conf
* Thu Apr 10 2008 ro@suse.de
- added baselibs.conf file to build xxbit packages
  for multilib support
* Tue Oct 09 2007 crrodriguez@suse.de
- fix build using library packaging policy
- remove static libraries and useless libtool archive
- permanently break build loop by removing the example code that caused it
* Tue Sep 11 2007 sbrabec@suse.cz
- Break build loop libcddb -> libcdio -> libcddb.
* Fri Oct 20 2006 sbrabec@suse.cz
- Updated to version 1.3.0:
  * Support for the 'album' command of the freedb2.org.
  * Functions to set or reset some flags.
* Fri Oct 06 2006 sbrabec@suse.cz
- Updated to version 1.2.2:
  * Correct character set is specified when submitting data.
* Fri Jun 30 2006 sbrabec@suse.cz
- Fixed cyclic dependencies in a correct way.
* Thu Jun 22 2006 sbrabec@suse.cz
- Simpler solution of cyclic dependencies.
* Tue Jan 31 2006 sbrabec@suse.cz
- Enabled parallel build.
- Fixed devel splitting.
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Wed Oct 26 2005 sbrabec@suse.cz
- Build with libcdio-0.76.
* Fri Aug 05 2005 sbrabec@suse.cz
- Updated to version 1.2.1.
* Fri Jul 29 2005 sbrabec@suse.cz
- Updated to version 1.2.0.
* Mon May 09 2005 sbrabec@suse.cz
- Updated to version 1.0.2.
* Tue Apr 26 2005 sbrabec@suse.cz
- Updated to version 1.0.1.
* Tue Nov 09 2004 sbrabec@suse.cz
- New SuSE package, version 0.9.6.
openSUSE Build Service is sponsored by