Accepting request 578692 from devel:languages:python
- Disable tests as they randomly fail while it can't be triggered when reproducing localy - 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/request/show/578692 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Cython?expand=0&rev=35
This commit is contained in:
commit
aed9248dfe
@ -1,8 +1,16 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Feb 21 12:51:05 UTC 2018 - tchvatal@suse.com
|
||||
|
||||
- Disable tests as they randomly fail while it can't be triggered
|
||||
when reproducing localy
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jan 29 00:23:49 UTC 2018 - mimi.vx@gmail.com
|
||||
|
||||
- update to 0.27.3
|
||||
- see CHANGES.txt for details
|
||||
- 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
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Oct 5 19:28:03 UTC 2017 - toddrme2178@gmail.com
|
||||
|
@ -16,30 +16,26 @@
|
||||
#
|
||||
|
||||
|
||||
%ifarch x86_64
|
||||
%bcond_without test
|
||||
%else
|
||||
%bcond_with test
|
||||
%endif
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
# Tests currently fail randomly in OBS multiple local rund do not trigger them
|
||||
%bcond_with test
|
||||
Name: python-Cython-doc
|
||||
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: Documentation/Other
|
||||
Url: http://www.cython.org
|
||||
Source: https://files.pythonhosted.org/packages/source/C/Cython/Cython-%{version}.tar.gz
|
||||
Source1: python-Cython-rpmlintrc
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: python3-Sphinx
|
||||
BuildArch: noarch
|
||||
%if %{with test}
|
||||
BuildRequires: %{python_module Cython = %{version}}
|
||||
BuildRequires: gcc-c++
|
||||
%endif
|
||||
BuildArch: noarch
|
||||
|
||||
%description
|
||||
The Cython language allows for writing C extensions for the Python
|
||||
@ -55,6 +51,8 @@ allows the compiler to generate very efficient C code from Cython code.
|
||||
%setup -q -n Cython-%{version}
|
||||
# Fix EOL encoding
|
||||
sed -i "s|\r||" Demos/callback/{README.txt,cheesefinder.h} Demos/embed/Makefile.{unix,msc.static}
|
||||
# Remove tests broken with new gcc
|
||||
rm -f tests/run/builtin_abs.pyx
|
||||
|
||||
%build
|
||||
python3 setup.py build_sphinx && rm build/sphinx/html/.buildinfo
|
||||
@ -71,13 +69,8 @@ export LANG=en_US.UTF-8
|
||||
%endif
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%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
|
||||
%dir %{_docdir}/python-Cython/
|
||||
%{_docdir}/python-Cython/html/
|
||||
|
||||
|
@ -1,8 +1,14 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Feb 20 11:25:47 UTC 2018 - tchvatal@suse.com
|
||||
|
||||
- Export fno-strict-aliasing to CFLAGS
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jan 29 00:23:03 UTC 2018 - mimi.vx@gmail.com
|
||||
|
||||
- update to 0.27.3
|
||||
- big list of changes since 0.26.1 please see CHANGES.txt
|
||||
- Also fixes bsc#1062237
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 2 22:02:54 UTC 2017 - jengelh@inai.de
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user