Accepting request 942640 from home:StefanBruens:branches:electronics

Disable ru PDF

OBS-URL: https://build.opensuse.org/request/show/942640
OBS-URL: https://build.opensuse.org/package/show/electronics/kicad-doc?expand=0&rev=51
This commit is contained in:
Stefan Brüns 2021-12-26 16:25:46 +00:00 committed by Git OBS Bridge
parent a340a25875
commit 94f2ce0319

View File

@ -207,7 +207,8 @@ cp /usr/share/dblatex/latex/graphics/warning.pdf CMakeSupport/
# SOURCE_DATE_EPOCH affirmation variable used by TeX
export FORCE_SOURCE_DATE=1
# Do not build PL translations, bad interaction of po4a, asciidoc and xetex (gh#KiCad/kicad-doc#697)
%cmake -DKICAD_DOC_PATH=%{_docdir}/kicad/help -DADOC_TOOLCHAIN=asciidoc -DPDF_GENERATOR=dblatex -DBUILD_FORMATS='pdf;' -DLANGUAGES='ca;de;en;es;fr;id;it;ja;ru;zh'
# RU also fails, "Undefined control sequence \cyrchar."
%cmake -DKICAD_DOC_PATH=%{_docdir}/kicad/help -DADOC_TOOLCHAIN=asciidoc -DPDF_GENERATOR=dblatex -DBUILD_FORMATS='pdf;' -DLANGUAGES='ca;de;en;es;fr;id;it;ja;zh'
%else
%cmake -DKICAD_DOC_PATH=%{_docdir}/kicad/help -DADOC_TOOLCHAIN=asciidoc -DBUILD_FORMATS='html;'
%endif
@ -255,10 +256,10 @@ done
%if %{without pdf}
%files pl
%{_docdir}/kicad/help/pl/
%endif
%files ru
%{_docdir}/kicad/help/ru/
%endif
%files zh
%{_docdir}/kicad/help/zh/