## START: Set by rpmautospec ## (rpmautospec version 0.8.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec # Building the documentation requires packages not available from Fedora: # altair, coconut %bcond doc 0 # Build from git HEAD until a version supporting Sphinx 9 is released %global commit d7012c43b1ec57c2be6eaca455540f1cfdac4735 %global shortcommit %{sub %{commit} 1 7} %global gitdate 20260203 %global giturl https://github.com/executablebooks/MyST-NB Name: myst-nb Version: 1.3.0^%{gitdate}.%{shortcommit} Release: %autorelease Summary: Jupyter Notebook Sphinx reader License: BSD-3-Clause URL: https://myst-nb.readthedocs.io/ VCS: git:%{giturl}.git Source: %{giturl}/archive/%{commit}/%{name}-%{shortcommit}.tar.gz # Preliminary support for Sphinx 9 and docutils 0.22, may still be buggy Patch: %{giturl}/pull/704.patch BuildRequires: help2man %if %{with doc} BuildRequires: make %endif BuildArch: noarch BuildSystem: pyproject BuildOption(generate_buildrequires): -x testing%{?with_doc:,rtd} BuildOption(install): -L myst_nb %py_provides python3-%{name} %py_provides python3-MyST-NB %description MyST is a rich and extensible flavor of Markdown meant for technical documentation and publishing. It is designed for simplicity, flexibility, and extensibility. This package contains a reference implementation of MyST Markdown, as well as a collection of tools to support working with MyST in Python and Sphinx. It contains an extended CommonMark-compliant parser using markdown-it-py, as well as a Sphinx extension that allows you to write MyST Markdown in Sphinx. %if %{with doc} %package doc Summary: Documentation for %{name} %description doc Documentation for %{name}. %endif %prep %autosetup -n MyST-NB-%{commit} -p1 # Do not run coverage tools in RPM builds sed -i '/coverage/d;/pytest-cov/d' pyproject.toml # Permit newer versions of matplotlib sed -i 's/==/>=/' pyproject.toml %build -a %if %{with doc} # Build the documentation PYTHONPATH=$PWD make -C docs html rm docs/_build/html/.buildinfo %endif %install -a export PYTHONPATH=%{buildroot}%{python3_sitelib} mkdir -p %{buildroot}%{_mandir}/man1 makeman() { help2man -N -n "$2" --version-string='%{version}' %{buildroot}%{_bindir}/$1 \ -o %{buildroot}%{_mandir}/man1/$1.1 } makeman mystnb-docutils-html 'Generate (X)HTML documents from MyST sources' makeman mystnb-docutils-html5 'Generate HTML5 documents from MyST sources' makeman mystnb-docutils-latex 'Generate LaTeX documents from MyST sources' makeman mystnb-docutils-pseudoxml 'Generate pseudo-XML from MyST sources' makeman mystnb-docutils-xml 'Generate docutils-native XML from MyST sources' makeman mystnb-quickstart 'Create a basic MyST-NB project' makeman mystnb-to-jupyter 'Convert a text-based notebook to a Jupyter notebook' # TODO: Tests are disabled until a version supporting Sphinx 9 is released #%%check #%%pytest -v %files -n myst-nb -f %{pyproject_files} %doc CHANGELOG.md README.md %license LICENSE %{_bindir}/mystnb-docutils-html %{_bindir}/mystnb-docutils-html5 %{_bindir}/mystnb-docutils-latex %{_bindir}/mystnb-docutils-pseudoxml %{_bindir}/mystnb-docutils-xml %{_bindir}/mystnb-quickstart %{_bindir}/mystnb-to-jupyter %{_mandir}/man1/mystnb-docutils-html.1* %{_mandir}/man1/mystnb-docutils-html5.1* %{_mandir}/man1/mystnb-docutils-latex.1* %{_mandir}/man1/mystnb-docutils-pseudoxml.1* %{_mandir}/man1/mystnb-docutils-xml.1* %{_mandir}/man1/mystnb-quickstart.1* %{_mandir}/man1/mystnb-to-jupyter.1* %if %{with doc} %files doc %doc doc/_build/html %license LICENSE %endif %changelog ## START: Generated by rpmautospec * Sat Feb 28 2026 Jerry James - 1.3.0^20260203.d7012c4-1 - Update to git HEAD for preliminary Sphinx 9 support * Sat Jan 17 2026 Jerry James - 1.3.0-9 - Add upstream patch to adapt to newer Sphinx * Fri Jan 16 2026 Fedora Release Engineering - 1.3.0-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild * Fri Oct 17 2025 Jerry James - 1.3.0-7 - Do not run coverage tools in RPM builds * Mon Sep 22 2025 Jerry James - 1.3.0-6 - Update hashes to fix FTBFS (bz 2397409) - Use the pyproject declarative buildsystem * Fri Sep 19 2025 Python Maint - 1.3.0-5 - Rebuilt for Python 3.14.0rc3 bytecode * Tue Aug 19 2025 Jerry James - 1.3.0-4 - Update test hashes for newer matplotlib * Fri Aug 15 2025 Python Maint - 1.3.0-3 - Rebuilt for Python 3.14.0rc2 bytecode * Thu Jul 24 2025 Fedora Release Engineering - 1.3.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild * Mon Jul 14 2025 Jerry James - 1.3.0-1 - Version 1.3.0 * Thu Jun 12 2025 Jerry James - 1.2.0-4 - Update test hashes for newer matplotlib * Thu Jun 12 2025 Python Maint - 1.2.0-3 - Rebuilt for Python 3.14 * Tue Mar 18 2025 Jerry James - 1.2.0-2 - Ignore jupyter-core warnings (rhbz#2353124) * Fri Feb 07 2025 Jerry James - 1.2.0-1 - Version 1.2.0 * Fri Jan 17 2025 Fedora Release Engineering - 1.1.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Tue Jan 14 2025 Jerry James - 1.1.2-3 - Update test hashes for newer matplotlib * Wed Nov 27 2024 Richard W.M. Jones - 1.1.2-2 - Rebuild for libarrow 18 * Tue Sep 24 2024 Jerry James - 1.1.2-1 - Version 1.1.2 - Run the tests unconditionally * Mon Jul 22 2024 Jerry James - 1.1.1-1 - Initial RPM ## END: Generated by rpmautospec