File python3-jupyter_client-doc.spec of Package python3-jupyter_client
#
# spec file for package python3-jupyter_client-doc
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%if 0%{?suse_version} && ( 0%{?suse_version} != 1315 && 0%{?suse_version} > 1110 )
# LaTex documentation building currently broken
%define build_pdf 0
%else
%define build_pdf 0
%endif
Name: python3-jupyter_client-doc
Version: 4.3.0
Release: 0
Summary: Documentation for python3-jupyter_client
License: BSD-3-Clause
Group: Development/Languages/Python
Url: http://jupyter.org
Source: https://files.pythonhosted.org/packages/source/j/jupyter_client/jupyter_client-%{version}.tar.gz
BuildRequires: python3-jupyter_client
# Documentation requirements
BuildRequires: python3-Sphinx
%if %{build_pdf}
BuildRequires: python3-Sphinx-latex
%endif
Recommends: python3-jupyter_client = %{version}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
Provides: %{name}-html = %{version}
Provides: %{name}-pdf = %{version}
Obsoletes: %{name}-html < %{version}
Obsoletes: %{name}-pdf < %{version}
%description
Documentation and help files for python3-jupyter_client.
%prep
%setup -q -n jupyter_client-%{version}
%build
# Not needed
%install
# Build the documentation
pushd docs
%if %{build_pdf}
PYTHONPATH=%{buildroot}%{python3_sitelib} make latexpdf
%endif
PYTHONPATH=%{buildroot}%{python3_sitelib} make html
rm -rf _build/html/.buildinfo
popd
%files
%defattr(-,root,root,-)
%doc COPYING.md
%doc docs/_build/html/
%if %{build_pdf}
%doc docs/_build/latex/jupyter_core.pdf
%endif
%changelog