14
0
Files
python-slixmpp/python-slixmpp.spec
Alexei Sorokin f268c69a8c Accepting request 823374 from home:mcalabkova:branches:devel:languages:python
- update to 1.5.2
  * Add ids to presences and messages by default 
  * Fix various issues in connection/disconnection 
  * Code improvements (typing, deprecation warnings) 
  * Fix or improvements for some XEPS
  * New XEPs
  * Groundwork for the OMEMO (XEP-0384) plugin, which has been put 
    in a separate repository due to licensing issues.

OBS-URL: https://build.opensuse.org/request/show/823374
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-slixmpp?expand=0&rev=15
2020-07-29 11:52:25 +00:00

70 lines
2.1 KiB
RPMSpec

#
# spec file for package python-slixmpp
#
# Copyright (c) 2020 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
%define skip_python2 1
%define _name slixmpp
Name: python-slixmpp
Version: 1.5.2
Release: 0
Summary: Python XMPP (Jabber) Library that Implements Everything as a Plugin
License: MIT
URL: https://slixmpp.readthedocs.io/
Source: https://lab.louiz.org/poezio/slixmpp/-/archive/slix-%{version}/slixmpp-slix-%{version}.tar.gz
# PATCH-FIX-OPENSUSE slixmpp-fix-legacyauth.patch nyov@nexnode.net -- Fix an error in legacyauth support.
Patch0: %{_name}-fix-legacyauth.patch
BuildRequires: %{python_module Cython}
BuildRequires: %{python_module devel >= 3.5}
BuildRequires: %{python_module dnspython}
BuildRequires: %{python_module xml}
BuildRequires: fdupes
BuildRequires: gnupg
BuildRequires: pkgconfig
BuildRequires: python-rpm-macros
BuildRequires: pkgconfig(libidn)
Requires: python-aiohttp
Requires: python-dnspython
%python_subpackages
%description
Slixmpp is an XMPP library for Python. Based on SleekXMPP, it uses
asyncio instead of threads. XEP (XMPP Extended Protocol) coverage is
realized as plugins.
%prep
%setup -q -n %{_name}-slix-%{version}
%patch0 -p1
%build
export CFLAGS="%{optflags}"
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitearch}/
%check
%python_exec -m unittest discover -v -s tests
%files %{python_files}
%license LICENSE
%doc README.rst
%{python_sitearch}/%{_name}/
%{python_sitearch}/%{_name}-*
%changelog