2012-02-01 14:24:13 +04:00
|
|
|
%define tarname Cython
|
|
|
|
|
|
|
|
Summary: Language for writing C extensions to Python
|
2012-10-03 23:20:47 +04:00
|
|
|
Name: python-cython
|
2013-12-29 20:51:04 +04:00
|
|
|
Version: 0.19.1
|
|
|
|
Release: 1
|
|
|
|
Source0: https://pypi.python.org/packages/source/C/Cython/Cython-%{version}.tar.gz
|
2012-02-01 14:24:13 +04:00
|
|
|
License: Apache License
|
|
|
|
Group: Development/Python
|
|
|
|
Url: http://www.cython.org
|
2014-01-05 02:22:19 +04:00
|
|
|
BuildRequires: pkgconfig(python)
|
2014-01-05 02:13:20 +04:00
|
|
|
BuildRequires: pythonegg(setuptools)
|
2012-02-01 14:24:13 +04:00
|
|
|
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.
|
|
|
|
|
2013-03-28 16:43:26 +04:00
|
|
|
|
|
|
|
|
|
|
|
|
2012-02-01 14:24:13 +04:00
|
|
|
%prep
|
|
|
|
%setup -q -n %{tarname}-%{version}
|
|
|
|
|
2013-03-28 16:43:26 +04:00
|
|
|
|
|
|
|
%build
|
2013-12-29 20:51:04 +04:00
|
|
|
python setup.py build
|
2013-03-28 16:43:26 +04:00
|
|
|
|
|
|
|
|
2014-01-05 02:13:20 +04:00
|
|
|
%install
|
2012-02-01 14:24:13 +04:00
|
|
|
find -name .*DS_Store* | xargs rm -rf
|
|
|
|
|
2013-03-28 16:43:26 +04:00
|
|
|
PYTHONDONTWRITEBYTECODE= %__python setup.py install --root %{buildroot}
|
2012-02-01 14:24:13 +04:00
|
|
|
pushd Tools
|
|
|
|
dos2unix cython-mode.el
|
2014-01-05 02:13:20 +04:00
|
|
|
install -m 755 -d %{buildroot}%{_sysconfdir}/emacs/site-start.d
|
|
|
|
install -m 644 *.el* %{buildroot}%{_sysconfdir}/emacs/site-start.d
|
2013-03-28 16:43:26 +04:00
|
|
|
popd
|
2012-02-01 14:24:13 +04:00
|
|
|
|
2014-01-05 02:13:20 +04:00
|
|
|
|
|
|
|
|
2012-02-01 14:24:13 +04:00
|
|
|
|
2012-10-03 23:20:47 +04:00
|
|
|
%files
|
2012-02-01 14:24:13 +04:00
|
|
|
%{_sysconfdir}/emacs/site-start.d/*.el*
|
2013-12-29 20:51:04 +04:00
|
|
|
%{_bindir}/cython
|
|
|
|
%{_bindir}/cygdb
|
2012-10-03 23:20:47 +04:00
|
|
|
%py_platsitedir/Cython*
|
|
|
|
%py_platsitedir/cython*
|
|
|
|
%py_platsitedir/pyximport*
|
2012-02-01 14:24:13 +04:00
|
|
|
|