Implement <nodoc> build profile
This commit is contained in:
parent
64a4bfeb50
commit
f1e4258bad
|
|
@ -5,6 +5,7 @@ ostree (2017.7-1) UNRELEASED; urgency=medium
|
||||||
- Use https URL for copyright-format
|
- Use https URL for copyright-format
|
||||||
* debian/dist/: Add ostree-trivial-httpd.xml, which was incorrectly
|
* debian/dist/: Add ostree-trivial-httpd.xml, which was incorrectly
|
||||||
excluded from the upstream release
|
excluded from the upstream release
|
||||||
|
* Implement <nodoc> build profile
|
||||||
|
|
||||||
-- Simon McVittie <smcv@debian.org> Wed, 21 Jun 2017 10:07:42 +0100
|
-- Simon McVittie <smcv@debian.org> Wed, 21 Jun 2017 10:07:42 +0100
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -14,14 +14,15 @@ Build-Depends:
|
||||||
ca-certificates,
|
ca-certificates,
|
||||||
cpio,
|
cpio,
|
||||||
debhelper (>= 10~),
|
debhelper (>= 10~),
|
||||||
docbook-xml,
|
dh-exec,
|
||||||
docbook-xsl,
|
docbook-xml <!nodoc>,
|
||||||
|
docbook-xsl <!nodoc>,
|
||||||
e2fslibs-dev,
|
e2fslibs-dev,
|
||||||
elfutils,
|
elfutils,
|
||||||
fuse,
|
fuse,
|
||||||
gjs [!sparc64],
|
gjs [!sparc64],
|
||||||
gobject-introspection,
|
gobject-introspection,
|
||||||
gtk-doc-tools,
|
gtk-doc-tools <!nodoc>,
|
||||||
libarchive-dev,
|
libarchive-dev,
|
||||||
libattr1-dev,
|
libattr1-dev,
|
||||||
libcap-dev,
|
libcap-dev,
|
||||||
|
|
@ -38,7 +39,7 @@ Build-Depends:
|
||||||
procps,
|
procps,
|
||||||
python <!nocheck>,
|
python <!nocheck>,
|
||||||
python-yaml <!nocheck>,
|
python-yaml <!nocheck>,
|
||||||
xsltproc,
|
xsltproc <!nodoc>,
|
||||||
zlib1g-dev,
|
zlib1g-dev,
|
||||||
Standards-Version: 4.0.0
|
Standards-Version: 4.0.0
|
||||||
Homepage: https://github.com/ostreedev/ostree/
|
Homepage: https://github.com/ostreedev/ostree/
|
||||||
|
|
@ -105,6 +106,7 @@ Description: Development files for the ostree library
|
||||||
This package contains development headers and the pkg-config file for ostree.
|
This package contains development headers and the pkg-config file for ostree.
|
||||||
|
|
||||||
Package: libostree-doc
|
Package: libostree-doc
|
||||||
|
Build-Profiles: <!nodoc>
|
||||||
Architecture: all
|
Architecture: all
|
||||||
Multi-Arch: foreign
|
Multi-Arch: foreign
|
||||||
Section: doc
|
Section: doc
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,7 @@
|
||||||
|
#!/usr/bin/dh-exec
|
||||||
|
|
||||||
etc/ostree
|
etc/ostree
|
||||||
usr/bin/ostree
|
usr/bin/ostree
|
||||||
usr/bin/rofiles-fuse
|
usr/bin/rofiles-fuse
|
||||||
usr/share/man
|
usr/share/man <!nodoc>
|
||||||
usr/share/ostree/trusted.gpg.d
|
usr/share/ostree/trusted.gpg.d
|
||||||
|
|
|
||||||
|
|
@ -16,19 +16,27 @@ override_dh_autoreconf:
|
||||||
env NOCONFIGURE=1 dh_autoreconf ./autogen.sh
|
env NOCONFIGURE=1 dh_autoreconf ./autogen.sh
|
||||||
cp debian/dist/ostree-trivial-httpd.xml man/
|
cp debian/dist/ostree-trivial-httpd.xml man/
|
||||||
|
|
||||||
|
configure_options = \
|
||||||
|
--enable-installed-tests \
|
||||||
|
--enable-trivial-httpd-cmdline \
|
||||||
|
--libexecdir='$${prefix}/lib' \
|
||||||
|
--with-dracut \
|
||||||
|
--with-grub2 \
|
||||||
|
--with-grub2-mkconfig-path=/usr/sbin/grub-mkconfig \
|
||||||
|
--with-systemdsystemgeneratordir=/lib/systemd/system-generators \
|
||||||
|
--with-systemdsystemunitdir=/lib/systemd/system \
|
||||||
|
$(NULL)
|
||||||
|
|
||||||
|
ifeq (,$(filter nodoc,$(DEB_BUILD_PROFILES)))
|
||||||
|
configure_options += --enable-gtk-doc
|
||||||
|
configure_options += --enable-man
|
||||||
|
else
|
||||||
|
configure_options += --disable-gtk-doc
|
||||||
|
configure_options += --disable-man
|
||||||
|
endif
|
||||||
|
|
||||||
override_dh_auto_configure:
|
override_dh_auto_configure:
|
||||||
dh_auto_configure -- \
|
dh_auto_configure -- $(configure_options)
|
||||||
--disable-silent-rules \
|
|
||||||
--enable-gtk-doc \
|
|
||||||
--enable-installed-tests \
|
|
||||||
--enable-trivial-httpd-cmdline \
|
|
||||||
--libexecdir='$${prefix}/lib' \
|
|
||||||
--with-dracut \
|
|
||||||
--with-grub2 \
|
|
||||||
--with-grub2-mkconfig-path=/usr/sbin/grub-mkconfig \
|
|
||||||
--with-systemdsystemgeneratordir=/lib/systemd/system-generators \
|
|
||||||
--with-systemdsystemunitdir=/lib/systemd/system \
|
|
||||||
$(NULL)
|
|
||||||
|
|
||||||
override_dh_auto_test:
|
override_dh_auto_test:
|
||||||
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
|
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
|
||||||
|
|
@ -37,12 +45,14 @@ endif
|
||||||
|
|
||||||
override_dh_auto_install:
|
override_dh_auto_install:
|
||||||
dh_auto_install
|
dh_auto_install
|
||||||
|
ifeq (,$(filter nodoc,$(DEB_BUILD_PROFILES)))
|
||||||
# docbook-xsl capitalizes the whole heading, including the macro
|
# docbook-xsl capitalizes the whole heading, including the macro
|
||||||
# used to represent a single quote... https://bugs.debian.org/821235
|
# used to represent a single quote... https://bugs.debian.org/821235
|
||||||
sed -i -e 's,\*(AQ,*(Aq,g' \
|
sed -i -e 's,\*(AQ,*(Aq,g' \
|
||||||
debian/tmp/usr/share/man/man1/ostree-remote.1 \
|
debian/tmp/usr/share/man/man1/ostree-remote.1 \
|
||||||
debian/tmp/usr/share/man/man1/ostree-static-delta.1 \
|
debian/tmp/usr/share/man/man1/ostree-static-delta.1 \
|
||||||
$(NULL)
|
$(NULL)
|
||||||
|
endif
|
||||||
|
|
||||||
override_dh_install:
|
override_dh_install:
|
||||||
rm -f debian/tmp/usr/lib/*/*.la
|
rm -f debian/tmp/usr/lib/*/*.la
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue