diff --git a/libsemigroups-sphinxcontrib-bibtex.patch b/libsemigroups-sphinxcontrib-bibtex.patch new file mode 100644 index 0000000..968fc1e --- /dev/null +++ b/libsemigroups-sphinxcontrib-bibtex.patch @@ -0,0 +1,18 @@ +--- a/docs/source/biblio.rst.orig 2020-06-24 07:43:36.521432028 -0600 ++++ b/docs/source/biblio.rst 2020-12-21 20:43:31.623206629 -0700 +@@ -9,4 +9,3 @@ Bibliography + + .. bibliography:: libsemigroups.bib + :all: +- :encoding: utf-8 +--- a/docs/source/conf.py.orig 2020-08-14 09:42:02.469742130 -0600 ++++ b/docs/source/conf.py 2020-12-21 20:43:19.992230981 -0700 +@@ -37,6 +37,8 @@ project = "libsemigroups" + copyright = "2019-20, J. D. Mitchell" + author = "J. D. Mitchell" + cpp_index_common_prefix = ["libsemigroups::"] ++bibtex_bibfiles = ['libsemigroups.bib'] ++bibtex_encoding = 'utf-8' + + html_logo = "" + diff --git a/libsemigroups.spec b/libsemigroups.spec index cdc0a74..c3f1a29 100644 --- a/libsemigroups.spec +++ b/libsemigroups.spec @@ -1,6 +1,6 @@ Name: libsemigroups Version: 1.3.2 -Release: 1%{?dist} +Release: 2%{?dist} Summary: C++ library for semigroups and monoids License: GPLv3+ @@ -8,13 +8,10 @@ URL: https://github.com/libsemigroups/libsemigroups Source0: %{url}/releases/download/v%{version}/%{name}-%{version}.tar.gz # Fix bugs in the configure code Patch0: %{name}-autoconf.patch +# Adapt to sphinxcontrib-bibtex 2.x +Patch1: %{name}-sphinxcontrib-bibtex.patch BuildRequires: doxygen -BuildRequires: fontawesome-fonts-web -BuildRequires: font(fontawesome) -BuildRequires: font(lato) -BuildRequires: font(robotoslab) -BuildRequires: fontconfig BuildRequires: gcc-c++ BuildRequires: libtool BuildRequires: make @@ -92,7 +89,6 @@ Header files for developing applications that use %{name}. %package doc Summary: Documentation for %{name} BuildArch: noarch -Requires: fontawesome-fonts-web Requires: font(fontawesome) Requires: font(lato) Requires: font(robotoslab) @@ -124,24 +120,10 @@ sed -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \ %make_build %make_build doc +%make_build doc rst2html --no-datestamp README.rst README.html rm docs/build/html/.buildinfo -# Do not bundle fonts into the documentation -cd docs/build/html/_static/fonts -for suffix in eot svg ttf woff woff2; do - rm fontawesome-webfont.$suffix - ln -s %{_datadir}/fonts/fontawesome/fontawesome-webfont.$suffix . -done -rm {Lato,RobotoSlab}/*.ttf -ln -s $(fc-match -f "%%{file}" "lato:bold") Lato/lato-bold.ttf -ln -s $(fc-match -f "%%{file}" "lato:bold:italic") Lato/lato-bolditalic.ttf -ln -s $(fc-match -f "%%{file}" "lato:italic") Lato/lato-italic.ttf -ln -s $(fc-match -f "%%{file}" "lato") Lato/lato-regular.ttf -ln -s $(fc-match -f "%%{file}" "robotoslab:bold") RobotoSlab/roboto-slab-v7-bold.ttf -ln -s $(fc-match -f "%%{file}" "robotoslab") RobotoSlab/roboto-slab-v7-regular.ttf -cd - - %install %make_install rm -f %{buildroot}%{_libdir}/*.la @@ -179,6 +161,9 @@ LD_LIBRARY_PATH=$PWD/.libs make check %license LICENSE %changelog +* Wed Dec 23 2020 Jerry James - 1.3.2-2 +- Rebuild for sphinxcontrib-bibtex 2.0 + * Sat Oct 3 2020 Jerry James - 1.3.2-1 - Version 1.3.2