From: Elan Ruusamäe Date: Thu, 27 Nov 2014 21:38:39 +0000 (+0200) Subject: restore tabs X-Git-Tag: auto/th/python-pep8-1.5.7-1 X-Git-Url: http://git.pld-linux.org/gitweb.cgi?a=commitdiff_plain;h=719f753ba17c713864bffb9311f950cf36ff5917;p=packages%2Fpython-pep8.git restore tabs --- diff --git a/python-pep8.spec b/python-pep8.spec index c8553ef..8e73671 100644 --- a/python-pep8.spec +++ b/python-pep8.spec @@ -2,8 +2,8 @@ # Conditional build: %bcond_with tests # do not perform "make test" %bcond_without doc # Build API documentation -%bcond_without python2 # CPython 2.x module -%bcond_without python3 # CPython 3.x module +%bcond_without python2 # CPython 2.x module +%bcond_without python3 # CPython 3.x module %define module pep8 Summary: Python style guide checker @@ -20,12 +20,12 @@ BuildRequires: rpmbuild(macros) >= 1.219 %if %{with python2} BuildRequires: python-Sphinx BuildRequires: python-distribute -Requires: python-modules %endif %if %{with python3} BuildRequires: python3-Sphinx BuildRequires: python3-distribute %endif +Requires: python-modules BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) @@ -73,23 +73,22 @@ rm -rf _build/html/_sources %install rm -rf $RPM_BUILD_ROOT - %if %{with python2} %{__python} setup.py \ - build --build-base build-2 \ - install --skip-build \ - --optimize=2 \ - --root=$RPM_BUILD_ROOT + build --build-base build-2 \ + install --skip-build \ + --optimize=2 \ + --root=$RPM_BUILD_ROOT %py_postclean %endif %if %{with python3} %{__python3} setup.py \ - build --build-base build-3 \ - install --skip-build \ - --optimize=2 \ - --root=$RPM_BUILD_ROOT + build --build-base build-3 \ + install --skip-build \ + --optimize=2 \ + --root=$RPM_BUILD_ROOT %endif %clean