File papyon.spec of Package papyon

#
# spec file for package papyon
#
# 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 http://bugs.opensuse.org/
#


Name:           papyon
Version:        0.5.6
Release:        0
Summary:        Python client library for the MSN protocol
License:        GPL-2.0+
Group:          Development/Libraries/Python
Url:            http://telepathy.freedesktop.org/wiki/Papyon
Source0:        http://www.freedesktop.org/software/papyon/releases/%{name}-%{version}.tar.gz
BuildRequires:  fdupes
BuildRequires:  python
BuildRequires:  python-crypto
BuildRequires:  python-gobject2
BuildRequires:  python-pyOpenSSL
BuildRequires:  python-xml
Requires:       python-crypto
Requires:       python-gobject2
Requires:       python-pyOpenSSL
Requires:       python-xml
# The package was named python-msn before
Provides:       python-msn = 0.3.3
Obsoletes:      python-msn < 0.3.3
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
papyon is an MSN client library, that tries to abstract the MSN protocol
gory details.

%prep
%setup -q

%build
%{__python} setup.py build

%install
%{__python} setup.py install --skip-build --root="%{buildroot}" --prefix="%{_prefix}"
%fdupes %{buildroot}/%{python_sitelib}

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

%files
%defattr(-, root, root)
%doc AUTHORS COPYING NEWS README
%{python_sitelib}/papyon/
%{python_sitelib}/*.egg-info

%changelog