forked from pool/python-Cython
Accepting request 437366 from home:TheBlackCat:branches:devel:languages:python
update to version 0.25 OBS-URL: https://build.opensuse.org/request/show/437366 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Cython?expand=0&rev=68
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
|
||||
|
||||
Name: python-Cython
|
||||
Version: 0.23.4
|
||||
Version: 0.25
|
||||
Release: 0
|
||||
Url: http://www.cython.org
|
||||
Summary: The Cython compiler for writing C extensions for the Python language
|
||||
@@ -25,7 +25,6 @@ License: Apache-2.0
|
||||
Group: Development/Languages/Python
|
||||
Source: http://pypi.python.org/packages/source/C/Cython/Cython-%{version}.tar.gz
|
||||
Source1: python-Cython-rpmlintrc
|
||||
Patch1: python-Cython-c++11.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: gcc-c++
|
||||
@@ -58,7 +57,6 @@ code.
|
||||
|
||||
%prep
|
||||
%setup -q -n Cython-%{version}
|
||||
%patch1
|
||||
# Fix non-executable scripts
|
||||
sed -i "s|^#!.*||" Cython/Debugger/{libpython,Cygdb}.py cython.py
|
||||
# Fix EOL encoding
|
||||
@@ -75,8 +73,6 @@ mkdir -p %{buildroot}%{_sysconfdir}/alternatives
|
||||
for p in cython cythonize cygdb ; do
|
||||
mv %{buildroot}%{_bindir}/$p %{buildroot}%{_bindir}/$p-%{py_ver}
|
||||
ln -s -f %{_sysconfdir}/alternatives/$p %{buildroot}%{_bindir}/$p
|
||||
# create a dummy target for /etc/alternatives/$p
|
||||
touch %{buildroot}%{_sysconfdir}/alternatives/$p
|
||||
done
|
||||
|
||||
%fdupes -s %{buildroot}%{python_sitearch} %{buildroot}%{_docdir}
|
||||
@@ -100,7 +96,9 @@ sed -i.SLES11.SP4.bak -e 's/const char/char/' ./tests/run/cpdef_extern_func.pyx
|
||||
#mv ./tests/run/cpdef_extern_func.pyx ./tests/run/cpdef_extern_func.pyx.TNT.txt
|
||||
#sleep 60
|
||||
%endif
|
||||
%ifarch x86_64
|
||||
python runtests.py -vv
|
||||
%endif
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
|
Reference in New Issue
Block a user