debian/control: Add support for the <!nodoc> Build-Profile

This commit is contained in:
Laurent Bigonville 2019-12-15 20:04:41 +01:00
parent 64f3199582
commit a4d3d4fb1e
3 changed files with 10 additions and 6 deletions

3
debian/changelog vendored
View file

@ -2,8 +2,9 @@ nut (2.7.4-11) UNRELEASED; urgency=medium
* Remove python(2) binding and disable nut-monitor package for now as it * Remove python(2) binding and disable nut-monitor package for now as it
depends on unmaintained pygtk (Closes: #885358, #937169) depends on unmaintained pygtk (Closes: #885358, #937169)
* debian/control: Add support for the <!nodoc> Build-Profile
-- Laurent Bigonville <bigon@debian.org> Sun, 15 Dec 2019 20:00:53 +0100 -- Laurent Bigonville <bigon@debian.org> Sun, 15 Dec 2019 20:04:18 +0100
nut (2.7.4-10) unstable; urgency=medium nut (2.7.4-10) unstable; urgency=medium

11
debian/control vendored
View file

@ -16,11 +16,11 @@ Build-Depends: debhelper (>= 12),
libusb-dev (>= 0.1.8), libusb-dev (>= 0.1.8),
libwrap0-dev (>= 7.6), libwrap0-dev (>= 7.6),
python3 python3
Build-Depends-Indep: asciidoc (>= 8.6.3), Build-Depends-Indep: asciidoc (>= 8.6.3) <!nodoc>,
asciidoc-dblatex, asciidoc-dblatex <!nodoc>,
dblatex (>= 0.2.5), dblatex (>= 0.2.5) <!nodoc>,
docbook-xsl, docbook-xsl <!nodoc>,
libxml2-utils libxml2-utils <!nodoc>
Standards-Version: 4.4.0 Standards-Version: 4.4.0
Homepage: https://networkupstools.org/ Homepage: https://networkupstools.org/
Vcs-Browser: https://salsa.debian.org/debian/nut Vcs-Browser: https://salsa.debian.org/debian/nut
@ -157,6 +157,7 @@ Architecture: all
Section: doc Section: doc
Depends: ${misc:Depends} Depends: ${misc:Depends}
Suggests: doc-base Suggests: doc-base
Build-Profiles: <!nodoc>
Description: network UPS tools - documentation Description: network UPS tools - documentation
Network UPS Tools (NUT) is a client/server monitoring system that Network UPS Tools (NUT) is a client/server monitoring system that
allows computers to share uninterruptible power supply (UPS) and allows computers to share uninterruptible power supply (UPS) and

2
debian/rules vendored
View file

@ -98,6 +98,7 @@ override_dh_auto_install-arch:
install -D -m 644 debian/source_nut.py $(CURDIR)/debian/tmp/usr/share/apport/package-hooks/source_nut-client.py install -D -m 644 debian/source_nut.py $(CURDIR)/debian/tmp/usr/share/apport/package-hooks/source_nut-client.py
override_dh_auto_install-indep: override_dh_auto_install-indep:
ifeq ($(filter nodoc,$(DEB_BUILD_PROFILES)),)
#install documentation #install documentation
mkdir -p $(CURDIR)/debian/tmp/usr/share/doc/nut-doc/pdf mkdir -p $(CURDIR)/debian/tmp/usr/share/doc/nut-doc/pdf
mkdir -p $(CURDIR)/debian/tmp/usr/share/doc/nut-doc/html mkdir -p $(CURDIR)/debian/tmp/usr/share/doc/nut-doc/html
@ -108,6 +109,7 @@ override_dh_auto_install-indep:
nf=`basename $${f} | sed 's/\(.*\)\.chunked/\1/'`; \ nf=`basename $${f} | sed 's/\(.*\)\.chunked/\1/'`; \
cp -a $${f} $(CURDIR)/debian/tmp/usr/share/doc/nut-doc/html/$${nf}/; \ cp -a $${f} $(CURDIR)/debian/tmp/usr/share/doc/nut-doc/html/$${nf}/; \
done done
endif
# install apport hooks # install apport hooks
install -D -m 644 debian/source_nut.py $(CURDIR)/debian/tmp/usr/share/apport/package-hooks/source_nut.py install -D -m 644 debian/source_nut.py $(CURDIR)/debian/tmp/usr/share/apport/package-hooks/source_nut.py