diff --git a/python-flake8.spec b/python-flake8.spec index 99cca90..afc57a0 100644 --- a/python-flake8.spec +++ b/python-flake8.spec @@ -23,27 +23,22 @@ Version: 3.8.1 Release: 0 Summary: Modular source code checker: pep8, pyflakes and co License: MIT -Group: Development/Languages/Python URL: https://gitlab.com/pycqa/flake8 Source: https://files.pythonhosted.org/packages/source/f/flake8/flake8-%{version}.tar.gz Patch0: fix-mock-patch-with-python3.4.patch BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros +Requires: python-importlib-metadata Requires: python-mccabe >= 0.6.0 Requires: python-pycodestyle >= 2.6.0~a1 Requires: python-pyflakes >= 2.1.0 Requires: python-typing -%if %{python3_version_nodots} < 38 -Requires: python-importlib-metadata -%endif Requires(post): update-alternatives Requires(postun): update-alternatives BuildArch: noarch # SECTION test requirements -%if %{python3_version_nodots} < 38 BuildRequires: %{python_module importlib-metadata} -%endif BuildRequires: %{python_module mccabe >= 0.6.0} BuildRequires: %{python_module mock} BuildRequires: %{python_module pycodestyle >= 2.6.0~a1} @@ -77,7 +72,6 @@ Flake8 runs all the tools by launching the single ``flake8`` script. %package -n %{name}-doc Summary: Documentation files for %{name} -Group: Documentation/Other Recommends: %{name} = %{version} %description -n %{name}-doc