Name gawk
Description GNU awk, a pattern scanning and processing language
Version 1:5.2.1-2build3
Package Base
Homepage http://www.gnu.org/software/gawk/
Maintainers ['Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>']
Contributors []
Distro-repo https://git.launchpad.net/ubuntu/+source/gawk/tree/?h=ubuntu/noble
Sources ['https://git.launchpad.net/ubuntu/+source/gawk/plain/debian/patches/../?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/gawk/plain/debian/patches/0001-Build-pma-without-assertions-by-default.patch?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/gawk/plain/debian/patches/0002-Fix-field-assignment-bug.patch?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/gawk/plain/debian/patches/0003-Fix-possible-fd-leak-in-readdir-extension.patch?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/gawk/plain/debian/patches/series?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/gawk/plain/debian/watch?h=ubuntu/noble']
Dependencies ['libc6', 'libgmp10', 'libmpfr6', 'libreadline8t64', 'libsigsegv2']
Optional-Dependencies ['gawk-doc']
Build-Dependencies ['autotools-dev', 'bison', 'debhelper', 'gettext', 'libmpfr-dev', 'libreadline-dev', 'libsigsegv-dev', 'locales-all']
Provides []
Builddate
Architecture amd64
Distro-Version noble
Licenses []
Hash 4b662062e90f62ece26ca7adfcd3a33207c7862f3dc77b8df515b5680ee00ca9
#!/usr/bin/make -f

ifeq (sh4,$(shell dpkg-architecture -qDEB_HOST_ARCH))
  # Renesas SH(sh4) need -mieee option.
  # Without this option the fmtspcl test fails.
  export DEB_CFLAGS_MAINT_APPEND = -mieee
endif

LOCPATH=$(CURDIR)/debian/build/locales
LOCALIAS=/usr/share/locale/locale.alias

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- --disable-rpath
	touch --date="Jan 01 2000" \
	    doc/gawktexi.in doc/sidebar.awk \
	    doc/gawk.texi doc/gawk.info \
	    doc/gawkinet.texi doc/gawkinet.info \
	    doc/gawkworkflow.texi doc/gawkworkflow.info \
	    doc/pm-gawk.texi doc/pm-gawk.info

override_dh_auto_test:
	# Only run the testsuite if it's wanted.
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	make check
endif

override_dh_auto_install:
	dh_auto_install
	# Remove unwanted files.
	rm -f debian/gawk/usr/bin/*awk-*
	rm -f debian/gawk/usr/bin/awk
	# Remove fake info files (see README.source).
	rm -rf debian/gawk/usr/share/info

override_dh_auto_clean:
	dh_auto_clean
	rm -rf debian/build

override_dh_compress:
	# Don't compress awk examples.
	dh_compress --exclude=.awk