|
|
fb7b1e1 |
%global pypi_name nbconvert
|
|
|
fb7b1e1 |
|
|
|
fb7b1e1 |
Name: python-%{pypi_name}
|
|
|
fb7b1e1 |
Version: 4.2.0
|
|
|
268f084 |
Release: 6%{?dist}
|
|
|
fb7b1e1 |
Summary: Converting Jupyter Notebooks
|
|
|
fb7b1e1 |
|
|
|
fb7b1e1 |
License: BSD and MIT
|
|
|
fb7b1e1 |
URL: http://jupyter.org
|
|
|
fb7b1e1 |
Source0: https://files.pythonhosted.org/packages/source/n/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
|
|
|
fb7b1e1 |
BuildArch: noarch
|
|
|
fb7b1e1 |
|
|
|
fb7b1e1 |
BuildRequires: python-setuptools
|
|
|
fb7b1e1 |
BuildRequires: python2-devel
|
|
|
fb7b1e1 |
BuildRequires: python-sphinx
|
|
|
fb7b1e1 |
|
|
|
fb7b1e1 |
BuildRequires: python3-setuptools
|
|
|
fb7b1e1 |
BuildRequires: python3-devel
|
|
|
fb7b1e1 |
|
|
|
fb7b1e1 |
%description
|
|
|
fb7b1e1 |
The nbconvert tool, jupyter nbconvert, converts notebooks to various other
|
|
|
fb7b1e1 |
formats via Jinja templates. The nbconvert tool allows you to convert an
|
|
|
fb7b1e1 |
.ipynb notebook file into various static formats including HTML, LaTeX,
|
|
|
fb7b1e1 |
PDF, Reveal JS, Markdown (md), ReStructured Text (rst) and executable script.
|
|
|
fb7b1e1 |
|
|
|
fb7b1e1 |
%package -n python2-%{pypi_name}
|
|
|
fb7b1e1 |
Summary: Converting Jupyter Notebooks
|
|
|
fb7b1e1 |
%{?python_provide:%python_provide python2-%{pypi_name}}
|
|
|
fb7b1e1 |
|
|
|
fb7b1e1 |
Conflicts: python-mistune = 0.6
|
|
|
fb7b1e1 |
Requires: python-jinja2
|
|
|
fb7b1e1 |
Requires: python-pygments
|
|
|
fb7b1e1 |
Requires: python-traitlets
|
|
|
fb7b1e1 |
Requires: python-jupyter_core
|
|
|
fb7b1e1 |
Requires: python-nbformat
|
|
|
fb7b1e1 |
Requires: python-entrypoints
|
|
|
fb7b1e1 |
Requires: python-setuptools
|
|
|
fb7b1e1 |
|
|
|
fb7b1e1 |
%description -n python2-%{pypi_name}
|
|
|
fb7b1e1 |
|
|
|
fb7b1e1 |
The nbconvert tool, jupyter nbconvert, converts notebooks to various other
|
|
|
fb7b1e1 |
formats via Jinja templates. The nbconvert tool allows you to convert an
|
|
|
fb7b1e1 |
.ipynb notebook file into various static formats including HTML, LaTeX,
|
|
|
fb7b1e1 |
PDF, Reveal JS, Markdown (md), ReStructured Text (rst) and executable script.
|
|
|
fb7b1e1 |
|
|
|
fb7b1e1 |
%package -n python3-%{pypi_name}
|
|
|
fb7b1e1 |
Summary: Converting Jupyter Notebooks
|
|
|
fb7b1e1 |
%{?python_provide:%python_provide python3-%{pypi_name}}
|
|
|
fb7b1e1 |
|
|
|
fb7b1e1 |
Conflicts: python3-mistune = 0.6
|
|
|
fb7b1e1 |
Requires: python3-jinja2
|
|
|
fb7b1e1 |
Requires: python3-pygments
|
|
|
fb7b1e1 |
Requires: python3-traitlets
|
|
|
fb7b1e1 |
Requires: python3-jupyter_core
|
|
|
fb7b1e1 |
Requires: python3-nbformat
|
|
|
fb7b1e1 |
Requires: python3-entrypoints
|
|
|
fb7b1e1 |
Requires: python3-setuptools
|
|
|
fb7b1e1 |
|
|
|
fb7b1e1 |
|
|
|
fb7b1e1 |
%description -n python3-%{pypi_name}
|
|
|
fb7b1e1 |
|
|
|
fb7b1e1 |
The nbconvert tool, jupyter nbconvert, converts notebooks to various other
|
|
|
fb7b1e1 |
formats via Jinja templates. The nbconvert tool allows you to convert an
|
|
|
fb7b1e1 |
.ipynb notebook file into various static formats including HTML, LaTeX,
|
|
|
fb7b1e1 |
PDF, Reveal JS, Markdown (md), ReStructured Text (rst) and executable script.
|
|
|
fb7b1e1 |
|
|
|
fb7b1e1 |
%package -n python-%{pypi_name}-doc
|
|
|
fb7b1e1 |
Summary: Documentation for nbconvert
|
|
|
fb7b1e1 |
%description -n python-%{pypi_name}-doc
|
|
|
fb7b1e1 |
Documentation for nbconvert
|
|
|
fb7b1e1 |
|
|
|
fb7b1e1 |
%prep
|
|
|
fb7b1e1 |
%autosetup -n %{pypi_name}-%{version}
|
|
|
fb7b1e1 |
rm -rf %{pypi_name}.egg-info
|
|
|
fb7b1e1 |
|
|
|
fb7b1e1 |
%build
|
|
|
fb7b1e1 |
%py2_build
|
|
|
fb7b1e1 |
%py3_build
|
|
|
fb7b1e1 |
|
|
|
fb7b1e1 |
# generate html docs
|
|
|
fb7b1e1 |
sphinx-build docs/src/ipykernel/docs html
|
|
|
fb7b1e1 |
|
|
|
fb7b1e1 |
# remove the sphinx-build leftovers
|
|
|
fb7b1e1 |
rm -rf html/.{doctrees,buildinfo}
|
|
|
fb7b1e1 |
|
|
|
fb7b1e1 |
%install
|
|
|
040b559 |
|
|
|
fb7b1e1 |
%py3_install
|
|
|
040b559 |
mv %{buildroot}/%{_bindir}/jupyter-nbconvert %{buildroot}/%{_bindir}/jupyter-nbconvert-3
|
|
|
fb7b1e1 |
ln -sf %{_bindir}/jupyter-nbconvert-3 %{buildroot}/%{_bindir}/jupyter-nbconvert-%{python3_version}
|
|
|
fb7b1e1 |
|
|
|
040b559 |
# fix permissions and shebangs
|
|
|
040b559 |
sed -i '1s=^#!/usr/bin/\(python\|env python\)[23]\?=#!%{__python3}=' %{buildroot}%{python3_sitelib}/%{pypi_name}/nbconvertapp.py
|
|
|
fb7b1e1 |
chmod 755 %{buildroot}%{python3_sitelib}/%{pypi_name}/nbconvertapp.py
|
|
|
fb7b1e1 |
|
|
|
fb7b1e1 |
%py2_install
|
|
|
fb7b1e1 |
cp %{buildroot}/%{_bindir}/jupyter-nbconvert %{buildroot}/%{_bindir}/jupyter-nbconvert-2
|
|
|
fb7b1e1 |
ln -sf %{_bindir}/jupyter-nbconvert-2 %{buildroot}/%{_bindir}/jupyter-nbconvert-%{python2_version}
|
|
|
fb7b1e1 |
|
|
|
040b559 |
# fix permissions and shebangs
|
|
|
040b559 |
sed -i '1s=^#!/usr/bin/\(python\|env python\)[23]\?=#!%{__python2}=' %{buildroot}%{python2_sitelib}/%{pypi_name}/nbconvertapp.py
|
|
|
fb7b1e1 |
chmod 755 %{buildroot}%{python2_sitelib}/%{pypi_name}/nbconvertapp.py
|
|
|
fb7b1e1 |
|
|
|
fb7b1e1 |
%files -n python2-%{pypi_name}
|
|
|
fb7b1e1 |
%license COPYING.md
|
|
|
fb7b1e1 |
%doc docs/README.md
|
|
|
fb7b1e1 |
%{_bindir}/jupyter-nbconvert
|
|
|
fb7b1e1 |
%{_bindir}/jupyter-nbconvert-2
|
|
|
fb7b1e1 |
%{_bindir}/jupyter-nbconvert-%{python2_version}
|
|
|
fb7b1e1 |
%{python2_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
|
|
|
fb7b1e1 |
%{python2_sitelib}/%{pypi_name}/*
|
|
|
fb7b1e1 |
|
|
|
fb7b1e1 |
%files -n python3-%{pypi_name}
|
|
|
fb7b1e1 |
%license COPYING.md
|
|
|
fb7b1e1 |
%doc docs/README.md
|
|
|
fb7b1e1 |
%{_bindir}/jupyter-nbconvert-3
|
|
|
fb7b1e1 |
%{_bindir}/jupyter-nbconvert-%{python3_version}
|
|
|
fb7b1e1 |
%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
|
|
|
fb7b1e1 |
%{python3_sitelib}/%{pypi_name}/*
|
|
|
fb7b1e1 |
|
|
|
fb7b1e1 |
%files -n python-%{pypi_name}-doc
|
|
|
fb7b1e1 |
%doc html
|
|
|
fb7b1e1 |
|
|
|
fb7b1e1 |
%changelog
|
|
|
268f084 |
* Mon Dec 19 2016 Miro HronĨok <mhroncok@redhat.com> - 4.2.0-6
|
|
|
268f084 |
- Rebuild for Python 3.6
|
|
|
268f084 |
|
|
|
040b559 |
* Thu Nov 03 2016 Mukundan Ragavan <nonamedotc@fedoraproject.org> - 4.2.0-5
|
|
|
040b559 |
- Python dep chain fixed
|
|
|
040b559 |
- Fixes bug#1391124
|
|
|
040b559 |
|
|
|
acfadb1 |
* Wed Nov 02 2016 Mukundan Ragavan <nonamedotc@fedoraproject.org> - 4.2.0-4
|
|
|
acfadb1 |
- Fix pulling entire python{2,3} stack as deps
|
|
|
acfadb1 |
- Fixes bug#1391124
|
|
|
acfadb1 |
|
|
|
fb7b1e1 |
* Sun Oct 02 2016 Mukundan Ragavan <nonamedotc@fedoraproject.org> - 4.2.0-3
|
|
|
fb7b1e1 |
- Fix issues pointed out by rpmlint
|
|
|
fb7b1e1 |
- Fix license field
|
|
|
fb7b1e1 |
|
|
|
fb7b1e1 |
* Thu Aug 11 2016 Mukundan Ragavan <nonamedotc@fedoraproject.org> - 4.2.0-2
|
|
|
fb7b1e1 |
- Fix build errors
|
|
|
fb7b1e1 |
|
|
|
fb7b1e1 |
* Thu Aug 11 2016 Mukundan Ragavan <nonamedotc@gmail.com> - 4.2.0-1
|
|
|
fb7b1e1 |
- Initial package.
|