|
|
|
@@ -16,8 +16,13 @@
|
|
|
|
#
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%{?sle15_python_module_pythons}
|
|
|
|
|
|
|
|
%bcond_with test
|
|
|
|
%bcond_with test
|
|
|
|
|
|
|
|
%if 0%{?suse_version} > 1500
|
|
|
|
|
|
|
|
%bcond_without libalternatives
|
|
|
|
|
|
|
|
%else
|
|
|
|
|
|
|
|
%bcond_with libalternatives
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%{?sle15_python_module_pythons}
|
|
|
|
Name: python-Cython0
|
|
|
|
Name: python-Cython0
|
|
|
|
Version: 0.29.37
|
|
|
|
Version: 0.29.37
|
|
|
|
Release: 0
|
|
|
|
Release: 0
|
|
|
|
@@ -36,12 +41,17 @@ BuildRequires: %{python_module xml}
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
Provides: python-Cython = %{version}-%{release}
|
|
|
|
|
|
|
|
Provides: python-cython = %{version}-%{release}
|
|
|
|
|
|
|
|
Requires: python-devel
|
|
|
|
Requires: python-devel
|
|
|
|
Requires: python-xml
|
|
|
|
Requires: python-xml
|
|
|
|
|
|
|
|
Provides: python-Cython = %{version}-%{release}
|
|
|
|
|
|
|
|
Provides: python-cython = %{version}-%{release}
|
|
|
|
|
|
|
|
%if %{with libalternatives}
|
|
|
|
|
|
|
|
BuildRequires: alts
|
|
|
|
|
|
|
|
Requires: alts
|
|
|
|
|
|
|
|
%else
|
|
|
|
Requires(post): update-alternatives
|
|
|
|
Requires(post): update-alternatives
|
|
|
|
Requires(postun): update-alternatives
|
|
|
|
Requires(postun): update-alternatives
|
|
|
|
|
|
|
|
%endif
|
|
|
|
%python_subpackages
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
%description
|
|
|
|
@@ -68,6 +78,7 @@ export CFLAGS="%{optflags} -fno-strict-aliasing"
|
|
|
|
for p in cython cythonize cygdb ; do
|
|
|
|
for p in cython cythonize cygdb ; do
|
|
|
|
%python_clone -a %{buildroot}%{_bindir}/$p
|
|
|
|
%python_clone -a %{buildroot}%{_bindir}/$p
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|
|
|
|
%python_group_libalternatives cython cythonize cygdb
|
|
|
|
|
|
|
|
|
|
|
|
%{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|^#!%{_bindir}/env python$|#!%{__$python}|" %{buildroot}%{$python_sitearch}/Cython/Build/Cythonize.py
|
|
|
|
sed -i "s|^#!%{_bindir}/env python$|#!%{__$python}|" %{buildroot}%{$python_sitearch}/Cython/Build/Cythonize.py
|
|
|
|
@@ -83,6 +94,9 @@ $python runtests.py -v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%pre
|
|
|
|
|
|
|
|
%python_libalternatives_reset_alternative cython
|
|
|
|
|
|
|
|
|
|
|
|
%post
|
|
|
|
%post
|
|
|
|
%python_install_alternative cython cythonize cygdb
|
|
|
|
%python_install_alternative cython cythonize cygdb
|
|
|
|
|
|
|
|
|
|
|
|
|