File telepathy-butterfly.spec of Package telepathy-butterfly

#
# spec file for package telepathy-butterfly (Version 0.5.15)
#
# 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:           telepathy-butterfly
Version:        0.5.15
Release:        2
License:        GPLv2+
Summary:        MSN (butterfly) connection manager for Telepathy
Url:            http://telepathy.freedesktop.org/wiki/
Group:          Productivity/Networking/Instant Messenger
Source0:        %{name}-%{version}.tar.bz2
# PATCH-FIX-UPSTREAM telepathy-butterfly-bad-import.patch dimstar@opensuse.org -- Remove bad import. Taken from upstream git, commit18b44d
Patch0:         telepathy-butterfly-bad-import.patch
BuildRequires:  fdupes
BuildRequires:  python
Requires:       papyon
Requires:       python-libproxy
Requires:       python-telepathy
# For directory ownership:
BuildRequires:  dbus-1
Requires:       dbus-1
# This is highly advised by upstream, as some mess with logs appears
# otherwise. Empathy 2.29.92 has all the infrastructure needed to
# spare us from the bug reports.
Conflicts:      empathy < 2.29.92
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%py_requires
%if %suse_version <= 1110
%define python_sitelib %{py_sitedir}
%define python_sitearch %{py_sitedir}
%else
BuildArch:      noarch
%endif

%description
Butterfly is a connection manager for Telepathy that provide support for
MSN, via the papyon library.

%prep
%setup -q
%patch0 -p1

%build
%configure
%__make %{?jobs:-j%jobs}

%install
%makeinstall
%fdupes %{buildroot}/%{python_sitelib}

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

%files
%defattr(-, root, root)
%doc AUTHORS COPYING NEWS
%{_datadir}/dbus-1/services/org.freedesktop.Telepathy.ConnectionManager.butterfly.service
%dir %{_datadir}/telepathy
%dir %{_datadir}/telepathy/managers
%{_datadir}/telepathy/managers/butterfly.manager
%{_libexecdir}/telepathy-butterfly
%{python_sitelib}/butterfly

%changelog
openSUSE Build Service is sponsored by