## 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 %global giturl https://github.com/executablebooks/MyST-NB Name: myst-nb Version: 1.4.0 Release: %autorelease Summary: Jupyter Notebook Sphinx reader License: BSD-3-Clause URL: https://myst-nb.readthedocs.io/ VCS: git:%{giturl}.git Source: %{giturl}/archive/v%{version}/%{name}-%{version}.tar.gz 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-%{version} -p1 # Do not run coverage tools in RPM builds sed -i '/coverage/d;/pytest-cov/d' pyproject.toml # Permit newer versions of matplotlib for testing only. The newer version of # matplotlib causes some changes in test output; pyproject.toml says: # Matplotlib outputs are sensitive to the matplotlib version sed -i 's/==\([*.[:digit:]]*\)//' pyproject.toml sed -e 's/c8709f293454a3bd1403356f37bbab536df1c4d65becfd4cdcf84adf951c6820/6eb6048123e3f61d57d1974b38656227f18e9cb97543c8d59b4418c7c2d40a17/g' \ -e 's/9af310c61f9e96d898144e35f0dc3bf6757626c2072ad98732a4d71c1ec5ec59/321b226a9bda4595da09f9389cea3b97e91b9c089e9bab3feae10e2100fc5c38/g' \ -i tests/test_execute/test_complex_outputs_unrun_{auto,cache}.xml \ tests/test_execute/test_custom_convert_{auto,cache}.xml \ tests/test_execute/test_custom_convert_multiple_extensions_{auto,cache}.xml %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' %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 * Mon Mar 02 2026 Jerry James - 1.4.0-1 - Version 1.4.0 * 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