diff --git a/.gitignore b/.gitignore index e69de29..47db1c8 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/aiohttp-0.9.1.tar.gz diff --git a/python-aiohttp.spec b/python-aiohttp.spec new file mode 100644 index 0000000..8ae35f6 --- /dev/null +++ b/python-aiohttp.spec @@ -0,0 +1,36 @@ +%global srcname aiohttp + +Name: python-aiohttp +Version: 0.9.1 +Release: 1%{?dist} +Summary: A Python HTTP client/server for asyncio + +License: BSD +URL: https://github.com/KeepSafe/aiohttp/ +Source0: https://pypi.python.org/packages/source/a/%{srcname}/%{srcname}-%{version}.tar.gz +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: python3-setuptools + +%description +A Python HTTP client/server for asyncio + +%prep +%setup -q -n %{srcname}-%{version} +rm -rf %{srcname}.egg-info +find -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|' + +%build +%{__python3} setup.py build + +%install +%{__python3} setup.py install --skip-build --root %{buildroot} + +%files +%doc CHANGES.txt CONTRIBUTORS.txt LICENSE.txt README.rst +%{python3_sitelib}/* + +%changelog +* Wed Feb 26 2014 Fabian Affolter - 0.9.1-1 +- Initial package for Fedora diff --git a/sources b/sources index e69de29..800531e 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +28c5574b9a004a9ac2cfe1617f009d69 aiohttp-0.9.1.tar.gz