Name libparted2t64
Description disk partition manipulator - shared library
Version 3.6-4build1
Package Base parted
Homepage https://www.gnu.org/software/parted
Maintainers ['Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>']
Contributors ['Bastian Blank <waldi@debian.org>', 'Colin Watson <cjwatson@debian.org>']
Distro-repo https://git.launchpad.net/ubuntu/+source/parted/tree/?h=ubuntu/noble
Sources ['https://git.launchpad.net/ubuntu/+source/libparted2t64/plain/debian/watch?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/parted/plain/debian/patches/../?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/parted/plain/debian/patches/align-new-partitions-on-fresh-disks.patch?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/parted/plain/debian/patches/doc-package.patch?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/parted/plain/debian/patches/freebsd-geli.patch?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/parted/plain/debian/patches/freebsd-ufs.patch?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/parted/plain/debian/patches/freebsd-zvol.patch?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/parted/plain/debian/patches/gptsync.patch?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/parted/plain/debian/patches/kfreebsd-gnu.patch?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/parted/plain/debian/patches/kfreebsd_lvm.patch?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/parted/plain/debian/patches/link-libuuid.patch?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/parted/plain/debian/patches/preserve-hidden-parts.patch?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/parted/plain/debian/patches/probe-lvs-again.patch?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/parted/plain/debian/patches/series?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/parted/plain/debian/patches/udevadm-settle.patch?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/parted/plain/debian/patches/zfs.patch?h=ubuntu/noble']
Dependencies ['dmidecode', 'libblkid1', 'libc6', 'libdevmapper1.02.1', 'libuuid1']
Optional-Dependencies ['libparted-dev', 'libparted-i18n', 'parted']
Build-Dependencies ['dpkg-dev', 'debhelper-compat', 'libncurses-dev | libncurses5-dev', 'libreadline-dev | libreadline6-dev', 'libdevmapper-dev [linux-any]', 'uuid-dev', 'gettext', 'texinfo', 'libblkid-dev', 'pkgconf', 'check <!nocheck>', 'autoconf', 'automake', 'autopoint', 'gperf']
Provides []
Builddate
Architecture amd64
Distro-Version noble
Licenses []
Hash 24e84d557b5037d1ad984ba1b6e5136c56cc9a96f2af9d916392372d8513f775
#!/usr/bin/make -f
#
# Copyright (C) 1999, 2000, 2001, 2002  Timshel Knoll
# Licensed under the terms of the GNU General Public License
#
# Based (a long time ago) on parted's debian/rules, which in turn is based on
# `Sample debian/rules that uses debhelper' from dh_make,
# GNU Copyright (C) 1997 to 1999 by Joey Hess

DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
DEB_HOST_ARCH_OS ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)

export DEB_BUILD_MAINT_OPTIONS := hardening=+all

CONFFLAGS := --sbindir=/usr/sbin --enable-mtrace --enable-shared
CONFFLAGS += --disable-gcc-warnings

# Enable device-mapper only on Linux
ifeq (linux, $(DEB_HOST_ARCH_OS))
  CONFFLAGS += --enable-device-mapper
else
  CONFFLAGS += --disable-device-mapper
endif

# Everything above here is common to the deb and udeb builds.
CONFFLAGS_UDEB := $(CONFFLAGS)

# Options specific to the udeb build.
CONFFLAGS_UDEB += ac_cv_header_execinfo_h=no --libdir=/usr/lib
CONFFLAGS_UDEB += --disable-static --without-readline

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -Bbuild-deb -- $(CONFFLAGS)
	# We need to unset CFLAGS here to force debhelper to recompute it
	# with the new DEB_CFLAGS_MAINT_APPEND.  We also need to unset
	# DH_INTERNAL_BUILDFLAGS to force debhelper to recompute any build
	# flags at all.  If there's a better way to do this I'd like to hear
	# about it.
	env -u DH_INTERNAL_BUILDFLAGS -u CFLAGS DEB_CFLAGS_MAINT_APPEND=-Os \
		dh_auto_configure -Bbuild-udeb -- $(CONFFLAGS_UDEB)

override_dh_auto_build:
	dh_auto_build -Bbuild-deb
	# Only build binaries for the udeb pass.
	$(MAKE) -C build-udeb/lib
	$(MAKE) -C build-udeb/libparted
	$(MAKE) -C build-udeb/parted

override_dh_auto_test:

override_dh_auto_clean:
	rm -rf build-deb build-udeb

execute_before_dh_clean:
	rm -rf debian/tmp-udeb

override_dh_auto_install:
	dh_auto_install -Bbuild-deb
	$(MAKE) -C build-udeb/libparted install DESTDIR=$(CURDIR)/debian/tmp-udeb
	$(MAKE) -C build-udeb/parted install DESTDIR=$(CURDIR)/debian/tmp-udeb
	rm -f debian/tmp/usr/lib/*/*.la
	rm -f debian/tmp-udeb/usr/lib/*.la debian/tmp-udeb/usr/lib/*.so

override_dh_install:
	dh_install -Nparted-udeb -Nlibparted2-udeb -Nlibparted-fs-resize0-udeb
	dh_install -pparted-udeb -plibparted2-udeb -plibparted-fs-resize0-udeb --sourcedir=debian/tmp-udeb

override_dh_installdocs-arch:
	dh_installdocs --link-doc=libparted2t64

override_dh_installdocs-indep:
	dh_installdocs -pparted-doc --doc-main-package=libparted2t64
	dh_installdocs --remaining-packages

override_dh_makeshlibs:
	dh_makeshlibs -plibparted2t64 --add-udeb=libparted2-udeb -- -c4
	dh_makeshlibs -plibparted-fs-resize0t64 --add-udeb=libparted-fs-resize0-udeb -- -c4