forked from pool/python-Cython
- Update to version 0.17.2:
+ Please see http://wiki.cython.org/ReleaseNotes-0.18.2 - Drop excessive macro usage - No need for "-fno-strict-aliasing" anymore - One rpmlintrc is enough - Update to version 0.17.2: + Please see http://wiki.cython.org/ReleaseNotes-0.18.2 - Drop excessive macro usage - No need for "-fno-strict-aliasing" anymore - One rpmlintrc is enough - Python3 binary suffix should be "-%{py3_ver}" OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Cython?expand=0&rev=23
This commit is contained in:
committed by
Git OBS Bridge
parent
8033bab7fb
commit
6bdab78bea
@@ -15,28 +15,23 @@
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
%define modname Cython
|
||||
%define binname cython
|
||||
Name: python-%{modname}
|
||||
Version: 0.16
|
||||
|
||||
Name: python-Cython
|
||||
Version: 0.17.2
|
||||
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
|
||||
Source: http://pypi.python.org/packages/source/C/%{modname}/%{modname}-%{version}.tar.gz
|
||||
Source99: python-Cython-rpmlintrc
|
||||
Source: http://pypi.python.org/packages/source/C/Cython/Cython-%{version}.tar.gz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-devel
|
||||
%if 0%{?suse_version}
|
||||
%py_requires
|
||||
%endif
|
||||
%if 0%{?suse_version} <= 1110
|
||||
%{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
||||
%endif
|
||||
Provides: python-cython = %{version}
|
||||
Obsoletes: python-cython < %{version}
|
||||
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
||||
%{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
||||
%endif
|
||||
|
||||
%description
|
||||
The Cython language makes writing C extensions for the Python language as
|
||||
@@ -54,19 +49,16 @@ libraries, and for fast C modules that speed up the execution of Python
|
||||
code.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{modname}-%{version}
|
||||
sed -i "1d" {Cython/Debugger/libpython,Cython/Debugger/Cygdb,cython}.py # Fix non-executable scripts
|
||||
%setup -q -n Cython-%{version}
|
||||
sed -i "s|^#!.*||" {Cython/Debugger/libpython,Cython/Debugger/Cygdb,cython}.py # Fix non-executable scripts
|
||||
sed -i "s|\r||" Demos/callback/{README.txt,cheesefinder.h} Demos/embed/Makefile.{unix,msc.static} Doc/primes.c # Fix EOL encoding
|
||||
|
||||
%build
|
||||
CFLAGS="%{optflags} -fno-strict-aliasing" python setup.py build
|
||||
CFLAGS="%{optflags}" python setup.py build
|
||||
|
||||
%install
|
||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||
%fdupes -s %{buildroot}
|
||||
# fix EOL encoding
|
||||
sed -i 's/\r$//' Demos/callback/{README.txt,cheesefinder.h}
|
||||
sed -i 's/\r$//' Demos/embed/{Makefile.unix,Makefile.msc.static}
|
||||
sed -i 's/\r$//' Doc/primes.c
|
||||
%fdupes -s %{buildroot}%{python_sitearch} %{buildroot}%{_docdir}
|
||||
|
||||
# Disabled testsuite as it takes a long time:
|
||||
#%%check
|
||||
@@ -76,10 +68,10 @@ sed -i 's/\r$//' Doc/primes.c
|
||||
%defattr(-,root,root,-)
|
||||
%doc COPYING.txt LICENSE.txt README.txt ToDo.txt USAGE.txt Doc Demos
|
||||
%{_bindir}/cygdb
|
||||
%{_bindir}/%{binname}
|
||||
%{python_sitearch}/%{modname}/
|
||||
%{python_sitearch}/%{modname}-%{version}-py%{py_ver}.egg-info
|
||||
%{python_sitearch}/%{binname}.py*
|
||||
%{_bindir}/cython
|
||||
%{python_sitearch}/Cython/
|
||||
%{python_sitearch}/Cython-%{version}-py%{py_ver}.egg-info
|
||||
%{python_sitearch}/cython.py*
|
||||
%{python_sitearch}/pyximport/
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user