forked from pool/python-Cython0
Compare commits
5 Commits
Author | SHA256 | Date | |
---|---|---|---|
1149e376bf | |||
faca41841c | |||
24f39ce199 | |||
1eb99bb15f | |||
0939032a55 |
@@ -1,8 +1,3 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Aug 14 12:49:54 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||
|
||||
- Convert to libalternatives on SLE-16-based and newer systems
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Apr 1 11:48:56 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||
|
||||
|
@@ -16,13 +16,8 @@
|
||||
#
|
||||
|
||||
|
||||
%bcond_with test
|
||||
%if 0%{?suse_version} > 1500
|
||||
%bcond_without libalternatives
|
||||
%else
|
||||
%bcond_with libalternatives
|
||||
%endif
|
||||
%{?sle15_python_module_pythons}
|
||||
%bcond_with test
|
||||
Name: python-Cython0
|
||||
Version: 0.29.37
|
||||
Release: 0
|
||||
@@ -41,17 +36,12 @@ BuildRequires: %{python_module xml}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-devel
|
||||
Requires: python-xml
|
||||
Provides: python-Cython = %{version}-%{release}
|
||||
Provides: python-cython = %{version}-%{release}
|
||||
%if %{with libalternatives}
|
||||
BuildRequires: alts
|
||||
Requires: alts
|
||||
%else
|
||||
Requires: python-devel
|
||||
Requires: python-xml
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
%endif
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
@@ -78,7 +68,6 @@ export CFLAGS="%{optflags} -fno-strict-aliasing"
|
||||
for p in cython cythonize cygdb ; do
|
||||
%python_clone -a %{buildroot}%{_bindir}/$p
|
||||
done
|
||||
%python_group_libalternatives cython cythonize cygdb
|
||||
|
||||
%{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
|
||||
@@ -94,9 +83,6 @@ $python runtests.py -v
|
||||
}
|
||||
%endif
|
||||
|
||||
%pre
|
||||
%python_libalternatives_reset_alternative cython
|
||||
|
||||
%post
|
||||
%python_install_alternative cython cythonize cygdb
|
||||
|
||||
|
Reference in New Issue
Block a user