* 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:
parent
2a2ae21297
commit
268399e6c5
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue