diff --git a/python-flake8.spec b/python-flake8.spec index e60c930..625ea64 100644 --- a/python-flake8.spec +++ b/python-flake8.spec @@ -74,25 +74,27 @@ complexity checker is included, and it is extendable through flake8.extension entry points. %if %{with python3} -%package -n python3-%{modname} +%package -n python%{python3_pkgversion}-%{modname} Summary: Python code checking using pyflakes, pycodestyle, and mccabe -%{?python_provide:%python_provide python3-%{modname}} +%{?python_provide:%python_provide python%{python3_pkgversion}-%{modname}} -Requires: python3-setuptools -Requires: python3-mccabe %{mccabe_dep} -Requires: python3-pycodestyle %{pycodestyle_dep} -Requires: python3-pyflakes %{pyflakes_dep} +Obsoletes: python3-%{modname} < 3.3.0-3 -BuildRequires: python3-devel -BuildRequires: python3-setuptools -BuildRequires: python3-mccabe %{mccabe_dep} -BuildRequires: python3-pycodestyle %{pycodestyle_dep} -BuildRequires: python3-pyflakes %{pyflakes_dep} -BuildRequires: python3-mock -BuildRequires: python3-pytest-runner +Requires: python%{python3_pkgversion}-setuptools +Requires: python%{python3_pkgversion}-mccabe %{mccabe_dep} +Requires: python%{python3_pkgversion}-pycodestyle %{pycodestyle_dep} +Requires: python%{python3_pkgversion}-pyflakes %{pyflakes_dep} -%description -n python3-%{modname} +BuildRequires: python%{python3_pkgversion}-devel +BuildRequires: python%{python3_pkgversion}-setuptools +BuildRequires: python%{python3_pkgversion}-mccabe %{mccabe_dep} +BuildRequires: python%{python3_pkgversion}-pycodestyle %{pycodestyle_dep} +BuildRequires: python%{python3_pkgversion}-pyflakes %{pyflakes_dep} +BuildRequires: python%{python3_pkgversion}-mock +BuildRequires: python%{python3_pkgversion}-pytest-runner + +%description -n python%{python3_pkgversion}-%{modname} Flake8 is a wrapper around PyFlakes, pycodestyle, and Ned's McCabe script. It runs all the tools by launching the single flake8 script, and displays the warnings in a per-file, merged output. @@ -149,7 +151,7 @@ ln -s flake8-%{defaultpython} %{buildroot}%{_bindir}/flake8 %{python_sitelib}/%{modname}* %if %{with python3} -%files -n python3-%{modname} +%files -n python%{python3_pkgversion}-%{modname} %doc README.rst CONTRIBUTORS.txt %if %{defaultpython} == 3 %{_bindir}/flake8 @@ -164,6 +166,7 @@ ln -s flake8-%{defaultpython} %{buildroot}%{_bindir}/flake8 %changelog * Sun Jul 9 2017 Ville Skyttä - Point unversioned flake8 executable to Python 3 in F27+ +- Use python3_pkgversion in Python 3 package names * Fri May 26 2017 Ville Skyttä - 3.3.0-2 - Run tests with -Wall