2017-09-01 16:36:11 +02:00
|
|
|
#
|
|
|
|
# spec file for package python-aiohttp
|
|
|
|
#
|
|
|
|
# Copyright (c) 2017 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/
|
|
|
|
|
|
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2017-09-08 19:34:31 +02:00
|
|
|
%define skip_python2 1
|
|
|
|
%bcond_without test
|
2017-09-01 16:36:11 +02:00
|
|
|
Name: python-aiohttp
|
|
|
|
Version: 2.2.5
|
|
|
|
Release: 0
|
|
|
|
License: Apache-2.0
|
2017-09-08 19:34:31 +02:00
|
|
|
Summary: Async http client/server framework (asyncio)
|
|
|
|
Url: https://github.com/aio-libs/aiohttp/
|
2017-09-01 16:36:11 +02:00
|
|
|
Group: Development/Languages/Python
|
|
|
|
Source: https://files.pythonhosted.org/packages/source/a/aiohttp/aiohttp-%{version}.tar.gz
|
2017-09-08 19:34:31 +02:00
|
|
|
BuildRequires: fdupes
|
2017-09-01 16:36:11 +02:00
|
|
|
BuildRequires: python-rpm-macros
|
2017-09-08 19:34:31 +02:00
|
|
|
BuildRequires: %{python_module devel}
|
2017-09-01 16:36:11 +02:00
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
%if %{with test}
|
2017-09-08 19:34:31 +02:00
|
|
|
BuildRequires: %{python_module async-timeout >= 1.2.0}
|
2017-09-01 16:36:11 +02:00
|
|
|
BuildRequires: %{python_module chardet}
|
|
|
|
BuildRequires: %{python_module gunicorn}
|
|
|
|
BuildRequires: %{python_module multidict >= 2.1.4}
|
|
|
|
BuildRequires: %{python_module pytest}
|
|
|
|
BuildRequires: %{python_module pytest-mock}
|
2017-09-08 19:34:31 +02:00
|
|
|
BuildRequires: %{python_module pytest-timeout}
|
2017-09-01 16:36:11 +02:00
|
|
|
BuildRequires: %{python_module yarl >= 0.11}
|
|
|
|
%endif
|
2017-09-08 19:34:31 +02:00
|
|
|
Requires: python-async-timeout >= 1.2.0
|
2017-09-01 16:36:11 +02:00
|
|
|
Requires: python-chardet
|
|
|
|
Requires: python-multidict >= 2.1.4
|
|
|
|
Requires: python-yarl >= 0.11
|
|
|
|
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
2017-09-08 19:34:31 +02:00
|
|
|
The aiohttp package is an async http client/server framework for Python.
|
2017-09-01 16:36:11 +02:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n aiohttp-%{version}
|
|
|
|
|
|
|
|
%build
|
|
|
|
export CFLAGS="%{optflags}"
|
|
|
|
%python_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%python_install
|
2017-09-08 19:34:31 +02:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
2017-09-01 16:36:11 +02:00
|
|
|
|
|
|
|
%if %{with test}
|
|
|
|
%check
|
|
|
|
%python_exec setup.py test
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%files %{python_files}
|
|
|
|
%defattr(-,root,root,-)
|
2017-09-08 19:34:31 +02:00
|
|
|
%doc CHANGES.rst CONTRIBUTORS.txt LICENSE.txt README.rst
|
|
|
|
%doc changes/
|
2017-09-01 16:36:11 +02:00
|
|
|
%{python_sitearch}/*
|
|
|
|
|
|
|
|
%changelog
|