orion pushed to python-numpydoc (master). "Fix conditionals for non-python3 case"
notifications at fedoraproject.org
notifications at fedoraproject.org
Wed Apr 1 17:13:27 UTC 2015
>From 541fc8b9537a76449f6ca65083162909aea99a2c Mon Sep 17 00:00:00 2001
From: Orion Poplawski <orion at cora.nwra.com>
Date: Wed, 1 Apr 2015 11:13:21 -0600
Subject: Fix conditionals for non-python3 case
diff --git a/python-numpydoc.spec b/python-numpydoc.spec
index 1e4c815..27eaad1 100644
--- a/python-numpydoc.spec
+++ b/python-numpydoc.spec
@@ -18,7 +18,7 @@ BuildRequires: python-nose
BuildRequires: python-sphinx
BuildRequires: python-matplotlib
-%if 0%{with_python3}
+%if 0%{?with_python3}
BuildRequires: python3-devel
BuildRequires: python3-nose
BuildRequires: python3-sphinx
@@ -30,7 +30,7 @@ BuildRequires: python2-tools
Numpydoc inserts a hook into Sphinx's autodoc that converts docstrings
following the Numpy/Scipy format to a form palatable to Sphinx.
-%if 0%{with_python3}
+%if 0%{?with_python3}
%package -n python3-numpydoc
Summary: Sphinx extension to support docstrings in Numpy format
%description -n python3-numpydoc
@@ -69,7 +69,7 @@ popd
%check
nosetests -v
-%if 0%{with_python3}
+%if 0%{?with_python3}
pushd %{py3dir}
%{_bindir}/nosetests-3* -v || :
popd
@@ -81,7 +81,7 @@ popd
%{python_sitelib}/numpydoc
%{python_sitelib}/numpydoc-%{version}-py?.?.egg-info
-%if 0%{with_python3}
+%if 0%{?with_python3}
%files -n python3-numpydoc
%doc LICENSE.txt README.rst
%{python3_sitelib}/numpydoc
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/python-numpydoc.git/commit/?h=master&id=541fc8b9537a76449f6ca65083162909aea99a2c
More information about the scm-commits
mailing list