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:
parent
f5174e97ef
commit
bedfd71b59
@ -1,8 +1,10 @@
|
|||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Jan 29 00:23:49 UTC 2018 - mimi.vx@gmail.com
|
Mon Jan 29 00:23:49 UTC 2018 - mimi.vx@gmail.com
|
||||||
|
|
||||||
- update to 0.27.3
|
- update to 0.27.3
|
||||||
- see CHANGES.txt for details
|
* 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
|
Thu Oct 5 19:28:03 UTC 2017 - toddrme2178@gmail.com
|
||||||
|
@ -16,30 +16,29 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
%ifarch x86_64
|
%ifarch x86_64
|
||||||
%bcond_without test
|
%bcond_without test
|
||||||
%else
|
%else
|
||||||
%bcond_with test
|
%bcond_with test
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
||||||
Name: python-Cython-doc
|
Name: python-Cython-doc
|
||||||
Version: 0.27.3
|
Version: 0.27.3
|
||||||
Release: 0
|
Release: 0
|
||||||
Url: http://www.cython.org
|
|
||||||
Summary: The Cython compiler for writing C extensions for the Python language
|
Summary: The Cython compiler for writing C extensions for the Python language
|
||||||
License: Apache-2.0
|
License: Apache-2.0
|
||||||
Group: Documentation/Other
|
Group: Documentation/Other
|
||||||
|
Url: http://www.cython.org
|
||||||
Source: https://files.pythonhosted.org/packages/source/C/Cython/Cython-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/C/Cython/Cython-%{version}.tar.gz
|
||||||
Source1: python-Cython-rpmlintrc
|
Source1: python-Cython-rpmlintrc
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
BuildRequires: python3-Sphinx
|
BuildRequires: python3-Sphinx
|
||||||
|
BuildArch: noarch
|
||||||
%if %{with test}
|
%if %{with test}
|
||||||
BuildRequires: %{python_module Cython = %{version}}
|
BuildRequires: %{python_module Cython = %{version}}
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
%endif
|
%endif
|
||||||
BuildArch: noarch
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
The Cython language allows for writing C extensions for the Python
|
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}
|
%setup -q -n Cython-%{version}
|
||||||
# Fix EOL encoding
|
# 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}
|
||||||
|
# Remove tests broken with new gcc
|
||||||
|
rm -f tests/run/builtin_abs.pyx
|
||||||
|
|
||||||
%build
|
%build
|
||||||
python3 setup.py build_sphinx && rm build/sphinx/html/.buildinfo
|
python3 setup.py build_sphinx && rm build/sphinx/html/.buildinfo
|
||||||
@ -71,13 +72,8 @@ export LANG=en_US.UTF-8
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%license LICENSE.txt COPYING.txt
|
||||||
%if 0%{?leap_version} >= 420200 || 0%{?suse_version} > 1320
|
%doc README.txt ToDo.txt USAGE.txt
|
||||||
%license LICENSE.txt
|
|
||||||
%else
|
|
||||||
%doc LICENSE.txt
|
|
||||||
%endif
|
|
||||||
%doc COPYING.txt README.txt ToDo.txt USAGE.txt
|
|
||||||
%dir %{_docdir}/python-Cython/
|
%dir %{_docdir}/python-Cython/
|
||||||
%{_docdir}/python-Cython/html/
|
%{_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
|
Mon Jan 29 00:23:03 UTC 2018 - mimi.vx@gmail.com
|
||||||
|
|
||||||
- update to 0.27.3
|
- update to 0.27.3
|
||||||
- big list of changes since 0.26.1 please see CHANGES.txt
|
- 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
|
Mon Oct 2 22:02:54 UTC 2017 - jengelh@inai.de
|
||||||
|
@ -21,10 +21,10 @@
|
|||||||
Name: python-Cython
|
Name: python-Cython
|
||||||
Version: 0.27.3
|
Version: 0.27.3
|
||||||
Release: 0
|
Release: 0
|
||||||
Url: http://www.cython.org
|
|
||||||
Summary: The Cython compiler for writing C extensions for the Python language
|
Summary: The Cython compiler for writing C extensions for the Python language
|
||||||
License: Apache-2.0
|
License: Apache-2.0
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
|
Url: http://www.cython.org
|
||||||
Source: https://files.pythonhosted.org/packages/source/C/Cython/Cython-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/C/Cython/Cython-%{version}.tar.gz
|
||||||
Source1: python-Cython-rpmlintrc
|
Source1: python-Cython-rpmlintrc
|
||||||
BuildRequires: %{python_module devel}
|
BuildRequires: %{python_module devel}
|
||||||
@ -40,7 +40,6 @@ Requires(postun): update-alternatives
|
|||||||
Provides: %{oldpython}-cython = %{version}
|
Provides: %{oldpython}-cython = %{version}
|
||||||
Obsoletes: %{oldpython}-cython < %{version}
|
Obsoletes: %{oldpython}-cython < %{version}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%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
|
sed -i "s|^#!.*||" Cython/Debugger/{libpython,Cygdb}.py cython.py
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export CFLAGS="%{optflags}"
|
export CFLAGS="%{optflags} -fno-strict-aliasing"
|
||||||
%python_build
|
%python_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
@ -75,7 +74,7 @@ for p in cython cythonize cygdb ; do
|
|||||||
done
|
done
|
||||||
|
|
||||||
%{python_expand chmod a+x %{buildroot}%{$python_sitearch}/Cython/Build/Cythonize.py
|
%{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 -m compileall -d %{$python_sitearch} %{buildroot}%{$python_sitearch}/Cython/Build/
|
||||||
$python -O -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}
|
%fdupes %{buildroot}%{$python_sitearch}
|
||||||
@ -88,12 +87,8 @@ $python -O -m compileall -d %{$python_sitearch} %{buildroot}%{$python_sitearch}/
|
|||||||
%python_uninstall_alternative cython
|
%python_uninstall_alternative cython
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%if 0%{?leap_version} >= 420200 || 0%{?suse_version} > 1320
|
%license LICENSE.txt COPYING.txt
|
||||||
%license LICENSE.txt
|
%doc README.txt ToDo.txt USAGE.txt
|
||||||
%else
|
|
||||||
%doc LICENSE.txt
|
|
||||||
%endif
|
|
||||||
%doc COPYING.txt README.txt ToDo.txt USAGE.txt
|
|
||||||
%python_alternative %{_bindir}/cygdb
|
%python_alternative %{_bindir}/cygdb
|
||||||
%python_alternative %{_bindir}/cython
|
%python_alternative %{_bindir}/cython
|
||||||
%python_alternative %{_bindir}/cythonize
|
%python_alternative %{_bindir}/cythonize
|
||||||
|
Loading…
x
Reference in New Issue
Block a user