14
0
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:
Tomáš Chvátal
2018-02-20 12:16:33 +00:00
committed by Git OBS Bridge
parent f5174e97ef
commit bedfd71b59
4 changed files with 22 additions and 23 deletions

View File

@@ -16,30 +16,29 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%ifarch x86_64
%bcond_without test
%else
%bcond_with test
%endif
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
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 +54,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 +72,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/