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:
2018-02-25 11:20:57 +00:00
committed by Git OBS Bridge
parent b5e0370391
commit 1a4ccb57c1
4 changed files with 29 additions and 27 deletions

View File

@@ -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/