Changes to rawhide cppad.spec necessary for epel9

This commit is contained in:
Brad Bell 2024-02-20 07:39:57 -07:00
commit abc482e50f

View file

@ -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 <bradbell at seanet dot com> - 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 <bradbell at seanet dot com> - 20240000.3-1
- This fixes a long standing bug; see the heading 02-14 on
- https://cppad.readthedocs.io/latest/whats_new_24.html