Python 2 subpackage has been removed
See https://fedoraproject.org/wiki/Changes/RetirePython2
This commit is contained in:
parent
bb14927ab1
commit
425cf2eb63
33
Cython.spec
33
Cython.spec
@ -6,7 +6,7 @@
|
||||
Name: Cython
|
||||
Version: 0.29.13
|
||||
%global upver %{version_no_tilde %{nil}}
|
||||
Release: 5%{?dist}
|
||||
Release: 6%{?dist}
|
||||
Summary: Language for writing Python extension modules
|
||||
|
||||
License: ASL 2.0
|
||||
@ -24,16 +24,6 @@ for writing Python extension modules.
|
||||
|
||||
%description %{_description}
|
||||
|
||||
%package -n python2-%{srcname}
|
||||
Summary: %{summary}
|
||||
%{?python_provide:%python_provide python2-%{srcname}}
|
||||
BuildRequires: python2-devel
|
||||
BuildRequires: python2-setuptools
|
||||
|
||||
%description -n python2-%{srcname} %{_description}
|
||||
|
||||
Python 2 version.
|
||||
|
||||
%package -n python3-%{srcname}
|
||||
Summary: %{summary}
|
||||
%{?python_provide:%python_provide python3-%{srcname}}
|
||||
@ -66,7 +56,6 @@ cython-mode is an Emacs major mode for editing Cython source files.
|
||||
%autosetup -n %{upname}-%{upver} -p1
|
||||
|
||||
%build
|
||||
%py2_build
|
||||
%py3_build
|
||||
|
||||
# emacs-cython-mode build
|
||||
@ -77,10 +66,6 @@ cp -p Tools/cython-mode.el .
|
||||
|
||||
|
||||
%install
|
||||
%py2_install
|
||||
rm -rf %{buildroot}%{python2_sitelib}/setuptools/tests
|
||||
rm %{buildroot}%{_bindir}/*
|
||||
|
||||
%py3_install
|
||||
rm -rf %{buildroot}%{python3_sitelib}/setuptools/tests
|
||||
|
||||
@ -93,9 +78,7 @@ cp -p cython-mode-init.el cython-mode-init.elc %{buildroot}%{_emacs_sitestartdir
|
||||
|
||||
%if %{with tests}
|
||||
%check
|
||||
for python in %{__python2} %{__python3}; do
|
||||
|
||||
$python runtests.py -vv --no-pyregr %{?_smp_mflags} \
|
||||
%{python3} runtests.py -vv --no-pyregr %{?_smp_mflags} \
|
||||
%ifarch s390x ppc64
|
||||
--exclude numpy_subarray # https://github.com/cython/cython/issues/1982
|
||||
%endif
|
||||
@ -103,17 +86,8 @@ for python in %{__python2} %{__python3}; do
|
||||
--exclude run.parallel # https://github.com/cython/cython/issues/2807
|
||||
%endif
|
||||
|
||||
done
|
||||
%endif
|
||||
|
||||
%files -n python2-%{srcname}
|
||||
%license LICENSE.txt
|
||||
%doc *.txt Demos Doc Tools
|
||||
%{python2_sitearch}/%{srcname}-*.egg-info/
|
||||
%{python2_sitearch}/%{srcname}/
|
||||
%{python2_sitearch}/pyximport/
|
||||
%{python2_sitearch}/%{upname}.py*
|
||||
|
||||
%files -n python3-%{srcname}
|
||||
%license LICENSE.txt
|
||||
%doc *.txt Demos Doc Tools
|
||||
@ -132,6 +106,9 @@ done
|
||||
%{_emacs_sitestartdir}/cython*.el*
|
||||
|
||||
%changelog
|
||||
* Mon Nov 04 2019 Miro Hrončok <mhroncok@redhat.com> - 0.29.13-6
|
||||
- Python 2 subpackage has been removed
|
||||
|
||||
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.29.13-5
|
||||
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user