Temporarily disable docs.
This commit is contained in:
+11
-1
@@ -1,9 +1,11 @@
|
||||
%global srcname xarray
|
||||
%global data_commit 870b5d7a9dbfa821423f1b88056890c22341f085
|
||||
|
||||
%bcond_with docs
|
||||
|
||||
Name: python-%{srcname}
|
||||
Version: 0.12.3
|
||||
Release: 4%{?dist}
|
||||
Release: 5%{?dist}
|
||||
Summary: N-D labeled arrays and datasets in Python
|
||||
|
||||
License: ASL 2.0
|
||||
@@ -61,6 +63,7 @@ Summary: %{summary}
|
||||
%description -n python3-%{srcname} %{_description}
|
||||
|
||||
|
||||
%if %{with docs}
|
||||
%package -n python-%{srcname}-doc
|
||||
Summary: xarray documentation
|
||||
|
||||
@@ -79,14 +82,17 @@ BuildRequires: python3dist(zarr)
|
||||
|
||||
%description -n python-%{srcname}-doc
|
||||
Documentation for xarray
|
||||
%endif
|
||||
|
||||
|
||||
%prep
|
||||
%autosetup -n %{srcname}-%{version} -p1
|
||||
|
||||
%if %{with docs}
|
||||
# Provide example datasets for building docs.
|
||||
tar xf %SOURCE1 --transform='s~^\(%{srcname}-data-%{data_commit}/\)~\1.xarray_tutorial_data/~'
|
||||
cp -p %SOURCE2 ./doc/gallery/
|
||||
%endif
|
||||
|
||||
# Remove bundled egg-info
|
||||
rm -rf %{srcname}.egg-info
|
||||
@@ -95,12 +101,14 @@ rm -rf %{srcname}.egg-info
|
||||
%build
|
||||
%py3_build
|
||||
|
||||
%if %{with docs}
|
||||
# generate html docs
|
||||
pushd doc
|
||||
PYTHONPATH=${PWD}/.. HOME=${PWD}/../%{srcname}-data-%{data_commit} make html
|
||||
# remove the sphinx-build leftovers
|
||||
rm -rf _build/html/.{doctrees,buildinfo}
|
||||
popd
|
||||
%endif
|
||||
|
||||
|
||||
%install
|
||||
@@ -117,9 +125,11 @@ popd
|
||||
%{python3_sitelib}/%{srcname}
|
||||
%{python3_sitelib}/%{srcname}-%{version}-py?.?.egg-info
|
||||
|
||||
%if %{with docs}
|
||||
%files -n python-%{srcname}-doc
|
||||
%doc doc/_build/html
|
||||
%license LICENSE licenses/DASK_LICENSE licenses/NUMPY_LICENSE licenses/PANDAS_LICENSE licenses/PYTHON_LICENSE licenses/SEABORN_LICENSE
|
||||
%endif
|
||||
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user