Accepting request 437640 from devel:languages:python

1

OBS-URL: https://build.opensuse.org/request/show/437640
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Cython?expand=0&rev=30
This commit is contained in:
2016-11-01 08:49:53 +00:00
committed by Git OBS Bridge
parent 53195031a7
commit 9c6f7620ab
5 changed files with 155 additions and 20 deletions

View File

@@ -17,15 +17,14 @@
Name: python-Cython
Version: 0.23.4
Version: 0.25.1
Release: 0
Url: http://www.cython.org
Summary: The Cython compiler for writing C extensions for the Python language
License: Apache-2.0
Group: Development/Languages/Python
Source: http://pypi.python.org/packages/source/C/Cython/Cython-%{version}.tar.gz
Source: https://files.pythonhosted.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,-)