commit f8fa797952975d346e1edac75d75829110cc02a46f3e2edc780026193c4a84fe Author: Tomáš Chvátal Date: Mon Jan 22 16:17:45 2018 +0000 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 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/python-slixmpp.changes b/python-slixmpp.changes new file mode 100644 index 0000000..f36d66b --- /dev/null +++ b/python-slixmpp.changes @@ -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. diff --git a/python-slixmpp.spec b/python-slixmpp.spec new file mode 100644 index 0000000..394f7ed --- /dev/null +++ b/python-slixmpp.spec @@ -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 diff --git a/slixmpp-1.3.0.tar.gz b/slixmpp-1.3.0.tar.gz new file mode 100644 index 0000000..a9bcbe7 --- /dev/null +++ b/slixmpp-1.3.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ff61f40ab3d05754c0757f2793a60a1a2a1d45c7e241bda008e965bd43785eae +size 869065 diff --git a/slixmpp-fix-legacyauth.patch b/slixmpp-fix-legacyauth.patch new file mode 100644 index 0000000..94b8e0f --- /dev/null +++ b/slixmpp-fix-legacyauth.patch @@ -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.')