Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b6c95b4e6e | ||
|
|
2d944a79cf | ||
|
|
d4743f7f7e | ||
|
|
1ff0cf7a70 | ||
|
|
541fc8b953 | ||
|
|
c782b7cb0e | ||
|
|
d2b704435e |
@@ -1 +1,2 @@
|
|||||||
/numpydoc-0.4.tar.gz
|
/numpydoc-0.4.tar.gz
|
||||||
|
/numpydoc-0.5.tar.gz
|
||||||
|
|||||||
+28
-17
@@ -1,13 +1,11 @@
|
|||||||
%if 0%{?fedora} > 12
|
%if 0%{?fedora} > 12
|
||||||
# Disabled for now untill a new release will be on pypi with these patches:
|
%global with_python3 1
|
||||||
# https://github.com/numpy/numpy/pull/2994
|
|
||||||
%global with_python3 0
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
|
||||||
Name: python-numpydoc
|
Name: python-numpydoc
|
||||||
Version: 0.4
|
Version: 0.5
|
||||||
Release: 2%{?dist}
|
Release: 4%{?dist}
|
||||||
Summary: Sphinx extension to support docstrings in Numpy format
|
Summary: Sphinx extension to support docstrings in Numpy format
|
||||||
|
|
||||||
License: BSD
|
License: BSD
|
||||||
@@ -20,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
|
||||||
@@ -32,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
|
||||||
@@ -44,17 +42,16 @@ 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}
|
||||||
sed -i "s/\.docscrape/docscrape/g" %{py3dir}/docscrape_sphinx.py
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%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
|
||||||
@@ -62,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
|
||||||
@@ -72,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
|
||||||
@@ -80,20 +77,34 @@ popd
|
|||||||
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%doc LICENSE.txt
|
%doc LICENSE.txt README.rst
|
||||||
%{_bindir}/autosummary_generate
|
|
||||||
%{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
|
%doc LICENSE.txt README.rst
|
||||||
%{_bindir}/autosummary_generate
|
|
||||||
%{python3_sitelib}/numpydoc
|
%{python3_sitelib}/numpydoc
|
||||||
%{python3_sitelib}/numpydoc-%{version}-py?.?.egg-info
|
%{python3_sitelib}/numpydoc-%{version}-py?.?.egg-info
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.5-4
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
||||||
|
|
||||||
|
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5-3
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
|
||||||
|
|
||||||
|
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
||||||
|
|
||||||
|
* Wed Aug 27 2014 Thomas Spura <tomspur@fedoraproject.org> - 0.5-1
|
||||||
|
- update to 0.5 (#1134171)
|
||||||
|
- enable python3 subpackage
|
||||||
|
|
||||||
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4-3
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
||||||
|
|
||||||
* Mon Aug 5 2013 Thomas Spura <tomspur@fedoraproject.org> - 0.4-2
|
* Mon Aug 5 2013 Thomas Spura <tomspur@fedoraproject.org> - 0.4-2
|
||||||
- BR python2-devel, python-sphinx, python-nose
|
- BR python2-devel, python-sphinx, python-nose
|
||||||
- use macro in URL
|
- use macro in URL
|
||||||
|
|||||||
Reference in New Issue
Block a user