File python-xmpppy.spec of Package python-xmpppy
#
# spec file for package python-xmpppy
#
# Copyright (c) 2016 SUSE LINUX 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-xmpppy
Version: 0.4.1
Release: 0
Summary: Jabber Library for Python
License: GNU General Public License (GPL)
Group: Development/Libraries/Python
# http://prdownloads.sourceforge.net/xmpppy/xmpppy-%{version}.tar.gz
Source: xmpppy-%{version}.tar.bz2
Patch0: python-xmpppy-deprecated.patch
Patch1: python-xmpppy-fix-issuer-problem.patch
Url: http://xmpppy.sourceforge.net/
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python
BuildRequires: python-devel
Requires: python-dnspython
Requires: python-xml
Provides: xmpppy = %{version}-%{release}
%if 0%{?suse_version} > 1110
BuildArch: noarch
%endif
%py_requires
%description
xmpppy is a Python library that is targeted to provide easy scripting with
Jabber. Similar projects are Twisted Words and jabber.py.
This library was not designed from scratch. It inherits some code from
jabberpy and have very similar API in many places. Though it is separate
project since it have almost completely different architecture and primarily
aims to work with jabberd2 - the new Open Source Jabber Server.
Authors:
--------
Norman Rasmussen <normanr@users.sourceforge.net>
%prep
%setup -q -n "xmpppy-%{version}"
%patch0 -p1
%patch1 -p1
%build
%__python ./setup.py build
%install
%__python ./setup.py install \
--prefix="%{_prefix}" \
--root="%{buildroot}" \
--record-rpm=files.lst
%clean
%__rm -rf "%{buildroot}"
%files -f files.lst
%defattr(-,root,root)
%doc ChangeLog README doc
%changelog