From 0581305331f394049da96b14e2ae9d50bf7c5ac7 Mon Sep 17 00:00:00 2001 From: jackie_wu Date: Mon, 2 Nov 2020 09:53:13 +0800 Subject: [PATCH] disable python2 --- pyflakes.spec | 39 +++++---------------------------------- 1 file changed, 5 insertions(+), 34 deletions(-) diff --git a/pyflakes.spec b/pyflakes.spec index 01bf5f0..c1f993b 100644 --- a/pyflakes.spec +++ b/pyflakes.spec @@ -1,6 +1,6 @@ Name: pyflakes Version: 2.1.0 -Release: 1 +Release: 2 Summary: A simple program which checks Python source files for errors License: MIT URL: https://github.com/PyCQA/pyflakes @@ -8,25 +8,12 @@ Source0: https://files.pythonhosted.org/packages/source/p/%{name}/%{name} Source1: http://cdn.debian.net/debian/pool/main/p/pyflakes/pyflakes_2.0.0-1.debian.tar.xz Patch0001: %{name}-1.1.0-python3-man.patch BuildArch: noarch -BuildRequires: python2-devel >= 2.7 python2-setuptools %description This is a safe program which analyze programs and detects various errors.\ It works by parsing the source file and check for error.\ it's also much faster. -%package -n python2-pyflakes -Summary: A simple program which checks Python source files for errors -Requires: python2-setuptools -%{?python_provide:%python_provide python2-pyflakes} -Provides: pyflakes = %{version}-%{release} -Obsoletes: pyflakes < %{version}-%{release} - -%description -n python2-pyflakes -This is a safe program which analyze programs and detects various errors.\ -It works by parsing the source file and check for error.\ -it's also much faster. - %package -n python3-pyflakes Summary: A simple program which checks Python source files for errors BuildRequires: python3-devel python3-setuptools @@ -47,7 +34,6 @@ Help document and man info for pyflakes package %autosetup -a 1 -p1 %build -%py2_build %py3_build %install @@ -63,34 +49,16 @@ ln -s pyflakes-%{python3_version}.1 %{buildroot}%{_mandir}/man1/pyflakes-3.1 ln -s pyflakes-3 %{buildroot}%{_bindir}/python3-pyflakes ln -s pyflakes-3.1 %{buildroot}%{_mandir}/man1/python3-pyflakes.1 -%py2_install -mv %{buildroot}%{_bindir}/pyflakes %{buildroot}%{_bindir}/pyflakes-%{python2_version} -ln -s pyflakes-%{python2_version} %{buildroot}%{_bindir}/pyflakes-2 -mkdir -p %{buildroot}%{_mandir}/man1 -cp debian/pyflakes.1 %{buildroot}%{_mandir}/man1/pyflakes-%{python2_version}.1 -chmod 644 %{buildroot}%{_mandir}/man1/pyflakes-%{python2_version}.1 -touch %{buildroot}%{_mandir}/man1/pyflakes-%{python2_version}.1 -ln -s pyflakes-%{python2_version}.1 %{buildroot}%{_mandir}/man1/pyflakes-2.1 -ln -s pyflakes-3 %{buildroot}%{_bindir}/pyflakes -ln -s pyflakes-3.1 %{buildroot}%{_mandir}/man1/pyflakes.1 - %check -%{__python2} -Wall setup.py test %{__python3} -Wall setup.py test -%files -n python2-pyflakes -%license LICENSE -%{_bindir}/pyflakes-2* -%{python2_sitelib}/pyflakes* -%exclude %{python2_sitelib}/pyflakes/test/ - %files -n python3-pyflakes %license LICENSE %{_bindir}/pyflakes-3* %{_bindir}/python3-pyflakes %{python3_sitelib}/pyflakes* %exclude %{python3_sitelib}/pyflakes/test/ -%{_bindir}/pyflakes +#%{_bindir}/pyflakes %files help %doc AUTHORS README.rst NEWS.rst @@ -98,6 +66,9 @@ ln -s pyflakes-3.1 %{buildroot}%{_mandir}/man1/pyflakes.1 %changelog +* Wed Oct 21 2020 wutao - 2.1.0-2 +- delete python2 modules + * Tue Jun 23 2020 yanan li - 2.1.0-1 - Package update