Compare commits

..
2 Commits
+7 -7
View File
@@ -18,7 +18,7 @@ BuildRequires: python-nose
BuildRequires: python-sphinx BuildRequires: python-sphinx
BuildRequires: python-matplotlib BuildRequires: python-matplotlib
%if 0%{with_python3} %if 0%{?with_python3}
BuildRequires: python3-devel BuildRequires: python3-devel
BuildRequires: python3-nose BuildRequires: python3-nose
BuildRequires: python3-sphinx BuildRequires: python3-sphinx
@@ -30,7 +30,7 @@ BuildRequires: python2-tools
Numpydoc inserts a hook into Sphinx's autodoc that converts docstrings Numpydoc inserts a hook into Sphinx's autodoc that converts docstrings
following the Numpy/Scipy format to a form palatable to Sphinx. following the Numpy/Scipy format to a form palatable to Sphinx.
%if 0%{with_python3} %if 0%{?with_python3}
%package -n python3-numpydoc %package -n python3-numpydoc
Summary: Sphinx extension to support docstrings in Numpy format Summary: Sphinx extension to support docstrings in Numpy format
%description -n python3-numpydoc %description -n python3-numpydoc
@@ -42,7 +42,7 @@ following the Numpy/Scipy format to a form palatable to Sphinx.
%prep %prep
%setup -q -n numpydoc-%{version} %setup -q -n numpydoc-%{version}
%if %{?with_python3} %if 0%{?with_python3}
rm -rf %{py3dir} rm -rf %{py3dir}
cp -a . %{py3dir} cp -a . %{py3dir}
2to3 --write --nobackups %{py3dir} 2to3 --write --nobackups %{py3dir}
@@ -51,7 +51,7 @@ cp -a . %{py3dir}
%build %build
%{__python} setup.py build %{__python} setup.py build
%if %{?with_python3} %if 0%{?with_python3}
pushd %{py3dir} pushd %{py3dir}
%{__python3} setup.py build %{__python3} setup.py build
popd popd
@@ -59,7 +59,7 @@ popd
%install %install
%if %{?with_python3} %if 0%{?with_python3}
pushd %{py3dir} pushd %{py3dir}
%{__python3} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT %{__python3} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
popd popd
@@ -69,7 +69,7 @@ popd
%check %check
nosetests -v nosetests -v
%if 0%{with_python3} %if 0%{?with_python3}
pushd %{py3dir} pushd %{py3dir}
%{_bindir}/nosetests-3* -v || : %{_bindir}/nosetests-3* -v || :
popd popd
@@ -81,7 +81,7 @@ popd
%{python_sitelib}/numpydoc %{python_sitelib}/numpydoc
%{python_sitelib}/numpydoc-%{version}-py?.?.egg-info %{python_sitelib}/numpydoc-%{version}-py?.?.egg-info
%if 0%{with_python3} %if 0%{?with_python3}
%files -n python3-numpydoc %files -n python3-numpydoc
%doc LICENSE.txt README.rst %doc LICENSE.txt README.rst
%{python3_sitelib}/numpydoc %{python3_sitelib}/numpydoc