* Fri Nov 27 2015 Fabian Affolter <mail@fabian-affolter.ch> - 0.19.0-1

- Update py3
- Update to new upstream version 0.19.0
This commit is contained in:
Fabian Affolter 2015-11-27 15:23:08 +01:00
parent 2a2ae21297
commit 268399e6c5
3 changed files with 16 additions and 33 deletions

1
.gitignore vendored
View File

@ -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

View File

@ -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 <mail@fabian-affolter.ch> - 0.19.0-1
- Update py3
- Update to new upstream version 0.19.0
* Fri Oct 16 2015 Fabian Affolter <mail@fabian-affolter.ch> - 0.17.4-1
- Update to new upstream version 0.17.4

View File

@ -1 +1 @@
b1855eae32484c3ecddff79e8b31b086 aiohttp-0.17.4.tar.gz
f1c56892fc8b1b4f781470c7dd4226eb aiohttp-0.19.0.tar.gz