diff --git a/python-Cython.changes b/python-Cython.changes index 6b03e75..0f5b800 100644 --- a/python-Cython.changes +++ b/python-Cython.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Jan 8 12:22:10 UTC 2015 - dimstar@opensuse.org + +- Fox usage of update-alternatives. + ------------------------------------------------------------------- Thu Dec 18 10:48:28 UTC 2014 - p.drouand@gmail.com diff --git a/python-Cython.spec b/python-Cython.spec index bd5de05..9b30d7e 100644 --- a/python-Cython.spec +++ b/python-Cython.spec @@ -1,7 +1,7 @@ # # spec file for package python-Cython # -# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -69,9 +69,12 @@ CFLAGS="%{optflags}" python setup.py build %install python setup.py install --prefix=%{_prefix} --root=%{buildroot} -ln -s %{_bindir}/cython-%{py_ver} %{buildroot}%{_bindir}/cython -ln -s %{_bindir}/cythonize-%{py_ver} %{buildroot}%{_bindir}/cythonize -ln -s %{_bindir}/cygdb-%{py_ver} %{buildroot}%{_bindir}/cygdb +# Prepare for update-alternatives usage +mkdir -p %{buildroot}%{_sysconfdir}/alternatives +ln -s -f %{_sysconfdir}/alternatives/cython %{buildroot}%{_bindir}/cython +ln -s -f %{_sysconfdir}/alternatives/cythonize %{buildroot}%{_bindir}/cythonize +ln -s -f %{_sysconfdir}/alternatives/cygdb %{buildroot}%{_bindir}/cygdb + %fdupes -s %{buildroot}%{python_sitearch} %{buildroot}%{_docdir} rm -rf %{buildroot}%{python_sitearch}/__pycache__/ # avoid conflicts with python 2 version