1
0
forked from pool/python-flake8
python-flake8/python3-flake8.spec

69 lines
2.0 KiB
RPMSpec
Raw Normal View History

#
# spec file for package python-flake8
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
Name: python3-flake8
Version: 2.0
Release: 0
License: MIT
Summary: Modular source code checker: pep8, pyflakes and co
Url: http://bitbucket.org/tarek/flake8
Group: Development/Languages/Python
Source: http://pypi.python.org/packages/source/f/flake8/flake8-%{version}.tar.gz
BuildRequires: python3-devel
BuildRequires: python3-distribute
# Test requirements:
BuildRequires: python3-mccabe >= 0.2
BuildRequires: python3-nose
BuildRequires: python3-pep8 >= 1.4.3
BuildRequires: python3-pyflakes >= 0.6.1
Requires: python3-mccabe >= 0.2
Requires: python3-pep8 >= 1.4.3
Requires: python3-pyflakes >= 0.6.1
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%description
Flake8 is a wrapper around these tools:
- PyFlakes
- pep8
- Ned Batchelder's McCabe script
Flake8 runs all the tools by launching the single ``flake8`` script.
%prep
%setup -q -n flake8-%{version}
%build
python3 setup.py build
%install
python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
# Avoid file conflict with Python-2.x version:
mv %{buildroot}%{_bindir}/flake8{,-%{py3_ver}}
%check
python3 setup.py test
%files
%defattr(-,root,root,-)
%doc LICENSE README.rst
%{_bindir}/flake8-%{py3_ver}
%{python3_sitelib}/*
%changelog