525025c
%global srcname pep8-naming
525025c
%global srcname_ pep8_naming
525025c
%global _description \
525025c
Check the PEP-8 naming conventions. \
525025c
This module provides a plugin for flake8, the Python code checker. \
525025c
(It replaces the plugin flint-naming for the flint checker.)
525025c
525025c
525025c
Name:           python-%{srcname}
525025c
Version:        0.4.1
e2e1ad5
Release:        5%{?dist}
525025c
Summary:        Check PEP-8 naming conventions, a plugin for flake8
525025c
525025c
License:        MIT
525025c
URL:            https://pypi.python.org/pypi/%{srcname}
525025c
Source0:        https://files.pythonhosted.org/packages/source/p/%{srcname}/%{srcname}-%{version}.tar.gz
2a81764
Source1:        https://raw.githubusercontent.com/PyCQA/pep8-naming/master/LICENSE
525025c
525025c
BuildArch:      noarch
525025c
525025c
BuildRequires:  python2-devel
2a81764
BuildRequires:  python2-flake8
525025c
525025c
BuildRequires:  python3-devel
525025c
BuildRequires:  python3-flake8
525025c
525025c
525025c
%description %{_description}
525025c
525025c
525025c
%package -n python2-%{srcname}
525025c
Summary:        %{summary}
525025c
%{?python_provide:%python_provide python2-%{srcname}}
2a81764
Requires:       python2-flake8
525025c
525025c
525025c
%description -n python2-%{srcname} %{_description}
525025c
525025c
525025c
%package -n python3-%{srcname}
525025c
Summary:        %{summary}
525025c
%{?python_provide:%python_provide python3-%{srcname}}
525025c
Requires:       python3-flake8
525025c
525025c
525025c
%description -n python3-%{srcname} %{_description}
525025c
525025c
525025c
%prep
525025c
%autosetup -n %{srcname}-%{version}
2a81764
cp -p %SOURCE1 .
525025c
525025c
525025c
%build
525025c
%py2_build
525025c
%py3_build
525025c
525025c
525025c
%install
525025c
%py2_install
525025c
%py3_install
525025c
525025c
525025c
%check
525025c
%{__python2} run_tests.py
525025c
%{__python3} run_tests.py
525025c
525025c
525025c
%files -n python2-%{srcname}
525025c
%doc README.rst
2a81764
%license LICENSE
525025c
%{python2_sitelib}/pep8ext_naming.py*
525025c
%{python2_sitelib}/%{srcname_}-%{version}-py?.?.egg-info
525025c
525025c
%files -n python3-%{srcname}
525025c
%doc README.rst
2a81764
%license LICENSE
525025c
%{python3_sitelib}/pep8ext_naming.py
525025c
%{python3_sitelib}/__pycache__/pep8ext_naming.*.py*
525025c
%{python3_sitelib}/%{srcname_}-%{version}-py?.?.egg-info
525025c
525025c
525025c
%changelog
e2e1ad5
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.1-5
e2e1ad5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
e2e1ad5
2a81764
* Fri Oct 27 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> 0.4.1-4
2a81764
- Use python2- BuildRequires/Requires.
2a81764
- Add license file to package.
2a81764
525025c
* Wed Oct 25 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> 0.4.1-3
525025c
- Enable tests during build.
525025c
- Simplify spec for Fedora.
525025c
525025c
* Thu Jun 08 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> 0.4.1-2
525025c
- Don't build python3-pep8-naming on EL7
525025c
525025c
* Tue Jun 6 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> 0.4.1-1
525025c
- New upstream release
525025c
525025c
* Tue Feb 16 2016 Elliott Sales de Andrade <quantum.analyst@gmail.com> 0.3.3-1
525025c
- Initial RPM release