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
|
Name: Cython
|
||||||
Version: 0.29.13
|
Version: 0.29.13
|
||||||
%global upver %{version_no_tilde %{nil}}
|
%global upver %{version_no_tilde %{nil}}
|
||||||
Release: 5%{?dist}
|
Release: 6%{?dist}
|
||||||
Summary: Language for writing Python extension modules
|
Summary: Language for writing Python extension modules
|
||||||
|
|
||||||
License: ASL 2.0
|
License: ASL 2.0
|
||||||
|
@ -24,16 +24,6 @@ for writing Python extension modules.
|
||||||
|
|
||||||
%description %{_description}
|
%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}
|
%package -n python3-%{srcname}
|
||||||
Summary: %{summary}
|
Summary: %{summary}
|
||||||
%{?python_provide:%python_provide python3-%{srcname}}
|
%{?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
|
%autosetup -n %{upname}-%{upver} -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%py2_build
|
|
||||||
%py3_build
|
%py3_build
|
||||||
|
|
||||||
# emacs-cython-mode build
|
# emacs-cython-mode build
|
||||||
|
@ -77,10 +66,6 @@ cp -p Tools/cython-mode.el .
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%py2_install
|
|
||||||
rm -rf %{buildroot}%{python2_sitelib}/setuptools/tests
|
|
||||||
rm %{buildroot}%{_bindir}/*
|
|
||||||
|
|
||||||
%py3_install
|
%py3_install
|
||||||
rm -rf %{buildroot}%{python3_sitelib}/setuptools/tests
|
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}
|
%if %{with tests}
|
||||||
%check
|
%check
|
||||||
for python in %{__python2} %{__python3}; do
|
%{python3} runtests.py -vv --no-pyregr %{?_smp_mflags} \
|
||||||
|
|
||||||
$python runtests.py -vv --no-pyregr %{?_smp_mflags} \
|
|
||||||
%ifarch s390x ppc64
|
%ifarch s390x ppc64
|
||||||
--exclude numpy_subarray # https://github.com/cython/cython/issues/1982
|
--exclude numpy_subarray # https://github.com/cython/cython/issues/1982
|
||||||
%endif
|
%endif
|
||||||
|
@ -103,17 +86,8 @@ for python in %{__python2} %{__python3}; do
|
||||||
--exclude run.parallel # https://github.com/cython/cython/issues/2807
|
--exclude run.parallel # https://github.com/cython/cython/issues/2807
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
done
|
|
||||||
%endif
|
%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}
|
%files -n python3-%{srcname}
|
||||||
%license LICENSE.txt
|
%license LICENSE.txt
|
||||||
%doc *.txt Demos Doc Tools
|
%doc *.txt Demos Doc Tools
|
||||||
|
@ -132,6 +106,9 @@ done
|
||||||
%{_emacs_sitestartdir}/cython*.el*
|
%{_emacs_sitestartdir}/cython*.el*
|
||||||
|
|
||||||
%changelog
|
%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
|
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.29.13-5
|
||||||
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue