Here's an updated patch which also runs the testsuite during build by default.
-- Loïc Minier
diff -u libio-pty-perl-1.07/debian/compat libio-pty-perl-1.07/debian/compat --- libio-pty-perl-1.07/debian/compat +++ libio-pty-perl-1.07/debian/compat @@ -1 +1 @@ -4 +5 diff -u libio-pty-perl-1.07/debian/changelog libio-pty-perl-1.07/debian/changelog --- libio-pty-perl-1.07/debian/changelog +++ libio-pty-perl-1.07/debian/changelog @@ -1,3 +1,18 @@ +libio-pty-perl (1:1.07-1.1) UNRELEASED; urgency=low + + * Bump debhelper compatibility level to 5. + * Bump Standards-Version to 3.8.0 (no change needed). + * Cleanup rules. + * Honor upstream "realclean" failures. + * Handled noopt DEB_BUILD_OPTIONS. + * Pass -s to dh_* in binary-arch. + * Add watch file. + * Depend on ${misc:Depends}. + * Run upstream testsuite when building unless nocheck is set in + DEB_BUILD_OPTIONS. + + -- Loic Minier <l...@dooz.org> Thu, 18 Dec 2008 10:40:17 +0100 + libio-pty-perl (1:1.07-1) unstable; urgency=low * New upstream release diff -u libio-pty-perl-1.07/debian/rules libio-pty-perl-1.07/debian/rules --- libio-pty-perl-1.07/debian/rules +++ libio-pty-perl-1.07/debian/rules @@ -1,26 +1,20 @@ #!/usr/bin/make -f -# Sample debian/rules that uses debhelper. # GNU copyright 1997 to 1999 by Joey Hess. -# Uncomment this to turn on verbose mode. -#export DH_VERBOSE = 1 +OPTIMIZE += -Wall -g -O$(if $(findstring noopt,$(DEB_BUILD_OPTIONS)),0,2) build: build-stamp build-stamp: dh_testdir - perl Makefile.PL INSTALLDIRS=vendor - $(MAKE) OPTIMIZE="-O2 -g -Wall" - - touch build-stamp + $(MAKE) OPTIMIZE="$(OPTIMIZE)" + touch $@ clean: dh_testdir dh_testroot rm -f build-stamp - - -$(MAKE) realclean - + [ ! -f Makefile ] || $(MAKE) realclean dh_clean install: build @@ -31,28 +25,30 @@ - - # Add here commands to install the package into debian/tmp. $(MAKE) install PREFIX=$(CURDIR)/debian/libio-pty-perl/usr -find debian/libio-pty-perl -depth -type d | xargs rmdir 2>/dev/null -# Build architecture-independent files here. -binary-indep: build install -# We have nothing to do by default. +maybe_check = $(if $(findstring nocheck,$(DEB_BUILD_OPTIONS)),,check) + +check: check-stamp +check-stamp: build-stamp + $(MAKE) test + touch $@ + +binary-indep: build $(maybe_check) install -# Build architecture-dependent files here. -binary-arch: build install +binary-arch: build $(maybe_check) install dh_testdir dh_testroot - dh_installdocs - dh_installchangelogs ChangeLog - dh_link - dh_strip - dh_compress - dh_fixperms - dh_installdeb - dh_perl - dh_shlibdeps - dh_gencontrol - dh_md5sums - dh_builddeb + dh_installdocs -s + dh_installchangelogs -s ChangeLog + dh_link -s + dh_strip -s + dh_compress -s + dh_fixperms -s + dh_installdeb -s + dh_perl -s + dh_shlibdeps -s + dh_gencontrol -s + dh_md5sums -s + dh_builddeb -s binary: binary-indep binary-arch -.PHONY: build clean binary-indep binary-arch binary install +.PHONY: build clean check binary-indep binary-arch binary install diff -u libio-pty-perl-1.07/debian/control libio-pty-perl-1.07/debian/control --- libio-pty-perl-1.07/debian/control +++ libio-pty-perl-1.07/debian/control @@ -2,12 +2,12 @@ Section: perl Priority: optional Maintainer: Joergen Haegg <j...@debian.org> -Standards-Version: 3.7.2 +Standards-Version: 3.8.0 Build-Depends: perl (>= 5.8), debhelper (>= 5) Package: libio-pty-perl Architecture: any -Depends: ${shlibs:Depends}, ${perl:Depends} +Depends: ${shlibs:Depends}, ${perl:Depends}, ${misc:Depends} Provides: libio-tty-perl Description: Perl module for pseudo tty IO IO::Pty provides I/O handles to the master- and slave-side of a only in patch2: unchanged: --- libio-pty-perl-1.07.orig/debian/watch +++ libio-pty-perl-1.07/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://www.cpan.org/modules/by-module/IO/IO-Tty-([\d.]+)\.tar\.gz