From 679551f9dfbc0f9f49a3305bed7d09230318bf7adb5045444ede1672f8b7d80d Mon Sep 17 00:00:00 2001 From: Alberto Planas Dominguez Date: Thu, 8 Jan 2015 13:41:57 +0000 Subject: [PATCH] Accepting request 280306 from home:dimstar:Cython - Fox usage of update-alternatives. OBS-URL: https://build.opensuse.org/request/show/280306 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Cython?expand=0&rev=52 --- python-Cython.changes | 5 +++++ python-Cython.spec | 11 +++++++---- 2 files changed, 12 insertions(+), 4 deletions(-) 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