+#
+# Conditional build:
+%bcond_without tests # do not perform "make test"
+
Summary: The modular source code checker: pep8, pyflakes and co
Name: flake8
Version: 2.2.5
URL: https://pypi.python.org/pypi/flake8
BuildRequires: python3-modules
BuildRequires: rpm-pythonprov
+%if %{with tests}
+BuildRequires: python3-mccabe >= 0.2.1
+BuildRequires: python3-pep8 >= 1.5.7
+BuildRequires: python3-pyflakes >= 0.8.1
+%endif
Requires: python3-modules
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%setup -q
%build
-%{__python3} setup.py build --build-base build-3 %{?with_tests:test}
+%{__python3} setup.py build %{?with_tests:test}
%install
rm -rf $RPM_BUILD_ROOT
-
-%{__python3} setup.py \
- build --build-base build-3 \
- install --skip-build \
- --optimize=2 \
- --root=$RPM_BUILD_ROOT
+%{__python3} setup.py install \
+ --skip-build \
+ --optimize=2 \
+ --root=$RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT