Accepting request 244202 from devel:languages:python

1

OBS-URL: https://build.opensuse.org/request/show/244202
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-numpy?expand=0&rev=40
This commit is contained in:
2014-08-13 15:19:54 +00:00
committed by Git OBS Bridge
parent 8e70cb220e
commit 4e6eac3f2b
6 changed files with 77 additions and 40 deletions

View File

@@ -17,16 +17,16 @@
%define modname numpy
Name: python-%{modname}-doc
Name: python-numpy-doc
%define docname numpydoc
Version: 1.8.1
Version: 1.8.2
Release: 0
%define docvers 0.4
Url: http://sourceforge.net/projects/numpy
Url: http://www.numpy.org/
Summary: Documentation for python-numpy
License: BSD-3-Clause
Group: Development/Libraries/Python
Source: %{modname}-%{version}.tar.gz
Source: https://pypi.python.org/packages/source/n/numpy/numpy-%{version}.tar.gz
Patch0: numpy-buildfix.patch
Patch1: numpy-double-double-le.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
@@ -67,9 +67,9 @@ basic linear algebra and random number generation.
This package provides the documentation for NumPy
%package html
Summary: HTML documentation for python-%{modname}
Summary: HTML documentation for python-numpy
Group: Development/Libraries/Python
Recommends: python-%{modname} = %{version}
Recommends: python-numpy = %{version}
%description html
NumPy is a general-purpose array-processing package designed to
@@ -86,9 +86,9 @@ basic linear algebra and random number generation.
This package provides the HTML documentation for NumPy
%package pdf
Summary: PDF documentation for python-%{modname}
Summary: PDF documentation for python-numpy
Group: Development/Libraries/Python
Recommends: python-%{modname} = %{version}
Recommends: python-numpy = %{version}
%description pdf
NumPy is a general-purpose array-processing package designed to
@@ -106,7 +106,7 @@ This package provides the PDF documentation for NumPy
%prep
%setup -q -n %{modname}-%{version}
%setup -q -n numpy-%{version}
%patch0 -p1
%patch1 -p1
@@ -118,19 +118,19 @@ make dist PYVER=%{py_ver}
%install
# install the documentation
cd doc
mkdir -p %{buildroot}%{_docdir}/python-%{modname}/{html,pdf}
tar -xzf build/dist.tar.gz -C %{buildroot}%{_docdir}/python-%{modname}/html
mv %{buildroot}%{_docdir}/python-%{modname}/html/*.pdf %{buildroot}%{_docdir}/python-%{modname}/pdf/
mkdir -p %{buildroot}%{_docdir}/python-numpy/{html,pdf}
tar -xzf build/dist.tar.gz -C %{buildroot}%{_docdir}/python-numpy/html
mv %{buildroot}%{_docdir}/python-numpy/html/*.pdf %{buildroot}%{_docdir}/python-numpy/pdf/
%fdupes %{buildroot}%{_docdir}/python-%{modname}/html/
%fdupes %{buildroot}%{_docdir}/python-%{modname}/pdf/
%fdupes %{buildroot}%{_docdir}/python-numpy/html/
%fdupes %{buildroot}%{_docdir}/python-numpy/pdf/
%files html
%defattr(-,root,root)
%{_docdir}/python-%{modname}/html/
%{_docdir}/python-numpy/html/
%files pdf
%defattr(-,root,root)
%{_docdir}/python-%{modname}/pdf/
%{_docdir}/python-numpy/pdf/
%changelog