From abc482e50f4a980032fb015084a27ba19f03474e Mon Sep 17 00:00:00 2001 From: Brad Bell Date: Tue, 20 Feb 2024 07:39:57 -0700 Subject: [PATCH] Changes to rawhide cppad.spec necessary for epel9 --- cppad.spec | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/cppad.spec b/cppad.spec index f539e2d..5cb8b25 100644 --- a/cppad.spec +++ b/cppad.spec @@ -97,8 +97,17 @@ echo '' >> CppAD-%{version}/xrst.toml echo '[input_files]' >> CppAD-%{version}/xrst.toml echo 'data = [ ]' >> CppAD-%{version}/xrst.toml # +# Epel9: does not yet have spellchecker so use pyenchant +echo '[spell_package]' >> CppAD-%{version}/xrst.toml +echo "data = 'pyenchant'" >> CppAD-%{version}/xrst.toml +# +# # CppAD-%%{version}/build/html -# run xrst to create the documentation files in the directory above +# run xrst to create the documentation files in the directory above. +# +# Epel9: Sphinx before 4.0 does not support root_doc file specification so use +# rst_only and then move xrst_root_doc.rst -> index.rst before runing sphinx. +# mkdir CppAD-%{version}/build xrst --version number_jobs=$(echo %{?_smp_mflags} | sed -e 's|[^0-9]*\([0-9]*\)[^0-9]*|\1|') @@ -107,6 +116,7 @@ then number_jobs='1' fi xrst \ + --rst_only \ --config_file CppAD-%{version}/xrst.toml \ --local_toc \ --target html \ @@ -116,6 +126,14 @@ xrst \ --number_jobs $number_jobs \ --suppress_spell_warnings # +# Epel9: +cd CppAD-%{version}/build +mv rst/xrst_root_doc.rst rst/index.rst +sphinx-build -b html rst html -j $number_jobs +rm -r html/_sources +mv rst/_sources html/_sources +cd ../.. +# # CppAD-%%{version}/build/html # remove hidden files not needed for viewing documentation rm CppAD-%{version}/build/html/.buildinfo @@ -265,6 +283,10 @@ make %{?_smp_mflags} check # This enables one to check that the necessary files are installed. # ---------------------------------------------------------------------------- %changelog +* Tue Feb 20 2024 Brad Bell - 20240000.3-1 +- Use in current rawhide to replace cppad.spec as first commit. +- Make changes needed for epel9 as second commit; See Epel9 in comments above. + * Sat Feb 17 2024 Brad Bell - 20240000.3-1 - This fixes a long standing bug; see the heading 02-14 on - https://cppad.readthedocs.io/latest/whats_new_24.html