File libmpd.spec of Package libmpd

#
# spec file for package libmpd
#
# Copyright (c) 2011 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/
#



Name:           libmpd
Version:        0.20.0
Release:        1
License:        GPLv2+
Summary:        Client Library to the Music Player Daemon
Url:            http://gmpc.wikia.com/wiki/Gnome_Music_Player_Client
Group:          System/Libraries
Source:         libmpd-0.20.0.tar.bz2
Patch0:         libmpd-overflow.patch
BuildRequires:  pkgconfig(glib-2.0)
BuildRequires:  doxygen
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%define libname libmpd1

%description
libmpd is a library that provides high-level, callback-based access to Music
Player Daemon.

%package -n %libname

Summary:        The libmpd package
Group:          System/Libraries

%description -n %libname
libmpd is a library that provides high-level, callback-based access to Music
Player Daemon.

%package devel
License:        GPLv2+
Summary:        The libmpd development package
Group:          Development/Languages/C and C++
Requires:       %libname = %version

%description devel
libmpd is a library that provides high-level, callback-based access to Music
Player Daemon.

This package provides the API documentation and development files needed to
develop applications based on libmpd.


%prep
%setup -q
%patch0

%build
%configure --disable-static
make %{?_smp_mflags}
make doc

%install
%make_install
rm -f %{buildroot}%{_libdir}/%{name}.la

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

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

%clean
rm -rf %{buildroot}

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

%files devel
%defattr(-,root,root,-)
%doc ChangeLog COPYING doc/html
%{_includedir}/*
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/*.pc

%changelog
openSUSE Build Service is sponsored by