File python3-sleekxmpp.spec of Package python3-sleekxmpp.6241
#
# spec file for package python3-sleekxmpp
#
# 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/
#
%define _name sleekxmpp
Name: python3-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-fix-dnspython.patch sor.alexei@meowr.ru -- Fix compatibility with recent dnspython.
Patch0: %{_name}-fix-dnspython.patch
# PATCH-FIX-OPENSUSE sleekxmpp-fix-legacyauth.patch nyov@nexnode.net -- Fix an error in legacyauth support.
Patch1: %{_name}-fix-legacyauth.patch
# PATCH-FIX-OPENSUSE sleekxmpp-check-roster-push-origin.patch bsc#1014976 mathieui@mathieui.net -- Check origin of roster pushes (slixmpp commits ffdb6ff, ffd9436).
Patch2: %{_name}-check-roster-push-origin.patch
BuildRequires: python3
BuildRequires: python3-dnspython
BuildRequires: python3-xml
Requires: python3-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
%patch2 -p1
%build
python3 setup.py build
%install
python3 setup.py install \
--root=%{buildroot} --prefix=%{_prefix}
%files
%defattr(-,root,root)
%doc LICENSE README.rst
%{python3_sitelib}/%{_name}/
%{python3_sitelib}/%{_name}-*
%changelog