%define tarname Cython %define name python-cython %define version 0.9.8 %define release %mkrel 2 Summary: Language for writing C extensions to Python Name: %{name} Version: %{version} Release: %{release} Source0: %{tarname}-%{version}.tar.lzma License: Python Group: Development/Python Url: http://www.cython.org BuildRoot: %{_tmppath}/%{name}-%{version}-%{release} BuildRequires: python-devel BuildRequires: python-numeric-devel BuildRequires: dos2unix, emacs %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} %install %__rm -rf %{buildroot} find -name .*DS_Store* | xargs rm -rf %__python setup.py install --root=%{buildroot} --record=FILELIST pushd Tools dos2unix cython-mode.el emacs -batch -f batch-byte-compile cython-mode.el %__install -m 755 -d %{buildroot}%{_sysconfdir}/emacs/site-start.d %__install -m 644 *.el* %{buildroot}%{_sysconfdir}/emacs/site-start.d popd # Uncomment when all checks work properly: #%check #cd Demos #PYTHONPATH=`pwd`/../build/lib make test clean %clean %__rm -rf %{buildroot} %files -f FILELIST %defattr(-,root,root) %doc *.txt Demos Doc %{_sysconfdir}/emacs/site-start.d/*.el* %changelog * Sun Aug 03 2008 Lev Givon <lev@mandriva.org> 0.9.8-2mdv2008.0 + Revision: 262540 - Install emacs mode. * Fri Jun 13 2008 Lev Givon <lev@mandriva.org> 0.9.8-1mdv2009.0 + Revision: 218786 - Update to 0.9.8. * Wed May 21 2008 Lev Givon <lev@mandriva.org> 0.9.6.14-2mdv2009.0 + Revision: 209885 - Make package noarch. * Fri May 02 2008 Lev Givon <lev@mandriva.org> 0.9.6.14-1mdv2009.0 + Revision: 200101 - Update to 0.9.6.14. * Sun Apr 13 2008 Lev Givon <lev@mandriva.org> 0.9.6.13.1-1mdv2009.0 + Revision: 192662 - Update to 0.9.6.13.1. * Fri Mar 07 2008 Lev Givon <lev@mandriva.org> 0.9.6.12-1mdv2008.1 + Revision: 181397 - import python-cython * Wed Feb 13 2008 Lev Givon <lev@mandriva.org> 0.9.6.12-1mdv2008.0 - Update to 0.9.6.12. * Mon Jan 07 2008 Lev Givon <lev@mandriva.org> 0.9.6.10b-1mdv2008.0 - Package for Mandriva.