%global pypi_name socketpool Name: python-%{pypi_name} Version: 0.3.0 Release: 2%{?dist} Summary: A simple Python socket pool License: Public Domain or MIT URL: https://github.com/benoitc/%{pypi_name} Source0: http://pypi.python.org/packages/source/s/%{pypi_name}/%{pypi_name}-%{version}.tar.gz BuildArch: noarch BuildRequires: python-devel BuildRequires: python-setuptools %description Socket pool is a simple socket pool that supports multiple factories and backends. It can easily be used by gevent, eventlet or any other library. %prep %setup -q -n %{pypi_name}-%{version} rm -rf %{pypi_name}.egg-info %build %{__python} setup.py build %install %{__python} setup.py install -O1 --skip-build --root %{buildroot} --install-data %{_docdir} mv examples %{buildroot}%{_docdir}/%{pypi_name}/ %files %doc %{_docdir}/%{pypi_name} %{python_sitelib}/%{pypi_name}* %changelog * Fri Mar 16 2012 Bohuslav Kabrda - 0.3.0-2 - Added the %%{pypi_name} macro for the package name. - Removed bundled egg-info directory. * Fri Mar 16 2012 Bohuslav Kabrda - 0.3.0-1 - Initial package.