2014-10-06 20:06:41 +00:00
|
|
|
%global srcname aiohttp
|
2015-08-01 20:40:39 +00:00
|
|
|
%global with_python3 1
|
2014-10-06 20:06:41 +00:00
|
|
|
|
|
|
|
Name: python-aiohttp
|
2015-10-17 10:00:08 +00:00
|
|
|
Version: 0.17.4
|
2015-11-10 15:07:22 +00:00
|
|
|
Release: 2%{?dist}
|
2014-10-06 20:06:41 +00:00
|
|
|
Summary: A Python HTTP client/server for asyncio
|
|
|
|
|
2015-08-01 20:52:36 +00:00
|
|
|
License: ASL 2.0
|
2014-10-06 20:06:41 +00:00
|
|
|
URL: https://github.com/KeepSafe/aiohttp/
|
|
|
|
Source0: https://pypi.python.org/packages/source/a/%{srcname}/%{srcname}-%{version}.tar.gz
|
|
|
|
|
2014-10-12 16:03:54 +00:00
|
|
|
BuildRequires: python2-devel
|
|
|
|
BuildRequires: python-setuptools
|
|
|
|
|
|
|
|
%if 0%{?with_python3}
|
2014-10-06 20:06:41 +00:00
|
|
|
BuildRequires: python3-devel
|
|
|
|
BuildRequires: python3-setuptools
|
2014-10-12 16:03:54 +00:00
|
|
|
%endif
|
2014-10-06 20:06:41 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
A Python HTTP client/server for asyncio
|
|
|
|
|
2014-10-12 16:03:54 +00:00
|
|
|
%if 0%{?with_python3}
|
|
|
|
%package -n python3-%{srcname}
|
|
|
|
Summary: A Python HTTP client/server for asyncio
|
|
|
|
|
|
|
|
%description -n python3-%{srcname}
|
|
|
|
A Python HTTP client/server for asyncio
|
|
|
|
%endif
|
|
|
|
|
2014-10-06 20:06:41 +00:00
|
|
|
%prep
|
|
|
|
%setup -q -n %{srcname}-%{version}
|
|
|
|
rm -rf %{srcname}.egg-info
|
2014-10-12 16:03:54 +00:00
|
|
|
%if 0%{?with_python3}
|
|
|
|
rm -rf %{py3dir}
|
|
|
|
cp -a . %{py3dir}
|
|
|
|
find %{py3dir} -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'
|
|
|
|
%endif
|
2014-10-06 20:06:41 +00:00
|
|
|
|
|
|
|
%build
|
2014-10-12 16:03:54 +00:00
|
|
|
%if 0%{?with_python3}
|
|
|
|
pushd %{py3dir}
|
2014-10-06 20:06:41 +00:00
|
|
|
%{__python3} setup.py build
|
2014-10-12 16:03:54 +00:00
|
|
|
popd
|
|
|
|
%endif
|
2014-10-06 20:06:41 +00:00
|
|
|
|
|
|
|
%install
|
2014-10-12 16:03:54 +00:00
|
|
|
%if 0%{?with_python3}
|
|
|
|
pushd %{py3dir}
|
2014-10-06 20:06:41 +00:00
|
|
|
%{__python3} setup.py install --skip-build --root %{buildroot}
|
2014-10-12 16:03:54 +00:00
|
|
|
popd
|
|
|
|
%endif
|
2014-10-06 20:06:41 +00:00
|
|
|
|
2014-10-12 16:03:54 +00:00
|
|
|
%if 0%{?with_python3}
|
|
|
|
%files -n python3-%{srcname}
|
2014-10-06 20:06:41 +00:00
|
|
|
%doc CHANGES.txt CONTRIBUTORS.txt LICENSE.txt README.rst
|
2015-08-01 20:40:39 +00:00
|
|
|
%{python3_sitearch}/*
|
2014-10-12 16:03:54 +00:00
|
|
|
%endif
|
2014-10-06 20:06:41 +00:00
|
|
|
|
|
|
|
%changelog
|
2015-11-10 15:07:22 +00:00
|
|
|
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.17.4-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
|
|
|
|
|
2015-10-17 10:00:08 +00:00
|
|
|
* Fri Oct 16 2015 Fabian Affolter <mail@fabian-affolter.ch> - 0.17.4-1
|
|
|
|
- Update to new upstream version 0.17.4
|
|
|
|
|
2015-08-01 20:52:36 +00:00
|
|
|
* Sat Aug 01 2015 Fabian Affolter <mail@fabian-affolter.ch> - 0.16.6-2
|
|
|
|
- Fix license
|
|
|
|
|
|
|
|
* Sat Aug 01 2015 Fabian Affolter <mail@fabian-affolter.ch> - 0.16.6-1
|
2015-08-01 20:40:39 +00:00
|
|
|
- Update to lastest upstream release 0.16.6 (rhbz#1231670)
|
2015-06-18 18:29:04 +00:00
|
|
|
|
2015-08-01 21:29:22 +00:00
|
|
|
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.16.5-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
|
2015-08-01 21:33:22 +00:00
|
|
|
* Mon Jun 15 2015 Fabian Affolter <mail@fabian-affolter.ch> - 0.16.5-1
|
|
|
|
- Update to lastest upstream release 0.16.5 (rhbz#1231670)
|
|
|
|
|
2014-11-26 22:10:41 +00:00
|
|
|
* Wed Nov 26 2014 Fabian Affolter <mail@fabian-affolter.ch> - 0.10.2-1
|
|
|
|
- Update to lastest upstream release 0.10.2
|
|
|
|
|
2014-10-12 16:03:54 +00:00
|
|
|
* Wed Oct 08 2014 Fabian Affolter <mail@fabian-affolter.ch> - 0.9.1-2
|
|
|
|
- Build only a py3 package
|
|
|
|
|
2014-10-06 20:06:41 +00:00
|
|
|
* Wed Feb 26 2014 Fabian Affolter <mail@fabian-affolter.ch> - 0.9.1-1
|
|
|
|
- Initial package for Fedora
|