%define tarname Cython Summary: Language for writing C extensions to Python Name: python-cython Version: 0.19.1 Release: 1 Source0: https://pypi.python.org/packages/source/C/Cython/Cython-%{version}.tar.gz License: Apache License Group: Development/Python Url: http://www.cython.org BuildRequires: pkgconfig(python) BuildRequires: pythonegg(setuptools) BuildRequires: dos2unix %description Cython is a language that facilitates the writing of C extensions for the Python language. It is based on Pyrex, but provides more cutting edge functionality and optimizations. %prep %setup -q -n %{tarname}-%{version} %build python setup.py build %install find -name .*DS_Store* | xargs rm -rf PYTHONDONTWRITEBYTECODE= python setup.py install --root %{buildroot} pushd Tools dos2unix cython-mode.el install -m 755 -d %{buildroot}%{_sysconfdir}/emacs/site-start.d install -m 644 *.el* %{buildroot}%{_sysconfdir}/emacs/site-start.d popd %files %{_sysconfdir}/emacs/site-start.d/*.el* %{_bindir}/cython %{_bindir}/cygdb %py_platsitedir/Cython* %py_platsitedir/cython* %py_platsitedir/pyximport*