- Remove leftover Python 2 gubbins.
- Stop using handrolled macros for install and update-alternatives, switch to the provided ones. - Update package names in rpmlintrc. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Cython?expand=0&rev=163
This commit is contained in:
parent
8d973359e6
commit
1185ccd190
@ -1,4 +1,4 @@
|
|||||||
addFilter('devel-file-in-non-devel-package .*/Cython/.*')
|
addFilter('devel-file-in-non-devel-package .*/Cython/.*')
|
||||||
addFilter('devel-dependency python-devel')
|
addFilter('devel-dependency python38-devel')
|
||||||
addFilter('devel-dependency python2-devel')
|
addFilter('devel-dependency python39-devel')
|
||||||
addFilter('devel-dependency python3-devel')
|
addFilter('devel-dependency python310-devel')
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Oct 26 01:33:21 UTC 2022 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
|
- Remove leftover Python 2 gubbins.
|
||||||
|
- Stop using handrolled macros for install and update-alternatives,
|
||||||
|
switch to the provided ones.
|
||||||
|
- Update package names in rpmlintrc.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Aug 2 11:51:50 UTC 2022 - Otto Hollmann <otto.hollmann@suse.com>
|
Tue Aug 2 11:51:50 UTC 2022 - Otto Hollmann <otto.hollmann@suse.com>
|
||||||
|
|
||||||
|
@ -16,8 +16,6 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
||||||
%define oldpython python
|
|
||||||
%bcond_with test
|
%bcond_with test
|
||||||
Name: python-Cython
|
Name: python-Cython
|
||||||
Version: 0.29.32
|
Version: 0.29.32
|
||||||
@ -36,10 +34,6 @@ Requires: python-devel
|
|||||||
Requires: python-xml
|
Requires: python-xml
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(postun):update-alternatives
|
Requires(postun):update-alternatives
|
||||||
%ifpython2
|
|
||||||
Provides: %{oldpython}-cython = %{version}
|
|
||||||
Obsoletes: %{oldpython}-cython < %{version}
|
|
||||||
%endif
|
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -62,15 +56,9 @@ export CFLAGS="%{optflags} -fno-strict-aliasing"
|
|||||||
%python_build
|
%python_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%{python_expand %$python_install
|
%python_install
|
||||||
# Prepare for update-alternatives usage
|
|
||||||
mkdir -p %{buildroot}%{_sysconfdir}/alternatives
|
|
||||||
for p in cython cythonize cygdb ; do
|
for p in cython cythonize cygdb ; do
|
||||||
mv %{buildroot}%{_bindir}/$p %{buildroot}%{_bindir}/$p-%{$python_bin_suffix}
|
%python_clone -a %{buildroot}%{_bindir}/$p
|
||||||
done
|
|
||||||
}
|
|
||||||
for p in cython cythonize cygdb ; do
|
|
||||||
%prepare_alternative $p
|
|
||||||
done
|
done
|
||||||
|
|
||||||
%{python_expand chmod a+x %{buildroot}%{$python_sitearch}/Cython/Build/Cythonize.py
|
%{python_expand chmod a+x %{buildroot}%{$python_sitearch}/Cython/Build/Cythonize.py
|
||||||
|
Loading…
x
Reference in New Issue
Block a user