From eb1ce2fd34b64b5b19b442128ea86e75840d56c7 Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Oct 17 2020 22:17:40 +0000 Subject: Add explicit setuptools BR; minor cleanup. --- diff --git a/python-pep8-naming.spec b/python-pep8-naming.spec index 908c1df..59aff19 100644 --- a/python-pep8-naming.spec +++ b/python-pep8-naming.spec @@ -18,18 +18,17 @@ Source0: %pypi_source BuildArch: noarch BuildRequires: python3-devel -BuildRequires: python3-flake8 +BuildRequires: python3dist(setuptools) +BuildRequires: python3dist(flake8) BuildRequires: (python3dist(flake8-polyfill) >= 1.0.2 with python3dist(flake8-polyfill) < 2) - %description %{_description} %package -n python3-%{srcname} Summary: %{summary} %{?python_provide:%python_provide python3-%{srcname}} -Requires: python3-flake8 - +Requires: python3dist(flake8) %description -n python3-%{srcname} %{_description} @@ -55,7 +54,7 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} %{python3} run_tests.py %license LICENSE %{python3_sitelib}/pep8ext_naming.py %{python3_sitelib}/__pycache__/pep8ext_naming.*.py* -%{python3_sitelib}/%{srcname_}-%{version}-py*.egg-info +%{python3_sitelib}/%{srcname_}-%{version}-py%{python3_version}.egg-info %changelog