File python-telepathy.spec of Package python-telepathy

#
# spec file for package python-telepathy (Version 0.15.19)
#
# Copyright (c) 2010 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:           python-telepathy
%define _name   telepathy-python
Version:        0.15.19
Release:        2
License:        LGPLv2.1+
Summary:        Python library for Telepathy
Url:            http://telepathy.freedesktop.org/wiki/Telepathy%20Python
Group:          Development/Libraries/Python
Source0:        %{_name}-%{version}.tar.bz2
# PATCH-FIX-UPSTREAM python-telepathy-no_double_errors-py.patch fdo#32526 dimstar@opensuse.org -- Do no install error.py twice. Patch from upstream git, commit 8c4e6e.
Patch0:         python-telepathy-no_double_errors-py.patch
BuildRequires:  fdupes
BuildRequires:  libxslt
BuildRequires:  python
Requires:       dbus-1-python
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%if 0%{suse_version} > 1110
BuildArch:      noarch
%endif
%py_requires
%if %suse_version <= 1110
%define python_sitelib %{py_sitedir}
%endif

%description
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.

%prep
%setup -q -n %{_name}-%{version}
%patch0 -p1

%build
%configure

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

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(-, root, root)
%doc AUTHORS COPYING NEWS README examples/
%{python_sitelib}/telepathy

%changelog
openSUSE Build Service is sponsored by