2a2ae21297
- Update to new upstream version 0.17.4
85 lines
2.2 KiB
RPMSpec
85 lines
2.2 KiB
RPMSpec
%global srcname aiohttp
|
|
%global with_python3 1
|
|
|
|
Name: python-aiohttp
|
|
Version: 0.17.4
|
|
Release: 1%{?dist}
|
|
Summary: A Python HTTP client/server for asyncio
|
|
|
|
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
|
|
|
|
%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
|
|
|
|
%build
|
|
%if 0%{?with_python3}
|
|
pushd %{py3dir}
|
|
%{__python3} setup.py build
|
|
popd
|
|
%endif
|
|
|
|
%install
|
|
%if 0%{?with_python3}
|
|
pushd %{py3dir}
|
|
%{__python3} setup.py install --skip-build --root %{buildroot}
|
|
popd
|
|
%endif
|
|
|
|
%if 0%{?with_python3}
|
|
%files -n python3-%{srcname}
|
|
%doc CHANGES.txt CONTRIBUTORS.txt LICENSE.txt README.rst
|
|
%{python3_sitearch}/*
|
|
%endif
|
|
|
|
%changelog
|
|
* Fri Oct 16 2015 Fabian Affolter <mail@fabian-affolter.ch> - 0.17.4-1
|
|
- Update to new upstream version 0.17.4
|
|
|
|
* 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
|
|
- Update to lastest upstream release 0.16.6 (rhbz#1231670)
|
|
|
|
* 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
|
|
|
|
* Mon Jun 15 2015 Fabian Affolter <mail@fabian-affolter.ch> - 0.16.5-1
|
|
- Update to lastest upstream release 0.16.5 (rhbz#1231670)
|
|
|
|
* Wed Nov 26 2014 Fabian Affolter <mail@fabian-affolter.ch> - 0.10.2-1
|
|
- Update to lastest upstream release 0.10.2
|
|
|
|
* Wed Oct 08 2014 Fabian Affolter <mail@fabian-affolter.ch> - 0.9.1-2
|
|
- Build only a py3 package
|
|
|
|
* Wed Feb 26 2014 Fabian Affolter <mail@fabian-affolter.ch> - 0.9.1-1
|
|
- Initial package for Fedora
|