diff --git a/.gitignore b/.gitignore index aef3214..5dfde49 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ /aiohttp-0.16.5.tar.gz /aiohttp-0.16.6.tar.gz /aiohttp-0.17.4.tar.gz +/aiohttp-0.19.0.tar.gz diff --git a/python-aiohttp.spec b/python-aiohttp.spec index d97d61e..915a0b8 100644 --- a/python-aiohttp.spec +++ b/python-aiohttp.spec @@ -1,64 +1,46 @@ %global srcname aiohttp -%global with_python3 1 +%global sum A Python HTTP client/server for asyncio Name: python-aiohttp -Version: 0.17.4 +Version: 0.19.0 Release: 1%{?dist} -Summary: A Python HTTP client/server for asyncio +Summary: %{sum} License: ASL 2.0 URL: https://github.com/KeepSafe/aiohttp/ Source0: https://pypi.python.org/packages/source/a/%{srcname}/%{srcname}-%{version}.tar.gz -BuildRequires: python2-devel -BuildRequires: python-setuptools - -%if 0%{?with_python3} BuildRequires: python3-devel -BuildRequires: python3-setuptools -%endif %description A Python HTTP client/server for asyncio -%if 0%{?with_python3} %package -n python3-%{srcname} -Summary: A Python HTTP client/server for asyncio +Summary: %{sum} +%{?python_provide:%python_provide python3-%{srcname}} %description -n python3-%{srcname} A Python HTTP client/server for asyncio -%endif %prep -%setup -q -n %{srcname}-%{version} -rm -rf %{srcname}.egg-info -%if 0%{?with_python3} -rm -rf %{py3dir} -cp -a . %{py3dir} -find %{py3dir} -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|' -%endif +%autosetup -n %{srcname}-%{version} %build -%if 0%{?with_python3} -pushd %{py3dir} -%{__python3} setup.py build -popd -%endif +%py3_build %install -%if 0%{?with_python3} -pushd %{py3dir} -%{__python3} setup.py install --skip-build --root %{buildroot} -popd -%endif +%py3_install -%if 0%{?with_python3} %files -n python3-%{srcname} -%doc CHANGES.txt CONTRIBUTORS.txt LICENSE.txt README.rst +%doc CHANGES.txt CONTRIBUTORS.txt README.rst +%license LICENSE.txt %{python3_sitearch}/* -%endif %changelog +* Fri Nov 27 2015 Fabian Affolter - 0.19.0-1 +- Update py3 +- Update to new upstream version 0.19.0 + * Fri Oct 16 2015 Fabian Affolter - 0.17.4-1 - Update to new upstream version 0.17.4 diff --git a/sources b/sources index 4081916..8dd0f45 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -b1855eae32484c3ecddff79e8b31b086 aiohttp-0.17.4.tar.gz +f1c56892fc8b1b4f781470c7dd4226eb aiohttp-0.19.0.tar.gz