OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-aiohttp?expand=0&rev=3
This commit is contained in:
parent
862fe6a645
commit
28a5b7ef90
@ -16,39 +16,61 @@
|
|||||||
|
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
%define skip_python2 1
|
|
||||||
%bcond_without test
|
%bcond_without test
|
||||||
|
%define skip_python2 1
|
||||||
Name: python-aiohttp
|
Name: python-aiohttp
|
||||||
Version: 2.2.5
|
Version: 2.2.5
|
||||||
Release: 0
|
Release: 0
|
||||||
License: Apache-2.0
|
License: Apache-2.0
|
||||||
Summary: Async http client/server framework (asyncio)
|
Summary: Async http client/server framework
|
||||||
Url: https://github.com/aio-libs/aiohttp/
|
Url: https://aiohttp.readthedocs.io/
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
Source: https://files.pythonhosted.org/packages/source/a/aiohttp/aiohttp-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/a/aiohttp/aiohttp-%{version}.tar.gz
|
||||||
BuildRequires: fdupes
|
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
BuildRequires: %{python_module devel}
|
BuildRequires: %{python_module devel >= 3.4.2}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
|
# SECTION test requirements
|
||||||
%if %{with test}
|
%if %{with test}
|
||||||
BuildRequires: %{python_module async-timeout >= 1.2.0}
|
BuildRequires: %{python_module async_timeout >= 1.2.0}
|
||||||
BuildRequires: %{python_module chardet}
|
BuildRequires: %{python_module chardet}
|
||||||
BuildRequires: %{python_module gunicorn}
|
BuildRequires: %{python_module gunicorn}
|
||||||
BuildRequires: %{python_module multidict >= 2.1.4}
|
BuildRequires: %{python_module multidict >= 2.1.4}
|
||||||
|
BuildRequires: %{python_module pytest-timeout}
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
BuildRequires: %{python_module pytest-mock}
|
BuildRequires: %{python_module pytest-mock}
|
||||||
BuildRequires: %{python_module pytest-timeout}
|
|
||||||
BuildRequires: %{python_module yarl >= 0.11}
|
BuildRequires: %{python_module yarl >= 0.11}
|
||||||
%endif
|
%endif
|
||||||
Requires: python-async-timeout >= 1.2.0
|
# /SECTION
|
||||||
|
# SECTION docs
|
||||||
|
BuildRequires: python3-Sphinx
|
||||||
|
BuildRequires: python3-sphinxcontrib-asyncio
|
||||||
|
BuildRequires: python3-sphinxcontrib-newsfeed
|
||||||
|
# /SECTION
|
||||||
|
BuildRequires: fdupes
|
||||||
|
Requires: python >= 3.4.2
|
||||||
|
Requires: python-async_timeout >= 1.2.0
|
||||||
Requires: python-chardet
|
Requires: python-chardet
|
||||||
Requires: python-multidict >= 2.1.4
|
Requires: python-multidict >= 2.1.4
|
||||||
Requires: python-yarl >= 0.11
|
Requires: python-yarl >= 0.11
|
||||||
|
Recommends: python-cChardet
|
||||||
|
Recommends: python-aiodns
|
||||||
|
Suggests: %{name}-doc
|
||||||
|
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
|
%package -n %{name}-doc
|
||||||
|
Summary: Documentation files for %name
|
||||||
|
Group: Documentation/HTML
|
||||||
|
|
||||||
%description
|
%description
|
||||||
The aiohttp package is an async http client/server framework for Python.
|
Asyncronic HTTP client/server framework for Python.
|
||||||
|
|
||||||
|
- Supports both client and server side of HTTP protocol.
|
||||||
|
- Supports both client and server Web-Sockets out-of-the-box.
|
||||||
|
- Web-server has middlewares and pluggable routing.
|
||||||
|
|
||||||
|
%description -n %{name}-doc
|
||||||
|
HTML documentation on the API and examples for %name.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n aiohttp-%{version}
|
%setup -q -n aiohttp-%{version}
|
||||||
@ -56,10 +78,16 @@ The aiohttp package is an async http client/server framework for Python.
|
|||||||
%build
|
%build
|
||||||
export CFLAGS="%{optflags}"
|
export CFLAGS="%{optflags}"
|
||||||
%python_build
|
%python_build
|
||||||
|
pushd docs
|
||||||
|
make html
|
||||||
|
rm _build/html/.buildinfo
|
||||||
|
popd
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%python_install
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
%{python_expand %fdupes %{buildroot}%{$python_sitearch}
|
||||||
|
find %{buildroot}%{$python_sitearch} -name "*.c" -delete
|
||||||
|
}
|
||||||
|
|
||||||
%if %{with test}
|
%if %{with test}
|
||||||
%check
|
%check
|
||||||
@ -68,8 +96,10 @@ export CFLAGS="%{optflags}"
|
|||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc CHANGES.rst CONTRIBUTORS.txt LICENSE.txt README.rst
|
%doc CHANGES.rst CONTRIBUTORS.txt HISTORY.rst LICENSE.txt README.rst changes
|
||||||
%doc changes/
|
|
||||||
%{python_sitearch}/*
|
%{python_sitearch}/*
|
||||||
|
|
||||||
|
%files -n %{name}-doc
|
||||||
|
%doc docs/_build/html
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user