Really fix conditionals for non-python3 case

This commit is contained in:
Orion Poplawski
2015-04-01 11:14:41 -06:00
parent 541fc8b953
commit 1ff0cf7a70
+3 -3
View File
@@ -42,7 +42,7 @@ following the Numpy/Scipy format to a form palatable to Sphinx.
%prep
%setup -q -n numpydoc-%{version}
%if %{?with_python3}
%if 0%{?with_python3}
rm -rf %{py3dir}
cp -a . %{py3dir}
2to3 --write --nobackups %{py3dir}
@@ -51,7 +51,7 @@ cp -a . %{py3dir}
%build
%{__python} setup.py build
%if %{?with_python3}
%if 0%{?with_python3}
pushd %{py3dir}
%{__python3} setup.py build
popd
@@ -59,7 +59,7 @@ popd
%install
%if %{?with_python3}
%if 0%{?with_python3}
pushd %{py3dir}
%{__python3} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
popd