7 Commits

Author SHA256 Message Date
57a25d5720 Accepting request 1299415 from devel:languages:python
- Convert to libalternatives on SLE-16-based and newer systems

OBS-URL: https://build.opensuse.org/request/show/1299415
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Cython0?expand=0&rev=6
2025-08-18 14:08:48 +00:00
44f44759dc - Convert to libalternatives on SLE-16-based and newer systems
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Cython0?expand=0&rev=15
2025-08-14 12:52:23 +00:00
ec5383ba53 Accepting request 1266126 from devel:languages:python
- Make the dist-info name case-insensitive
- Lowercase metadata directory name.

OBS-URL: https://build.opensuse.org/request/show/1266126
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Cython0?expand=0&rev=5
2025-04-11 14:44:50 +00:00
e5e19d3e5d Accepting request 1266105 from home:mcalabkova:branches:devel:languages:python
- Make the dist-info name case-insensitive

OBS-URL: https://build.opensuse.org/request/show/1266105
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Cython0?expand=0&rev=13
2025-04-01 12:19:21 +00:00
2673257fac - Lowercase metadata directory name.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Cython0?expand=0&rev=12
2025-03-25 01:19:59 +00:00
a130c56256 Accepting request 1216731 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1216731
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Cython0?expand=0&rev=4
2024-10-22 12:51:18 +00:00
f9f529650a Accepting request 1208831 from home:mcalabkova:branches:devel:languages:python
- Add py313.patch to adapt Cython0 to Python 3.13

OBS-URL: https://build.opensuse.org/request/show/1208831
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Cython0?expand=0&rev=10
2024-10-21 13:23:04 +00:00
2 changed files with 22 additions and 3 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
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>

View File

@@ -16,8 +16,13 @@
#
%{?sle15_python_module_pythons}
%bcond_with test
%if 0%{?suse_version} > 1500
%bcond_without libalternatives
%else
%bcond_with libalternatives
%endif
%{?sle15_python_module_pythons}
Name: python-Cython0
Version: 0.29.37
Release: 0
@@ -36,12 +41,17 @@ BuildRequires: %{python_module xml}
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: python-rpm-macros
Provides: python-Cython = %{version}-%{release}
Provides: python-cython = %{version}-%{release}
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(post): update-alternatives
Requires(postun): update-alternatives
%endif
%python_subpackages
%description
@@ -68,6 +78,7 @@ 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
@@ -83,6 +94,9 @@ $python runtests.py -v
}
%endif
%pre
%python_libalternatives_reset_alternative cython
%post
%python_install_alternative cython cythonize cygdb