debian: fix sphinx docs

- use dh_sphinxdoc to get rid of embedded JS

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
(cherry picked from commit e1e2ea84ee)
This commit is contained in:
David Lamparter 2023-01-02 13:39:35 +01:00
parent abc5653c9a
commit 3a42c62d81
2 changed files with 3 additions and 10 deletions

5
debian/control vendored
View file

@ -104,9 +104,8 @@ Package: frr-doc
Section: doc Section: doc
Architecture: all Architecture: all
Multi-Arch: foreign Multi-Arch: foreign
Depends: libjs-jquery, Depends: ${misc:Depends},
libjs-underscore, ${sphinxdoc:Depends}
${misc:Depends}
Suggests: frr Suggests: frr
Conflicts: quagga-doc Conflicts: quagga-doc
Description: FRRouting suite - user manual Description: FRRouting suite - user manual

8
debian/rules vendored
View file

@ -36,7 +36,7 @@ endif
export PYTHON=python3 export PYTHON=python3
%: %:
dh $@ -Bbuild dh $@ -Bbuild --with=sphinxdoc
override_dh_auto_configure: override_dh_auto_configure:
$(shell dpkg-buildflags --export=sh); \ $(shell dpkg-buildflags --export=sh); \
@ -93,12 +93,6 @@ override_dh_auto_install:
rm -rf debian/tmp/usr/include rm -rf debian/tmp/usr/include
-rm debian/tmp/usr/lib/frr/ssd -rm debian/tmp/usr/lib/frr/ssd
# use installed js libraries
-rm -f debian/tmp/usr/share/doc/frr/html/_static/jquery.js
ln -s /usr/share/javascript/jquery/jquery.js debian/tmp/usr/share/doc/frr/html/_static/jquery.js
-rm -f debian/tmp/usr/share/doc/frr/html/_static/underscore.js
ln -s /usr/share/javascript/underscore/underscore.js debian/tmp/usr/share/doc/frr/html/_static/underscore.js
override_dh_auto_build: override_dh_auto_build:
dh_auto_build -- $(MAKE_SILENT) dh_auto_build -- $(MAKE_SILENT)