forked from pool/python-slixmpp
Accepting request 568205 from home:XRevan86
OBS-URL: https://build.opensuse.org/request/show/568205 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-slixmpp?expand=0&rev=1
This commit is contained in:
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.osc
|
40
python-slixmpp.changes
Normal file
40
python-slixmpp.changes
Normal file
@@ -0,0 +1,40 @@
|
||||
-------------------------------------------------------------------
|
||||
Sat Jan 20 21:14:18 UTC 2018 - sor.alexei@meowr.ru
|
||||
|
||||
- Update to version 1.3.0:
|
||||
* Implement XEP-0300: Use of Cryptographic Hash Functions in XMPP.
|
||||
* Return a Future on clientxmpp.get_roster().
|
||||
* Fix custom stanza examples.
|
||||
* Fix the HTTP over XMPP and GTalk examples.
|
||||
* xmlstream: Warn when the parser is None when data is received.
|
||||
* Add an XMPP classifier to setup.py.
|
||||
* sasl: Merge two bytes instead of concatenating them at runtime.
|
||||
* Fix the port being set to 0 when connecting via hostname.
|
||||
* Pass SSL context to plain TLS connections.
|
||||
* xmlstream: Remove pygments dumping.
|
||||
* XEP-0319: Use the correct timezone.
|
||||
* Update RSM for asyncio.
|
||||
* Update the MAM plugin for asyncio and the new namespace.
|
||||
And add an example.
|
||||
* XEP-0054: Fix parsing the BINVAL element.
|
||||
* Record the current connection attempt in a future and allow
|
||||
cancellation.
|
||||
* Add a Markup plugin.
|
||||
- Add the missing requirement of GnuPG.
|
||||
- Enable tests.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Feb 11 23:12:47 UTC 2017 - sor.alexei@meowr.ru
|
||||
|
||||
- Update to version 1.2.4:
|
||||
* Test more things before trying to build our stringprep module.
|
||||
* XMLStream: Break a long line to make it more readable.
|
||||
* Check for XML parsing errors and disconnect in that case.
|
||||
* Add missing asyncio.coroutine decorators.
|
||||
* Fix a partially-merged Google plugin from the commit acc52fd.
|
||||
* Fix an issue with carbons (CVE-2017-5589, bsc#1024690).
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Dec 10 09:12:08 UTC 2016 - sor.alexei@meowr.ru
|
||||
|
||||
- Initial package.
|
78
python-slixmpp.spec
Normal file
78
python-slixmpp.spec
Normal file
@@ -0,0 +1,78 @@
|
||||
#
|
||||
# spec file for package python-slixmpp
|
||||
#
|
||||
# Copyright (c) 2018 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 slixmpp
|
||||
%define _tar_ver 123
|
||||
Name: python-slixmpp
|
||||
Version: 1.3.0
|
||||
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://dev.louiz.org/attachments/download/%{_tar_ver}/%{_name}-%{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: gnupg
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: python3 >= 3.4
|
||||
BuildRequires: python3-Cython
|
||||
BuildRequires: python3-dnspython
|
||||
BuildRequires: python3-xml
|
||||
BuildRequires: pkgconfig(libidn)
|
||||
BuildRequires: pkgconfig(python3)
|
||||
|
||||
%description
|
||||
Slixmpp 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 protocolling, etc.
|
||||
|
||||
%package -n python3-%{_name}
|
||||
Summary: Python XMPP (Jabber) Library that Implements Everything as a Plugin
|
||||
Group: Development/Languages/Python
|
||||
Requires: gnupg
|
||||
Requires: python3-dnspython
|
||||
|
||||
%description -n python3-%{_name}
|
||||
Slixmpp 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 protocolling, etc.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{_name}-%{version}
|
||||
%patch0 -p1
|
||||
|
||||
%build
|
||||
export CFLAGS="%{optflags}"
|
||||
python3 setup.py build
|
||||
|
||||
%install
|
||||
python3 setup.py install \
|
||||
--root=%{buildroot} --prefix=%{_prefix}
|
||||
|
||||
%check
|
||||
python3 run_tests.py
|
||||
|
||||
%files -n python3-%{_name}
|
||||
%doc LICENSE README.rst
|
||||
%{python3_sitearch}/%{_name}/
|
||||
%{python3_sitearch}/%{_name}-*
|
||||
|
||||
%changelog
|
3
slixmpp-1.3.0.tar.gz
Normal file
3
slixmpp-1.3.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:ff61f40ab3d05754c0757f2793a60a1a2a1d45c7e241bda008e965bd43785eae
|
||||
size 869065
|
11
slixmpp-fix-legacyauth.patch
Normal file
11
slixmpp-fix-legacyauth.patch
Normal file
@@ -0,0 +1,11 @@
|
||||
--- a/slixmpp/plugins/xep_0078/legacyauth.py
|
||||
+++ b/slixmpp/plugins/xep_0078/legacyauth.py
|
||||
@@ -106,7 +106,7 @@ class XEP_0078(BasePlugin):
|
||||
stream_id = bytes(self.xmpp.stream_id, encoding='utf-8')
|
||||
password = bytes(self.xmpp.password, encoding='utf-8')
|
||||
|
||||
- digest = hashlib.sha1(b'%s%s' % (stream_id, password)).hexdigest()
|
||||
+ digest = hashlib.sha1('%s%s' % (stream_id, password)).hexdigest()
|
||||
iq['auth']['digest'] = digest
|
||||
else:
|
||||
log.warning('Authenticating via jabber:iq:auth Plain.')
|
Reference in New Issue
Block a user