File telepathy-gabble.spec of Package telepathy-gabble.openSUSE_12.1_Update

#
# spec file for package telepathy-gabble
#
# Copyright (c) 2013 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:           telepathy-gabble
Version:        0.13.7
Release:        0
Summary:        XMPP connection manager for Telepathy
License:        LGPL-2.1+
Group:          Productivity/Networking/Instant Messenger
Url:            http://telepathy.freedesktop.org/wiki/
Source:         http://telepathy.freedesktop.org/releases/telepathy-gabble/%{name}-%{version}.tar.gz
# PATCH-FIX-UPSTREAM telepathy-gabble-cve-2013-1769.patch bnc#807449 hpj@opensuse.org -- Fix remote DoS vulnerability CVE-2013-1769.
Patch0:         telepathy-gabble-cve-2013-1769.patch
BuildRequires:  dbus-1-glib-devel
BuildRequires:  libgnutls-devel
BuildRequires:  libnice-devel
BuildRequires:  libsoup-devel
BuildRequires:  libxslt-devel
BuildRequires:  python-xml
BuildRequires:  sqlite3-devel
BuildRequires:  telepathy-glib-devel >= 0.15.9
Recommends:     ca-certificates
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Gabble is a Jabber/XMPP connection manager for the Telepathy framework,
currently supporting single user chats, multi user chats and
voice/video calls. Install this package to use Telepathy instant
messaging clients with Jabber/XMPP servers, including Google Talk.

%package doc
Summary:        XMPP connection manager for Telepathy (documentation)
Group:          Documentation/Other
Requires:       %{name} = %{version}

%description doc
Gabble is a Jabber/XMPP connection manager for the Telepathy framework,
currently supporting single user chats, multi user chats and
voice/video calls. Install this package to use Telepathy instant
messaging clients with Jabber/XMPP servers, including Google Talk.

This package contain the documentation.

%prep
%setup -q
%patch0 -p1

%build
%configure \
        --disable-static \
        --docdir=%{_docdir}/%{name} \
        --with-ca-certificates=%{_sysconfdir}/ssl/ca-bundle.pem
make %{?jobs:-j %jobs}

%install
%makeinstall
find %{buildroot} -type f -name "*.la" -delete -print
cp AUTHORS ChangeLog COPYING %{buildroot}%{_docdir}/%{name}

%clean
rm -rf %{buildroot}

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr (-,root,root)
%dir %{_datadir}/telepathy
%dir %{_datadir}/telepathy/managers
%dir %{_libdir}/telepathy
%{_libdir}/telepathy/gabble-0/
%{_libexecdir}/telepathy-gabble
%{_datadir}/dbus-1/services/org.freedesktop.Telepathy.ConnectionManager.gabble.service
%{_datadir}/telepathy/managers/gabble.manager
%{_mandir}/man8/telepathy-gabble.8.gz

%files doc
%defattr (-,root,root)
%{_docdir}/%{name}/

%changelog
openSUSE Build Service is sponsored by