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
This commit is contained in:
Alberto Planas 2015-01-08 13:41:57 +00:00 committed by Git OBS Bridge
parent 1c4cb116ce
commit 679551f9df
2 changed files with 12 additions and 4 deletions

View File

@ -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

View File

@ -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