remove python2
This commit is contained in:
parent
f0139f1543
commit
6f0d19418e
40
Cython.spec
40
Cython.spec
@ -3,21 +3,21 @@
|
|||||||
|
|
||||||
Name: Cython
|
Name: Cython
|
||||||
Version: 0.29.14
|
Version: 0.29.14
|
||||||
Release: 3
|
Release: 4
|
||||||
Summary: Language for writing C extensions for Python
|
Summary: Language for writing C extensions for Python
|
||||||
License: Apache 2.0
|
License: Apache 2.0
|
||||||
URL: https://cython.org/
|
URL: https://cython.org/
|
||||||
Source0: https://github.com/cython/cython/archive/%{version}.tar.gz
|
Source0: https://github.com/cython/cython/archive/%{version}.tar.gz
|
||||||
|
|
||||||
BuildRequires: gcc
|
BuildRequires: gcc
|
||||||
BuildRequires: python2-devel python3-devel
|
BuildRequires: python3-devel
|
||||||
BuildRequires: python2-setuptools python3-setuptools
|
BuildRequires: python3-setuptools
|
||||||
|
|
||||||
%if %{with test}
|
%if %{with test}
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: python2-coverage python3-coverage
|
BuildRequires: python3-coverage
|
||||||
BuildRequires: python2-numpy python3-numpy
|
BuildRequires: python3-numpy
|
||||||
BuildRequires: python2-jedi python3-jedi
|
BuildRequires: python3-jedi
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%global _description \
|
%global _description \
|
||||||
@ -26,17 +26,6 @@ for Python as easy as Python itself.
|
|||||||
|
|
||||||
%description %{_description}
|
%description %{_description}
|
||||||
|
|
||||||
%package -n python2-%{name}
|
|
||||||
Summary: %{summary}
|
|
||||||
%{?python_provide:%python_provide python2-%{name}}
|
|
||||||
Provides: Cython = %{?epoch:%{epoch}:}%{version}-%{release}
|
|
||||||
Provides: Cython%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
|
|
||||||
Obsoletes: Cython < %{?epoch:%{epoch}:}%{version}-%{release}
|
|
||||||
|
|
||||||
%description -n python2-%{name} %{_description}
|
|
||||||
|
|
||||||
Python 2 version.
|
|
||||||
|
|
||||||
%package -n python3-%{name}
|
%package -n python3-%{name}
|
||||||
Summary: %{summary}
|
Summary: %{summary}
|
||||||
%{?python_provide:%python_provide python3-%{name}}
|
%{?python_provide:%python_provide python3-%{name}}
|
||||||
@ -49,31 +38,17 @@ Python 3 version.
|
|||||||
%autosetup -n %{srcname}-%{version} -p1
|
%autosetup -n %{srcname}-%{version} -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%py2_build
|
|
||||||
%py3_build
|
%py3_build
|
||||||
|
|
||||||
%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
|
||||||
|
|
||||||
%if %{with test}
|
%if %{with test}
|
||||||
%check
|
%check
|
||||||
%{__python2} runtests.py -vv
|
|
||||||
%{__python3} runtests.py -vv
|
%{__python3} runtests.py -vv
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%files -n python2-%{name}
|
|
||||||
%license LICENSE.txt COPYING.txt
|
|
||||||
%doc CHANGES.rst README.rst
|
|
||||||
%{python2_sitearch}/%{name}-*.egg-info/
|
|
||||||
%{python2_sitearch}/%{name}/
|
|
||||||
%{python2_sitearch}/pyximport/
|
|
||||||
%{python2_sitearch}/%{srcname}.py*
|
|
||||||
|
|
||||||
%files -n python3-%{name}
|
%files -n python3-%{name}
|
||||||
%license LICENSE.txt COPYING.txt
|
%license LICENSE.txt COPYING.txt
|
||||||
%doc CHANGES.rst README.rst
|
%doc CHANGES.rst README.rst
|
||||||
@ -88,6 +63,9 @@ rm -rf %{buildroot}%{python3_sitelib}/setuptools/tests
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Oct 30 2020 zhangtao <zhangtao221@huawei.com> - 0.29.14-4
|
||||||
|
- remove python2
|
||||||
|
|
||||||
* Fri Sep 11 2020 liuweibo <liuweibo10@huawei.com> - 0.29.14-3
|
* Fri Sep 11 2020 liuweibo <liuweibo10@huawei.com> - 0.29.14-3
|
||||||
- Fix Source0
|
- Fix Source0
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user