Hello community, here is the log from the commit of package python-numpydoc for openSUSE:Factory checked in at 2017-05-18 20:51:22 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-numpydoc (Old) and /work/SRC/openSUSE:Factory/.python-numpydoc.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-numpydoc" Thu May 18 20:51:22 2017 rev:6 rq:495755 version:0.6.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-numpydoc/python-numpydoc.changes 2017-01-24 10:38:51.279945420 +0100 +++ /work/SRC/openSUSE:Factory/.python-numpydoc.new/python-numpydoc.changes 2017-05-18 20:51:24.041175697 +0200 @@ -1,0 +2,6 @@ +Wed May 17 21:42:03 UTC 2017 - [email protected] + +- Implement single-spec version. +- Fix source URL. + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-numpydoc.spec ++++++ --- /var/tmp/diff_new_pack.UNgFId/_old 2017-05-18 20:51:24.645090468 +0200 +++ /var/tmp/diff_new_pack.UNgFId/_new 2017-05-18 20:51:24.649089904 +0200 @@ -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 @@ 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 @@ %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/
