Rebuild for sphinxcontrib-bibtex 2.0.

This commit is contained in:
Jerry James 2020-12-23 19:41:59 -07:00
parent b08f4acb4c
commit 12dca2f74e
2 changed files with 25 additions and 22 deletions

View File

@ -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 = ""

View File

@ -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 <loganjerry@gmail.com> - 1.3.2-2
- Rebuild for sphinxcontrib-bibtex 2.0
* Sat Oct 3 2020 Jerry James <loganjerry@gmail.com> - 1.3.2-1
- Version 1.3.2