1
0

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:
2017-05-18 18:51:22 +00:00
committed by Git OBS Bridge
parent 475a38235b
commit 01fa827670
2 changed files with 27 additions and 15 deletions

View File

@@ -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

View File

@@ -16,6 +16,9 @@
#
%bcond_without tests
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-numpydoc
Version: 0.6.0
Release: 0
@@ -23,20 +26,20 @@ Summary: Sphinx extension to support docstrings in Numpy format
License: BSD-3-Clause
Group: Development/Languages/Python
Url: https://github.com/numpy/numpydoc
Source: https://pypi.io/packages/source/n/numpydoc/numpydoc-%{version}.tar.gz
BuildRequires: python-devel
BuildRequires: python-setuptools
# Test requirements
BuildRequires: python-Sphinx >= 1.0.1
BuildRequires: python-matplotlib
BuildRequires: python-nose
Source: https://files.pythonhosted.org/packages/source/n/numpydoc/numpydoc-%{version}.tar.gz
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: %{python_module devel >= 2.7.7}
BuildRequires: %{python_module setuptools}
%if %{with tests}
BuildRequires: %{python_module Sphinx >= 1.0.1}
BuildRequires: %{python_module matplotlib}
BuildRequires: %{python_module nose}
%endif
Requires: python-Sphinx >= 1.0.1
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
%endif
%python_subpackages
%description
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}
%build
python setup.py build
%python_build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%if %{with tests}
%check
python setup.py -q test
%python_exec setup.py -q test
%endif
%files
%files %{python_files}
%defattr(-,root,root,-)
%doc LICENSE.txt README.rst
%{python_sitelib}/numpydoc/