forked from pool/python-numpydoc
Accepting request 495755 from devel:languages:python
1 OBS-URL: https://build.opensuse.org/request/show/495755 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-numpydoc?expand=0&rev=6
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed May 17 21:42:03 UTC 2017 - toddrme2178@gmail.com
|
||||||
|
|
||||||
|
- Implement single-spec version.
|
||||||
|
- Fix source URL.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Jan 20 21:04:08 UTC 2017 - toddrme2178@gmail.com
|
Fri Jan 20 21:04:08 UTC 2017 - toddrme2178@gmail.com
|
||||||
|
|
||||||
|
@@ -16,6 +16,9 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%bcond_without tests
|
||||||
|
|
||||||
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
Name: python-numpydoc
|
Name: python-numpydoc
|
||||||
Version: 0.6.0
|
Version: 0.6.0
|
||||||
Release: 0
|
Release: 0
|
||||||
@@ -23,20 +26,20 @@ Summary: Sphinx extension to support docstrings in Numpy format
|
|||||||
License: BSD-3-Clause
|
License: BSD-3-Clause
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
Url: https://github.com/numpy/numpydoc
|
Url: https://github.com/numpy/numpydoc
|
||||||
Source: https://pypi.io/packages/source/n/numpydoc/numpydoc-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/n/numpydoc/numpydoc-%{version}.tar.gz
|
||||||
BuildRequires: python-devel
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-setuptools
|
BuildRequires: python-rpm-macros
|
||||||
# Test requirements
|
BuildRequires: %{python_module devel >= 2.7.7}
|
||||||
BuildRequires: python-Sphinx >= 1.0.1
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: python-matplotlib
|
%if %{with tests}
|
||||||
BuildRequires: python-nose
|
BuildRequires: %{python_module Sphinx >= 1.0.1}
|
||||||
|
BuildRequires: %{python_module matplotlib}
|
||||||
|
BuildRequires: %{python_module nose}
|
||||||
|
%endif
|
||||||
Requires: python-Sphinx >= 1.0.1
|
Requires: python-Sphinx >= 1.0.1
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
|
||||||
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
||||||
%else
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%endif
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Numpy's documentation uses several custom extensions to Sphinx. These
|
Numpy's documentation uses several custom extensions to Sphinx. These
|
||||||
@@ -47,15 +50,18 @@ of them in third-party projects.
|
|||||||
%setup -q -n numpydoc-%{version}
|
%setup -q -n numpydoc-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
python setup.py build
|
%python_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
%python_install
|
||||||
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
|
%if %{with tests}
|
||||||
%check
|
%check
|
||||||
python setup.py -q test
|
%python_exec setup.py -q test
|
||||||
|
%endif
|
||||||
|
|
||||||
%files
|
%files %{python_files}
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc LICENSE.txt README.rst
|
%doc LICENSE.txt README.rst
|
||||||
%{python_sitelib}/numpydoc/
|
%{python_sitelib}/numpydoc/
|
||||||
|
Reference in New Issue
Block a user