forked from pool/python-Cython
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:
parent
1c4cb116ce
commit
679551f9df
@ -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
|
Thu Dec 18 10:48:28 UTC 2014 - p.drouand@gmail.com
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-Cython
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -69,9 +69,12 @@ CFLAGS="%{optflags}" python setup.py build
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||||
ln -s %{_bindir}/cython-%{py_ver} %{buildroot}%{_bindir}/cython
|
# Prepare for update-alternatives usage
|
||||||
ln -s %{_bindir}/cythonize-%{py_ver} %{buildroot}%{_bindir}/cythonize
|
mkdir -p %{buildroot}%{_sysconfdir}/alternatives
|
||||||
ln -s %{_bindir}/cygdb-%{py_ver} %{buildroot}%{_bindir}/cygdb
|
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}
|
%fdupes -s %{buildroot}%{python_sitearch} %{buildroot}%{_docdir}
|
||||||
rm -rf %{buildroot}%{python_sitearch}/__pycache__/
|
rm -rf %{buildroot}%{python_sitearch}/__pycache__/
|
||||||
# avoid conflicts with python 2 version
|
# avoid conflicts with python 2 version
|
||||||
|
Loading…
x
Reference in New Issue
Block a user