Drop font workarounds not needed with new sphinx_rtd_theme.
This commit is contained in:
parent
27bee4b858
commit
fb96ce1fef
@ -17,11 +17,6 @@ BuildRequires: python3-devel
|
|||||||
BuildRequires: %{py3_dist setuptools}
|
BuildRequires: %{py3_dist setuptools}
|
||||||
|
|
||||||
%if 0%{?rhel} == 0
|
%if 0%{?rhel} == 0
|
||||||
BuildRequires: fontawesome-fonts-web
|
|
||||||
BuildRequires: font(fontawesome)
|
|
||||||
BuildRequires: font(lato)
|
|
||||||
BuildRequires: font(robotoslab)
|
|
||||||
BuildRequires: fontconfig
|
|
||||||
BuildRequires: python3-docs
|
BuildRequires: python3-docs
|
||||||
BuildRequires: python3-numpy-doc
|
BuildRequires: python3-numpy-doc
|
||||||
BuildRequires: %{py3_dist decorator}
|
BuildRequires: %{py3_dist decorator}
|
||||||
@ -80,7 +75,6 @@ study of the structure, dynamics, and functions of complex networks.
|
|||||||
%if 0%{?rhel} == 0
|
%if 0%{?rhel} == 0
|
||||||
%package doc
|
%package doc
|
||||||
Summary: Documentation for networkx
|
Summary: Documentation for networkx
|
||||||
Requires: fontawesome-fonts-web
|
|
||||||
Requires: font(fontawesome)
|
Requires: font(fontawesome)
|
||||||
Requires: font(lato)
|
Requires: font(lato)
|
||||||
Requires: font(robotoslab)
|
Requires: font(robotoslab)
|
||||||
@ -115,21 +109,6 @@ sed -e "s|'https://docs\.python\.org/2/': None|'https://docs.python.org/': '%{_d
|
|||||||
# Build the documentation
|
# Build the documentation
|
||||||
PYTHONPATH=$PWD/build/lib make -C doc html
|
PYTHONPATH=$PWD/build/lib make -C doc html
|
||||||
rst2html --no-datestamp README.rst README.html
|
rst2html --no-datestamp README.rst README.html
|
||||||
|
|
||||||
# Do not bundle fonts into the documentation
|
|
||||||
cd doc/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 -
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%install
|
%install
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user