Name: pyflakes Version: 2.3.1 Release: 5 Summary: A simple program which checks Python source files for errors License: MIT URL: https://github.com/PyCQA/pyflakes Source0: https://files.pythonhosted.org/packages/a8/0f/0dc480da9162749bf629dca76570972dd9cce5bedc60196a3c912875c87d/pyflakes-2.3.1.tar.gz BuildArch: noarch BuildRequires: python2-devel >= 2.7 python2-setuptools Patch0001: 0001-remove-old-and-unused-tracing-code-625.patch Patch0002: 0001-add-support-for-match-statement-630.patch Patch0003: 0001-Detect-typing-module-attributes-with-import-typing-a.patch Patch0004: 0001-fix-typo-annoation-annotation-636.patch %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 Requires: python3-setuptools %{?python_provide:%python_provide python%{python3_pkgversion}-%{name}} %description -n python3-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 help Summary: help document and man info %description help Help document and man info for pyflakes package %prep %autosetup -n pyflakes-2.3.1 -p1 %build %py2_build %py3_build %install %py3_install mv %{buildroot}%{_bindir}/pyflakes %{buildroot}%{_bindir}/pyflakes-%{python3_version} ln -s pyflakes-%{python3_version} %{buildroot}%{_bindir}/pyflakes-3 mkdir -p %{buildroot}%{_mandir}/man1 touch %{buildroot}%{_mandir}/man1/pyflakes-%{python3_version}.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 touch %{buildroot}%{_mandir}/man1/pyflakes-%{python2_version}.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 %files help %doc AUTHORS README.rst %{_mandir}/man1/* %changelog * Mon Dec 25 2023 liubo - 2.3.1-5 - fix typo: annoation -> annotation (#636) * Mon Dec 18 2023 liubo - 2.3.1-4 - Detect typing module attributes with 'import typing as * Thu Nov 23 2023 liubo - 2.3.1-3 - add support for match statement * Wed Nov 22 2023 liubo - 2.3.1-2 - remove old and unused "tracing" * Tue Oct 24 2023 luxuexian - 2.3.1-1 - Update to version 2.3.1 * Fri Nov 15 2019 zhujunhao - 2.0.0-8 - package init