File python-sleekxmpp.spec of Package python-sleekxmpp
#
# spec file for package python-sleekxmpp
#
# Copyright (c) 2017 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/
#
%define _name sleekxmpp
Name: python-sleekxmpp
Version: 1.3.1
Release: 0
Summary: Python XMPP (Jabber) Library that Implements Everything as a Plugin
License: MIT
Group: Development/Languages/Python
Url: https://github.com/fritzy/SleekXMPP
Source: https://files.pythonhosted.org/packages/source/s/%{_name}/%{_name}-%{version}.tar.gz
# PATCH-FIX-OPENSUSE sleekxmpp-check-roster-push-origin.patch bsc#1014976 mathieui@mathieui.net -- Check origin of roster pushes (slixmpp commits ffdb6ff, ffd9436).
Patch0: %{_name}-check-roster-push-origin.patch
# PATCH-FIX-OPENSUSE sleekxmpp-fix-carbons.patch bsc#1024690 mathieui@mathieui.net -- Fix an issue with carbons (slixmpp commit 22664ee).
Patch1: %{_name}-fix-carbons.patch
BuildRequires: python
BuildRequires: python-dnspython
BuildRequires: python-xml
Requires: python-dnspython
BuildArch: noarch
%description
SleekXMPP is an MIT licensed XMPP library for Python. The goals of
the project are ease of implementation, and complete draft XEP
(XMPP Extended Protocol) coverage. Ideally the community will be
able to use this for bots, easy XEP protocoling, etc.
%prep
%setup -q -n %{_name}-%{version}
%patch0 -p1
%patch1 -p1
%build
python2 setup.py build
%install
python2 setup.py install \
--root=%{buildroot} --prefix=%{_prefix}
%files
%defattr(-,root,root)
%doc LICENSE README.rst
%{python_sitelib}/%{_name}/
%{python_sitelib}/%{_name}-*
%changelog