File python-telepathy.spec of Package python-telepathy

# spec file for package python-telepathy
# 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

Name:           python-telepathy
%define _name   telepathy-python
Version:        0.15.19
Release:        0
Summary:        Python library for Telepathy
License:        LGPL-2.1+
Group:          Development/Libraries/Python
Source0:        %{_name}-%{version}.tar.bz2
# PATCH-FIX-UPSTREAM python-telepathy-no_double_errors-py.patch fdo#32526 -- Do no install twice. Patch from upstream git, commit 8c4e6e.
Patch0:         python-telepathy-no_double_errors-py.patch
BuildRequires:  automake
BuildRequires:  fdupes
BuildRequires:  libxslt
BuildRequires:  python
Requires:       dbus-1-python
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%if 0%{suse_version} > 1110
BuildArch:      noarch
%if %suse_version <= 1110
%define python_sitelib %{py_sitedir}

The Telepathy project aims to provide a unified framework for all forms
of real time conversations, including instant messaging, IRC, voice
calls and video calls. It uses the DBus messaging system to provide a
simple interface for client applications, allowing them to quickly
benefit from Telepathy's functionality.

%setup -q -n %{_name}-%{version}
%patch0 -p1
# needed for patch0
autoreconf -fi


# We add examples/ as doc, so we don't want Makefiles in there.
rm examples/Makefile*
%fdupes %{buildroot}/%{python_sitelib}

%{__rm} -rf %{buildroot}

%defattr(-, root, root)