remove python2
This commit is contained in:
parent
080e3dc624
commit
e990cbe225
@ -6,7 +6,7 @@ based on C-like declarations that you can often copy-paste from header files or
|
||||
|
||||
Name: python-%{_name}
|
||||
Version: 1.14.0
|
||||
Release: 2
|
||||
Release: 3
|
||||
Summary: %{_summary}
|
||||
License: MIT
|
||||
URL: http://cffi.readthedocs.org
|
||||
@ -19,13 +19,6 @@ Buildrequires: gdb libffi-devel gcc-c++ gcc
|
||||
|
||||
%description %{_description}
|
||||
|
||||
%package -n python2-%{_name}
|
||||
Summary: %{_summary}
|
||||
Buildrequires: python2-devel python2-pycparser python2-pytest python2-setuptools
|
||||
%{?python_provide:%python_provide python2-%{_name}}
|
||||
|
||||
%description -n python2-%{_name} %{_description}
|
||||
|
||||
%package -n python3-%{_name}
|
||||
Summary: %{_summary}
|
||||
Buildrequires: python3-devel python3-pycparser python3-pytest python3-setuptools
|
||||
@ -39,24 +32,14 @@ Buildrequires: python3-devel python3-pycparser python3-pytest python3-setuptool
|
||||
%autosetup -n %{_name}-%{version} -p1
|
||||
|
||||
%build
|
||||
%py2_build
|
||||
%py3_build
|
||||
|
||||
%install
|
||||
%py2_install
|
||||
%py3_install
|
||||
|
||||
%check
|
||||
PYTHONPATH=%{buildroot}%{python2_sitearch} %{__python2} -m pytest c/ testing/
|
||||
PYTHONPATH=%{buildroot}%{python3_sitearch} %{__python3} -m pytest c/ testing/
|
||||
|
||||
%files -n python2-%{_name}
|
||||
%defattr(-,root,root)
|
||||
%doc LICENSE AUTHORS
|
||||
%{python2_sitearch}/%{_name}/*
|
||||
%{python2_sitearch}/%{_name}*info/
|
||||
%{python2_sitearch}/_%{_name}*.so
|
||||
|
||||
%files -n python3-%{_name}
|
||||
%defattr(-,root,root)
|
||||
%license LICENSE AUTHORS
|
||||
@ -69,6 +52,12 @@ PYTHONPATH=%{buildroot}%{python3_sitearch} %{__python3} -m pytest c/ testing/
|
||||
%doc PKG-INFO README.md
|
||||
|
||||
%changelog
|
||||
* Fri Oct 30 2020 wuchaochao <wuchaochao4@huawei.com> - 1.14.0-3
|
||||
- Type:bufix
|
||||
- CVE:NA
|
||||
- SUG:NA
|
||||
- DESC:remove python2
|
||||
|
||||
* Mon Aug 10 2020 tianwei <tianwei12@huawei.com> - 1.14.0.-2
|
||||
- Type:enhancement
|
||||
- ID:NA
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user