3 %bcond_without python2 # CPython 2.x module
4 %bcond_without python3 # CPython 3.x module
5 %bcond_without tests # do not perform "make test"
7 Summary: The modular source code checker: pep8, pyflakes and co
8 Summary(pl.UTF-8): Modularne narzędzie do sprawdzania kodu źródłowego: pep8, pyflakes itp.
13 Group: Development/Tools
14 #Source0Download: https://pypi.python.org/simple/flake8/
15 Source0: https://pypi.python.org/packages/source/f/flake8/%{name}-%{version}.tar.gz
16 # Source0-md5: a4585b3569b95c3f66acb8294a7f06ef
17 URL: https://pypi.python.org/pypi/flake8
18 BuildRequires: rpmbuild(macros) >= 1.714
19 BuildRequires: rpm-pythonprov
21 BuildRequires: python-modules >= 1:2.5
22 BuildRequires: python-setuptools
24 BuildRequires: python-mccabe >= 0.2.1
25 BuildRequires: python-mock
26 BuildRequires: python-nose
27 BuildRequires: python-pep8 >= 1.5.7
28 BuildRequires: python-pyflakes >= 0.8.1
32 BuildRequires: python3-modules >= 1:3.2
33 BuildRequires: python3-setuptools
35 BuildRequires: python3-mccabe >= 0.2.1
36 BuildRequires: python3-nose
37 BuildRequires: python3-pep8 >= 1.5.7
38 BuildRequires: python3-pyflakes >= 0.8.1
42 Requires: python3-flake8 = %{version}-%{release}
44 Requires: python-flake8 = %{version}-%{release}
47 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
50 The modular source code checker. It is a wrapper around these tools:
53 - Ned Batchelder's McCabe script
55 %description -l pl.UTF-8
56 Modularne narzędzie do sprawdzania kodu źródłowego. Jest to opakowanie
60 - skrypt McCabe autorstwa Neda Batcheldera
62 %package -n python-flake8
63 Summary: The modular source code checker: pep8, pyflakes and co
64 Summary(pl.UTF-8): Modularne narzędzie do sprawdzania kodu źródłowego: pep8, pyflakes itp.
65 Group: Libraries/Python
66 Requires: python-modules
68 %description -n python-flake8
69 The modular source code checker. It is a wrapper around these tools:
72 - Ned Batchelder's McCabe script
74 %description -n python-flake8 -l pl.UTF-8
75 Modularne narzędzie do sprawdzania kodu źródłowego. Jest to opakowanie
79 - skrypt McCabe autorstwa Neda Batcheldera
81 %package -n python3-flake8
82 Summary: The modular source code checker: pep8, pyflakes and co
83 Summary(pl.UTF-8): Modularne narzędzie do sprawdzania kodu źródłowego: pep8, pyflakes itp.
84 Group: Libraries/Python
85 Requires: python3-modules
87 %description -n python3-flake8
88 The modular source code checker. It is a wrapper around these tools:
91 - Ned Batchelder's McCabe script
93 %description -n python3-flake8 -l pl.UTF-8
94 Modularne narzędzie do sprawdzania kodu źródłowego. Jest to opakowanie
98 - skrypt McCabe autorstwa Neda Batcheldera
105 %py_build %{?with_tests:test}
109 %py3_build %{?with_tests:test}
113 rm -rf $RPM_BUILD_ROOT
117 cp -p $RPM_BUILD_ROOT%{_bindir}/flake8{,-2}
123 cp -p $RPM_BUILD_ROOT%{_bindir}/flake8{,-3}
127 rm -rf $RPM_BUILD_ROOT
130 %defattr(644,root,root,755)
131 %doc CHANGES.rst CONTRIBUTORS.txt LICENSE README.rst
132 %attr(755,root,root) %{_bindir}/flake8
135 %files -n python-flake8
136 %defattr(644,root,root,755)
137 %attr(755,root,root) %{_bindir}/flake8-2
138 %{py_sitescriptdir}/flake8
139 %{py_sitescriptdir}/flake8-%{version}-py*.egg-info
143 %files -n python3-flake8
144 %defattr(644,root,root,755)
145 %attr(755,root,root) %{_bindir}/flake8-3
146 %{py3_sitescriptdir}/flake8
147 %{py3_sitescriptdir}/flake8-%{version}-py*.egg-info