Compare commits

...

8 Commits

Author SHA1 Message Date
Fedora Release Engineering b6c95b4e6e - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild 2016-02-04 20:18:41 +00:00
Peter Robinson 2d944a79cf - Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5 2015-11-10 16:30:32 +00:00
Dennis Gilmore d4743f7f7e - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild 2015-06-18 20:05:24 +00:00
Orion Poplawski 1ff0cf7a70 Really fix conditionals for non-python3 case 2015-04-01 11:14:41 -06:00
Orion Poplawski 541fc8b953 Fix conditionals for non-python3 case 2015-04-01 11:13:21 -06:00
Thomas Spura c782b7cb0e update to 0.5 and enable python3 subpackage (#1134171) 2014-08-27 08:45:28 +02:00
Dennis Gilmore d2b704435e - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild 2014-06-07 16:44:14 -05:00
Thomas Spura 5b379d4e9e Initial commit (#991370) 2013-08-06 15:51:46 +02:00
3 changed files with 117 additions and 0 deletions
+2
View File
@@ -0,0 +1,2 @@
/numpydoc-0.4.tar.gz
/numpydoc-0.5.tar.gz
+114
View File
@@ -0,0 +1,114 @@
%if 0%{?fedora} > 12
%global with_python3 1
%endif
Name: python-numpydoc
Version: 0.5
Release: 4%{?dist}
Summary: Sphinx extension to support docstrings in Numpy format
License: BSD
URL: https://pypi.python.org/pypi/numpydoc
Source0: https://pypi.python.org/packages/source/n/numpydoc/numpydoc-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python2-devel
BuildRequires: python-nose
BuildRequires: python-sphinx
BuildRequires: python-matplotlib
%if 0%{?with_python3}
BuildRequires: python3-devel
BuildRequires: python3-nose
BuildRequires: python3-sphinx
BuildRequires: python3-matplotlib
BuildRequires: python2-tools
%endif
%description
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}
%package -n python3-numpydoc
Summary: Sphinx extension to support docstrings in Numpy format
%description -n python3-numpydoc
Numpydoc inserts a hook into Sphinx's autodoc that converts docstrings
following the Numpy/Scipy format to a form palatable to Sphinx.
%endif
%prep
%setup -q -n numpydoc-%{version}
%if 0%{?with_python3}
rm -rf %{py3dir}
cp -a . %{py3dir}
2to3 --write --nobackups %{py3dir}
%endif
%build
%{__python} setup.py build
%if 0%{?with_python3}
pushd %{py3dir}
%{__python3} setup.py build
popd
%endif
%install
%if 0%{?with_python3}
pushd %{py3dir}
%{__python3} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
popd
%endif
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
%check
nosetests -v
%if 0%{?with_python3}
pushd %{py3dir}
%{_bindir}/nosetests-3* -v || :
popd
%endif
%files
%doc LICENSE.txt README.rst
%{python_sitelib}/numpydoc
%{python_sitelib}/numpydoc-%{version}-py?.?.egg-info
%if 0%{?with_python3}
%files -n python3-numpydoc
%doc LICENSE.txt README.rst
%{python3_sitelib}/numpydoc
%{python3_sitelib}/numpydoc-%{version}-py?.?.egg-info
%endif
%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
- BR python2-devel, python-sphinx, python-nose
- use macro in URL
- disable python3 package for now
* Fri Aug 2 2013 Thomas Spura <tomspur@fedoraproject.org> - 0.4-1
- initial package
+1
View File
@@ -0,0 +1 @@
6feac1f625ad0df5a11c7b60f920ac1b numpydoc-0.5.tar.gz