14
0
forked from pool/python-Cython

Accepting request 530524 from devel:languages:python

Revert update

OBS-URL: https://build.opensuse.org/request/show/530524
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Cython?expand=0&rev=85
This commit is contained in:
Todd R
2017-10-02 17:07:16 +00:00
committed by Git OBS Bridge
parent cb2a07f45e
commit 19f88cba8e
4 changed files with 13 additions and 189 deletions

View File

@@ -19,7 +19,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define oldpython python
Name: python-Cython
Version: 0.27
Version: 0.25.1
Release: 0
Url: http://www.cython.org
Summary: The Cython compiler for writing C extensions for the Python language
@@ -27,12 +27,12 @@ License: Apache-2.0
Group: Development/Languages/Python
Source: https://files.pythonhosted.org/packages/source/C/Cython/Cython-%{version}.tar.gz
Source1: python-Cython-rpmlintrc
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: %{python_module devel}
BuildRequires: %{python_module xml}
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: python-rpm-macros
BuildRequires: python3-2to3
Requires: python-devel
Requires: python-xml
Requires(post): update-alternatives
@@ -64,7 +64,7 @@ code.
# Fix non-executable scripts
sed -i "s|^#!.*||" Cython/Debugger/{libpython,Cygdb}.py cython.py
# Fix EOL encoding
sed -i "s|\r||" Demos/callback/{README.txt,cheesefinder.h} Demos/embed/Makefile.{unix,msc.static}
sed -i "s|\r||" Demos/callback/{README.txt,cheesefinder.h} Demos/embed/Makefile.{unix,msc.static} Doc/primes.c
%build
export CFLAGS="%{optflags}"
@@ -92,15 +92,20 @@ done
%python_uninstall_alternative cython
%check
%if 0%{?suse_version} && 0%{?suse_version} <= 1140
sed -i.SLES11.SP4.bak -e 's/const char/char/' ./tests/run/cpdef_extern_func.pyx
#mv ./tests/run/cpdef_extern_func.pxd ./tests/run/cpdef_extern_func.pxd.TNT.txt
#mv ./tests/run/cpdef_extern_func.pyx ./tests/run/cpdef_extern_func.pyx.TNT.txt
#sleep 60
%endif
%ifarch x86_64
export LANG=en_US.UTF-8
export CFLAGS="%{optflags}"
%python_exec runtests.py -vv
%endif
%files %{python_files}
%defattr(-,root,root,-)
%doc COPYING.txt LICENSE.txt README.txt ToDo.txt USAGE.txt Demos
%doc COPYING.txt LICENSE.txt README.txt ToDo.txt USAGE.txt Doc Demos
%python_alternative %{_bindir}/cygdb
%python_alternative %{_bindir}/cython
%python_alternative %{_bindir}/cythonize