14
0
Files
python-slixmpp/python-slixmpp.spec

71 lines
2.1 KiB
RPMSpec
Raw Normal View History

#
# spec file for package python-slixmpp
#
Accepting request 1032088 from home:yarunachalam:branches:devel:languages:python - Update to version 1.8.2 - Improve error handling for certificate errors - Add an XEP-0454 implementation (OMEMO Media sharing) - Fix support for RFC 3920 sessions - Update to version 1.8.1 * Fix a mypy issue, a test issue, and do not enable defusedxml unless explicitly asked. - Update to version 1.8.0 * The most important part of this release is that it fixes compatibility with python 3.10, but there are also plenty of changes and bugfixes! Many XEPs have been modified to accomodate an internal change, and as a result their public APIs have been modified. Slixmpp has an "internal API" for plugins, inherited from SleekXMPP which allows users of the library to substitute internal functions with their own, in order to e.g. provide a different storage backend (many default to in-memory), etc. This API has always been synchronous, which is not ideal in an asyncio library, and puts huge limits on what is possible to do. This change makes it possible to use async functions with the internal API, and as a result it forces us to change XEPs using this API to async in the relevant methods. As a rule of thumb, thin wrappers around del/set are generally preserved and return a future to guarantee that the task is done, while getters (which would require awaiting anyway when returning a future) are now pure coroutines. This inconsistency is a tradeoff to prevent wider changes across slixmpp internals and programs using it. - XEP-0012, Last Activity: - `begin_idle`, `end_idle`, `start_uptime`, `set_last_activity`, `del_last_activity` now return futures. - XEP-0027: GPG - `get_keyids` and `get_keyid` are now coroutines. - `set_keyid` and `del_keyid` now return a Future. OBS-URL: https://build.opensuse.org/request/show/1032088 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-slixmpp?expand=0&rev=18
2022-10-29 16:46:11 +00:00
# Copyright (c) 2022 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 skip_python36 1
%define _name slixmpp
Name: python-slixmpp
Accepting request 1032088 from home:yarunachalam:branches:devel:languages:python - Update to version 1.8.2 - Improve error handling for certificate errors - Add an XEP-0454 implementation (OMEMO Media sharing) - Fix support for RFC 3920 sessions - Update to version 1.8.1 * Fix a mypy issue, a test issue, and do not enable defusedxml unless explicitly asked. - Update to version 1.8.0 * The most important part of this release is that it fixes compatibility with python 3.10, but there are also plenty of changes and bugfixes! Many XEPs have been modified to accomodate an internal change, and as a result their public APIs have been modified. Slixmpp has an "internal API" for plugins, inherited from SleekXMPP which allows users of the library to substitute internal functions with their own, in order to e.g. provide a different storage backend (many default to in-memory), etc. This API has always been synchronous, which is not ideal in an asyncio library, and puts huge limits on what is possible to do. This change makes it possible to use async functions with the internal API, and as a result it forces us to change XEPs using this API to async in the relevant methods. As a rule of thumb, thin wrappers around del/set are generally preserved and return a future to guarantee that the task is done, while getters (which would require awaiting anyway when returning a future) are now pure coroutines. This inconsistency is a tradeoff to prevent wider changes across slixmpp internals and programs using it. - XEP-0012, Last Activity: - `begin_idle`, `end_idle`, `start_uptime`, `set_last_activity`, `del_last_activity` now return futures. - XEP-0027: GPG - `get_keyids` and `get_keyid` are now coroutines. - `set_keyid` and `del_keyid` now return a Future. OBS-URL: https://build.opensuse.org/request/show/1032088 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-slixmpp?expand=0&rev=18
2022-10-29 16:46:11 +00:00
Version: 1.8.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.bz2
# 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.7}
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
%pyunittest -v tests
%files %{python_files}
%license LICENSE
%doc README.rst
%{python_sitearch}/%{_name}/
%{python_sitearch}/%{_name}-*
%changelog