File telepathy-butterfly.spec of Package telepathy-butterfly
#
# spec file for package telepathy-butterfly (Version 0.5.1)
#
# Copyright (c) 2009 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.1
Release: 1
License: GPL v2 or later
Summary: MSN (butterfly) connection manager for Telepathy
Url: http://telepathy.freedesktop.org/wiki/
Group: Productivity/Networking/Instant Messenger
Source0: %{name}-%{version}.tar.bz2
BuildRequires: fdupes
BuildRequires: python
Requires: papyon
Requires: python-telepathy
# For directory ownership:
BuildRequires: dbus-1
Requires: dbus-1
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%py_requires
%description
Butterfly is a connection manager for Telepathy that provide support for
MSN, via the papyon library.
%prep
%setup -q
%build
# PYTHONDIR is to work-around a waf bug that ignores libdir for python
export PYTHONDIR=%{py_sitedir}
# configure macro fails to work because waf does not support --host
./configure \
--prefix=%{_prefix} \
--libdir=%{_libdir} \
--libexecdir=%{_libdir}
%__make %{?jobs:-j%jobs}
%install
%makeinstall
%fdupes %{buildroot}/%{py_sitedir}
%clean
%{__rm} -rf %{buildroot}
%files
%defattr(-, root, root)
%doc AUTHORS COPYING NEWS
%{_libdir}/telepathy-butterfly
%{_datadir}/dbus-1/services/org.freedesktop.Telepathy.ConnectionManager.butterfly.service
%dir %{_datadir}/telepathy
%dir %{_datadir}/telepathy/managers
%{_datadir}/telepathy/managers/butterfly.manager
%{py_sitedir}/butterfly
%changelog