orion pushed to python-numpydoc (master). "Really fix conditionals for non-python3 case"
notifications at fedoraproject.org
notifications at fedoraproject.org
Wed Apr 1 17:14:47 UTC 2015
>From 1ff0cf7a7032d3c51d224ddc35b1732ec166a3c7 Mon Sep 17 00:00:00 2001
From: Orion Poplawski <orion at cora.nwra.com>
Date: Wed, 1 Apr 2015 11:14:41 -0600
Subject: Really fix conditionals for non-python3 case
diff --git a/python-numpydoc.spec b/python-numpydoc.spec
index 27eaad1..a87f247 100644
--- a/python-numpydoc.spec
+++ b/python-numpydoc.spec
@@ -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
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/python-numpydoc.git/commit/?h=master&id=1ff0cf7a7032d3c51d224ddc35b1732ec166a3c7
More information about the scm-commits
mailing list