From 26a510e0130d4935649f8c264235e045c79d9cbad45b5341ca4751428fbdd9fd Mon Sep 17 00:00:00 2001 From: Jan Matejek Date: Fri, 1 Sep 2017 14:36:11 +0000 Subject: [PATCH] Accepting request 518714 from home:sebix:branches:devel:languages:python - first singlespec package - fixes boo#1054580 boo#1054581 OBS-URL: https://build.opensuse.org/request/show/518714 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-aiohttp?expand=0&rev=1 --- .gitattributes | 23 +++++++++ .gitignore | 1 + aiohttp-2.2.5.tar.gz | 3 ++ python-aiohttp.changes | 5 ++ python-aiohttp.spec | 105 +++++++++++++++++++++++++++++++++++++++++ 5 files changed, 137 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 aiohttp-2.2.5.tar.gz create mode 100644 python-aiohttp.changes create mode 100644 python-aiohttp.spec 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/aiohttp-2.2.5.tar.gz b/aiohttp-2.2.5.tar.gz new file mode 100644 index 0000000..65a8473 --- /dev/null +++ b/aiohttp-2.2.5.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:af5bfdd164256118a0a306b3f7046e63207d1f8cba73a67dcc0bd858dcfcd3bc +size 788626 diff --git a/python-aiohttp.changes b/python-aiohttp.changes new file mode 100644 index 0000000..4fee03f --- /dev/null +++ b/python-aiohttp.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Thu Aug 24 07:57:17 UTC 2017 - sebix+novell.com@sebix.at + +- first singlespec package +- fixes boo#1054580 boo#1054581 diff --git a/python-aiohttp.spec b/python-aiohttp.spec new file mode 100644 index 0000000..c140465 --- /dev/null +++ b/python-aiohttp.spec @@ -0,0 +1,105 @@ +# +# 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-%{**}} +%bcond_without test +%define skip_python2 1 +Name: python-aiohttp +Version: 2.2.5 +Release: 0 +License: Apache-2.0 +Summary: Async http client/server framework +Url: https://aiohttp.readthedocs.io/ +Group: Development/Languages/Python +Source: https://files.pythonhosted.org/packages/source/a/aiohttp/aiohttp-%{version}.tar.gz +BuildRequires: python-rpm-macros +BuildRequires: %{python_module devel >= 3.4.2} +BuildRequires: %{python_module setuptools} +# SECTION test requirements +%if %{with test} +BuildRequires: %{python_module async_timeout >= 1.2.0} +BuildRequires: %{python_module chardet} +BuildRequires: %{python_module gunicorn} +BuildRequires: %{python_module multidict >= 2.1.4} +BuildRequires: %{python_module pytest-timeout} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module pytest-mock} +BuildRequires: %{python_module yarl >= 0.11} +%endif +# /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-multidict >= 2.1.4 +Requires: python-yarl >= 0.11 +Recommends: python-cChardet +Recommends: python-aiodns +Suggests: %{name}-doc + +%python_subpackages + +%package -n %{name}-doc +Summary: Documentation files for %name +Group: Documentation/HTML + +%description +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 +%setup -q -n aiohttp-%{version} + +%build +export CFLAGS="%{optflags}" +%python_build +pushd docs +make html +rm _build/html/.buildinfo +popd + +%install +%python_install +%{python_expand %fdupes %{buildroot}%{$python_sitearch} +find %{buildroot}%{$python_sitearch} -name "*.c" -delete +} + +%if %{with test} +%check +%python_exec setup.py test +%endif + +%files %{python_files} +%defattr(-,root,root,-) +%doc CHANGES.rst CONTRIBUTORS.txt HISTORY.rst LICENSE.txt README.rst changes +%{python_sitearch}/* + +%files -n %{name}-doc +%doc docs/_build/html + +%changelog