14
0
Alexei Sorokin
2018-08-14 20:43:38 +00:00
committed by Git OBS Bridge
parent 7cd7a6dc86
commit 160e8c88ed
4 changed files with 28 additions and 30 deletions

View File

@@ -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