From d08b3d319338b1bed3ff87af061dc2f7c7f2958a Mon Sep 17 00:00:00 2001 From: Athmane Madjoudj Date: Apr 05 2017 22:10:32 +0000 Subject: Initial import (rhbz #1421304) --- diff --git a/.gitignore b/.gitignore index e69de29..cbd3fd4 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/python-aiohttp-cors-0.5.0.tar.gz diff --git a/python-aiohttp-cors.spec b/python-aiohttp-cors.spec new file mode 100644 index 0000000..bfc43cd --- /dev/null +++ b/python-aiohttp-cors.spec @@ -0,0 +1,59 @@ +%global srcname aiohttp-cors +%global common_desc aiohttp_cors library implements Cross Origin Resource Sharing (CORS) support \ +for aiohttp asyncio-powered asynchronous HTTP server. + + + +Name: python-%{srcname} +Version: 0.5.0 +Release: 1%{?dist} +Summary: CORS (Cross Origin Resource Sharing) support for aiohttp + +License: ASL 2.0 +URL: https://github.com/aio-libs/aiohttp-cors +Source0: https://github.com/aio-libs/aiohttp-cors/archive/v%{version}/%{name}-%{version}.tar.gz + +BuildArch: noarch + +%description +%{common_desc} + +# This module is Python 3 only +%package -n python3-%{srcname} +Summary: %{summary} +%{?python_provide:%python_provide python3-%{srcname}} +BuildRequires: python3-devel +BuildRequires: python3-setuptools +Requires: python3-aiohttp >= 1.1 + +# For tes suite +BuildRequires: python3-pytest-runner +BuildRequires: python3-aiohttp >= 1.1 + + +%description -n python3-%{srcname} +%{common_desc} + + +%prep +%autosetup -n %{srcname}-%{version} + +%build +%py3_build + +%install +%py3_install + +%check +# selenium and simple are not available in the repos +#%{__python3} setup.py test + +%files -n python3-%{srcname} +%license LICENSE +%doc README.rst CHANGES.rst +%{python3_sitelib}/aiohttp_cors +%{python3_sitelib}/aiohttp_cors-*.egg-info/ + +%changelog +* Fri Feb 10 2017 Athmane Madjoudj - 0.5.0-1 +- Initial spec. diff --git a/sources b/sources index e69de29..af5854b 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +SHA512 (python-aiohttp-cors-0.5.0.tar.gz) = 86c24a1fe18fb3b2b8fca38ef9aa7ebf07fc1b202d353a540b7d651cbf618c57c5afbe125d91c0d72aee937909dbea0cfb1baa182eebdc5402b66f9800706bee