diff --git a/python-slixmpp.changes b/python-slixmpp.changes index d164b68..5691dca 100644 --- a/python-slixmpp.changes +++ b/python-slixmpp.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Tue Aug 14 19:41:39 UTC 2018 - sor.alexei@meowr.ru + +- Update to version 1.4.0: + * No changelog available. +- Use python-rpm-macros. + ------------------------------------------------------------------- Fri Jul 20 11:22:06 UTC 2018 - mcepl@suse.com diff --git a/python-slixmpp.spec b/python-slixmpp.spec index 05693ab..430359a 100644 --- a/python-slixmpp.spec +++ b/python-slixmpp.spec @@ -16,10 +16,11 @@ # +%define skip_python2 1 %define _name slixmpp -%define _tar_ver 123 +%define _tar_ver 127 Name: python-slixmpp -Version: 1.3.0 +Version: 1.4.0 Release: 0 Summary: Python XMPP (Jabber) Library that Implements Everything as a Plugin License: MIT @@ -28,53 +29,43 @@ 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: %{python_module Cython} +BuildRequires: %{python_module devel >= 3.5} +BuildRequires: %{python_module dnspython} +BuildRequires: %{python_module xml} BuildRequires: fdupes BuildRequires: gnupg BuildRequires: pkgconfig -BuildRequires: python3 >= 3.4 -BuildRequires: python3-Cython -BuildRequires: python3-dnspython -BuildRequires: python3-xml +BuildRequires: python-rpm-macros BuildRequires: pkgconfig(libidn) -BuildRequires: pkgconfig(python3) +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. -%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 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}-%{version} %patch0 -p1 %build export CFLAGS="%{optflags}" -python3 setup.py build +%python_build %install -python3 setup.py install \ - --root=%{buildroot} --prefix=%{_prefix} -%fdupes %{buildroot}%{python3_sitearch} +%python_install +%python_expand %fdupes -s %{buildroot}%{$python_sitearch}/ %check -# python3 run_tests.py -python3 -munittest discover -v -s tests +# %%python_exec run_tests.py +%python_exec -munittest discover -v -s tests -%files -n python3-%{_name} +%files %{python_files} %license LICENSE %doc README.rst -%{python3_sitearch}/%{_name}/ -%{python3_sitearch}/%{_name}-* +%{python_sitearch}/%{_name}/ +%{python_sitearch}/%{_name}-* %changelog diff --git a/slixmpp-1.3.0.tar.gz b/slixmpp-1.3.0.tar.gz deleted file mode 100644 index a9bcbe7..0000000 --- a/slixmpp-1.3.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ff61f40ab3d05754c0757f2793a60a1a2a1d45c7e241bda008e965bd43785eae -size 869065 diff --git a/slixmpp-1.4.0.tar.gz b/slixmpp-1.4.0.tar.gz new file mode 100644 index 0000000..581c9d6 --- /dev/null +++ b/slixmpp-1.4.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1dbb6f076355472c2673ac37a5e460f1d02fe312e6c11f3fa4d45a7119e243c0 +size 864967