forked from pool/python-Cython
- update to 0.27.3
* see CHANGES.txt for details - Disable abs test wrt upstream issue with new GCC versions: * https://github.com/cython/cython/issues/1911 - Export fno-strict-aliasing to CFLAGS - Also fixes bsc#1062237 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Cython?expand=0&rev=92
This commit is contained in:
committed by
Git OBS Bridge
parent
f5174e97ef
commit
bedfd71b59
@@ -21,10 +21,10 @@
|
||||
Name: python-Cython
|
||||
Version: 0.27.3
|
||||
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
|
||||
Url: http://www.cython.org
|
||||
Source: https://files.pythonhosted.org/packages/source/C/Cython/Cython-%{version}.tar.gz
|
||||
Source1: python-Cython-rpmlintrc
|
||||
BuildRequires: %{python_module devel}
|
||||
@@ -40,7 +40,6 @@ Requires(postun): update-alternatives
|
||||
Provides: %{oldpython}-cython = %{version}
|
||||
Obsoletes: %{oldpython}-cython < %{version}
|
||||
%endif
|
||||
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
@@ -59,7 +58,7 @@ allows the compiler to generate very efficient C code from Cython code.
|
||||
sed -i "s|^#!.*||" Cython/Debugger/{libpython,Cygdb}.py cython.py
|
||||
|
||||
%build
|
||||
export CFLAGS="%{optflags}"
|
||||
export CFLAGS="%{optflags} -fno-strict-aliasing"
|
||||
%python_build
|
||||
|
||||
%install
|
||||
@@ -75,7 +74,7 @@ for p in cython cythonize cygdb ; do
|
||||
done
|
||||
|
||||
%{python_expand chmod a+x %{buildroot}%{$python_sitearch}/Cython/Build/Cythonize.py
|
||||
sed -i "s|^#!/usr/bin/env python$|#!%{__$python}|" %{buildroot}%{$python_sitearch}/Cython/Build/Cythonize.py
|
||||
sed -i "s|^#!%{_bindir}/env python$|#!%{__$python}|" %{buildroot}%{$python_sitearch}/Cython/Build/Cythonize.py
|
||||
$python -m compileall -d %{$python_sitearch} %{buildroot}%{$python_sitearch}/Cython/Build/
|
||||
$python -O -m compileall -d %{$python_sitearch} %{buildroot}%{$python_sitearch}/Cython/Build/
|
||||
%fdupes %{buildroot}%{$python_sitearch}
|
||||
@@ -88,12 +87,8 @@ $python -O -m compileall -d %{$python_sitearch} %{buildroot}%{$python_sitearch}/
|
||||
%python_uninstall_alternative cython
|
||||
|
||||
%files %{python_files}
|
||||
%if 0%{?leap_version} >= 420200 || 0%{?suse_version} > 1320
|
||||
%license LICENSE.txt
|
||||
%else
|
||||
%doc LICENSE.txt
|
||||
%endif
|
||||
%doc COPYING.txt README.txt ToDo.txt USAGE.txt
|
||||
%license LICENSE.txt COPYING.txt
|
||||
%doc README.txt ToDo.txt USAGE.txt
|
||||
%python_alternative %{_bindir}/cygdb
|
||||
%python_alternative %{_bindir}/cython
|
||||
%python_alternative %{_bindir}/cythonize
|
||||
|
Reference in New Issue
Block a user