From e990cbe2257614c85d96b0ba6afbd84879e3630f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E8=B6=85=E8=B6=85?= Date: Fri, 30 Oct 2020 17:07:45 +0800 Subject: [PATCH] remove python2 --- python-cffi.spec | 25 +++++++------------------ 1 file changed, 7 insertions(+), 18 deletions(-) diff --git a/python-cffi.spec b/python-cffi.spec index 6772bc1..170cc84 100644 --- a/python-cffi.spec +++ b/python-cffi.spec @@ -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 - 1.14.0-3 +- Type:bufix +- CVE:NA +- SUG:NA +- DESC:remove python2 + * Mon Aug 10 2020 tianwei - 1.14.0.-2 - Type:enhancement - ID:NA -- Gitee