Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Backports:SLE-15
python-jupyter_nbconvert-doc
python-jupyter_nbconvert-doc.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File python-jupyter_nbconvert-doc.spec of Package python-jupyter_nbconvert-doc
# # spec file for package python-jupyter_nbconvert-doc # # Copyright (c) 2018 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/ # # PDF docs currently broken %bcond_with pdf %bcond_without html %if 0%{?suse_version} && 0%{?suse_version} > 1320 %bcond_without tests %else %bcond_with tests %endif %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-jupyter_nbconvert-doc Version: 5.3.1 Release: 0 Summary: Documentation for python-jupyter_nbconvert License: BSD-3-Clause Group: Documentation/Other Url: https://github.com/jupyter/nbconvert Source: https://files.pythonhosted.org/packages/source/n/nbconvert/nbconvert-%{version}.tar.gz BuildRequires: %{python_module jupyter_nbconvert} BuildRequires: fdupes BuildRequires: python-rpm-macros %if %{with tests} # Test Requirements BuildRequires: %{python_module jupyter_ipykernel} BuildRequires: %{python_module nose} BuildRequires: %{python_module pytest} BuildRequires: %{python_module testpath} %endif # Documentation requirements %if %{with pdf} || %{with html} BuildRequires: pandoc BuildRequires: python3-Sphinx BuildRequires: python3-jupyter_nbsphinx %endif %if %{with pdf} BuildRequires: python3-Sphinx-latex BuildRequires: python3-jupyter_nbsphinx BuildRequires: texlive-bibtex BuildRequires: texlive-makeindex BuildRequires: tex(adjustbox.sty) BuildRequires: tex(eurosym.sty) BuildRequires: tex(ulem.sty) %endif BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch Provides: %{name}-html = %{version} Provides: %{name}-pdf = %{version} Obsoletes: %{name}-html < %{version} Obsoletes: %{name}-pdf < %{version} Provides: %{python_module jupyter_nbconvert-doc = %{version}} %description Documentation and help files for python-jupyter_nbconvert. %prep %setup -q -n nbconvert-%{version} %build # Build the documentation export LANG=en_US.UTF-8 pushd docs %if %{with html} make html rm -rf build/html/.buildinfo %endif %if %{with pdf} make latexpdf %endif popd %install mkdir -p %{buildroot}%{_docdir}/python-jupyter_nbconvert %if %{with pdf} cp docs/build/latex/*.pdf %{buildroot}%{_docdir}/python-jupyter_nbconvert/ %endif %if %{with html} cp -r docs/build/html %{buildroot}%{_docdir}/python-jupyter_nbconvert/ %endif %fdupes %{buildroot}%{_docdir}/python-jupyter_nbconvert/ %if %{with tests} %check pushd docs export LANG=en_US.UTF-8 %{python_expand $python -m ipykernel.kernelspec --user py.test-%{$python_bin_suffix} -v --pyargs -k 'not test_svg_handling' nbconvert } popd %endif %files %defattr(-,root,root,-) %doc LICENSE %{_docdir}/python-jupyter_nbconvert/ %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor