14
0
Files
python-slixmpp/python-slixmpp.spec
Alexei Sorokin 6a6ce63ada Accepting request 664662 from home:jubalh:branches:devel:languages:python
- Change source URL from GH to https://lab.louiz.org as requested

- Update 1.4.1:
  * jid: Make property aliases proper aliases. 
  * stanzabase: Remove python2 legacy. 
  * fixing uncaught async exceptions due to missing await 
  * XEP-0363: Add a domain argument to discover an upload service
  * XEP-0363: Also check for disco#info’s feature
  * XEP-0030: Don’t call the timeout_callback on each domain
  * Decode bytes in GSSAPI handling, as expected by the kerberos module API
- Update source URL
- Add requires python3-aiohttp: was needed for XEP-0363 since 1.4.0

OBS-URL: https://build.opensuse.org/request/show/664662
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-slixmpp?expand=0&rev=9
2019-01-11 14:07:10 +00:00

73 lines
2.2 KiB
RPMSpec

#
# spec file for package python-slixmpp
#
# Copyright (c) 2019 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 skip_python2 1
%define _name slixmpp
%define _tar_ver 127
Name: python-slixmpp
Version: 1.4.1
Release: 0
Summary: Python XMPP (Jabber) Library that Implements Everything as a Plugin
License: MIT
Group: Development/Languages/Python
URL: https://slixmpp.readthedocs.io/
Source: https://lab.louiz.org/poezio/slixmpp/-/archive/slix-1.4.1/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 -s %{buildroot}%{$python_sitearch}/
%check
# %%python_exec run_tests.py
%python_exec -munittest discover -v -s tests
%files %{python_files}
%license LICENSE
%doc README.rst
%{python_sitearch}/%{_name}/
%{python_sitearch}/%{_name}-*
%changelog