File loudmouth.spec of Package loudmouth
#
# spec file for package loudmouth
#
# Copyright (c) 2012 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: loudmouth
Version: 1.4.3
Release: 0
Summary: Jabber Client Library Written in C
License: LGPL-2.1+
Group: Productivity/Networking/Other
Url: http://www.loudmouth-project.org/
#Source: http://ftp.imendio.com/pub/imendio/%{name}/src/%{name}-%{version}.tar.bz2
# Source without URL, as coolo's script does not like the fact that upstream server is broken...
Source: %{name}-%{version}.tar.bz2
# PATCH-FIX-UPSTREAM loudmouth-fix-sasl-md5-digest-uri.patch vuntz@opensuse.org -- Taken from Debian, fix sasl md5 digest URI
Patch0: loudmouth-fix-sasl-md5-digest-uri.patch
# PATCH-FIX-UPSTREAM loudmouth-fix-async-resolving.patch vuntz@opensuse.org -- Taken from Debian, don't check for sync dns failures when using asyncns
Patch1: loudmouth-fix-async-resolving.patch
# PATCH-FIX-UPSTREAM loudmouth-drop-stanzas-on-fail.patch vuntz@opensuse.org -- Taken from Debian, ignore stanza that can't be parsed
Patch2: loudmouth-drop-stanzas-on-fail.patch
# PATCH-FIX-UPSTREAM loudmouth-use-pkg-config-for-gnutls.patch vuntz@opensuse.org -- Taken from Debian, use pkg-config to detect gnutls
Patch3: loudmouth-use-pkg-config-for-gnutls.patch
# PATCH-FIX-UPSTREAM loudmouth-glib.patch dimstar@opensuse.org -- Fix build with glib 2.31: only glib.h can be included.
Patch4: loudmouth-glib.patch
BuildRequires: check-devel
%if 0%{?suse_version} > 1210
BuildRequires: libgnutls-devel
%else
BuildRequires: gnutls-devel
%endif
BuildRequires: gtk-doc
BuildRequires: libtool
BuildRequires: sgml-skel
BuildRequires: pkgconfig(glib-2.0)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%define debug_package_requires libloudmouth-1-0 = %{version}-%{release}
%description
Loudmouth is a lightweight and easy-to-use C library for programming
with the Jabber protocol. It is designed to be easy to get started with
and yet extensible to let you do anything the Jabber protocol allows.
%package -n libloudmouth-1-0
Summary: Jabber Client Library Written in C
Group: Productivity/Networking/Other
%description -n libloudmouth-1-0
Loudmouth is a lightweight and easy-to-use C library for programming
with the Jabber protocol. It is designed to be easy to get started with
and yet extensible to let you do anything the Jabber protocol allows.
%package devel
Summary: Jabber Client Library Written in C
Group: Productivity/Networking/Other
Requires: glibc-devel
Requires: gnutls-devel
Requires: libloudmouth-1-0 = %{version}
Requires: pkgconfig(glib-2.0)
%description devel
Loudmouth is a lightweight and easy-to-use C library for programming
with the Jabber protocol. It's designed to be easy to get started with
and yet extensible to let you do anything the Jabber protocol allows.
%package doc
Summary: Jabber Client Library Written in C
Group: Productivity/Networking/Other
Requires: libloudmouth-1-0 = %{version}
%description doc
Loudmouth is a lightweight and easy-to-use C library for programming
with the Jabber protocol. It's designed to be easy to get started with
and yet extensible to let you do anything the Jabber protocol allows.
%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%build
autoreconf -f -i
%configure\
--disable-static\
--enable-gtk-doc
make %{?_smp_mflags}
%install
%make_install
find %{buildroot} -type f -name "*.la" -delete -print
%clean
rm -rf %{buildroot}
%post -n libloudmouth-1-0 -p /sbin/ldconfig
%postun -n libloudmouth-1-0 -p /sbin/ldconfig
%files -n libloudmouth-1-0
%defattr (-, root, root)
%doc AUTHORS CONTRIBUTORS COPYING ChangeLog NEWS README
%{_libdir}/*.so.*
%files devel
%defattr (-, root, root)
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%{_includedir}/loudmouth-1.0
%files doc
%defattr (-, root, root)
%{_datadir}/gtk-doc/html/loudmouth
%changelog