Dear Maintainers,

Would it be possible to consider the attached patch as the solution
for this issue.
In Ubuntu the patch was used to do the following:
  * d/source/format: specify source format.
  * d/watch, d/copyright: update upstream URL.
  * d/rules: use debhelper template. Do not set variables
    as they are set by debhelper. Keep -Wall as it was
    explicitly set.
  * d/libio-dirent-perl.docs: include README in the docs.
  * d/control: add homepage, set Rules-Requires-Root.
  * d/copyright: use DEP 5 format.
  * d/compat: delete obsolete file.

Thank you for considering the patch!!!

Best Regards,
 Vladimir.
diff --git a/debian/compat b/debian/compat
deleted file mode 100644
index 7f8f011..0000000
--- a/debian/compat
+++ /dev/null
@@ -1 +0,0 @@
-7
diff --git a/debian/control b/debian/control
index b7d4f62..d5eddf5 100644
--- a/debian/control
+++ b/debian/control
@@ -1,18 +1,20 @@
 Source: libio-dirent-perl
 Section: perl
 Priority: optional
-Build-Depends: debhelper (>= 7.0.0), perl (>= 5.8.8-7etch1)
+Build-Depends: debhelper-compat (=13), perl
 Maintainer: Ubuntu Developers <ubuntu-devel-disc...@lists.ubuntu.com>
 XSBC-Original-Maintainer: Ludovic Drolez <ldro...@debian.org>
-Standards-Version: 3.9.3
+Standards-Version: 4.7.0
+Homepage: https://metacpan.org/dist/IO-Dirent/
+Rules-Requires-Root: no

 Package: libio-dirent-perl
 Architecture: any
-Depends: ${perl:Depends}, ${shlibs:Depends}, ${misc:Depends},
+Depends: ${perl:Depends}, ${shlibs:Depends}, ${misc:Depends},
 Enhances: backuppc
 Description: Perl module for accessing dirent structs returned by readdir
  Returns a list of hashrefs. Each hashref contains the name of the
  directory entry, its inode for the filesystem it resides on and its
- type (if available).
+ type (if available).
  .
  This module can be used by backuppc to speed up back-ups.
diff --git a/debian/copyright b/debian/copyright
index 8a68bfc..b8ce709 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -1,16 +1,17 @@
-This is the debian package for the IO-Dirent module.
-It was created by Ludovic Drolez <ldro...@debian.org> using dh-make-perl.
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: IO::Dirent
+Upstream-Contact: Scott Wiersdorf, <sc...@perlcode.org>
+Source: https://metacpan.org/dist/IO-Dirent/
+Comment:
+ This is the debian package for the IO-Dirent module.
+ It was created by Ludovic Drolez <ldro...@debian.org> using dh-make-perl.
+ It was downloaded from https://metacpan.org/dist/IO-Dirent/
+ The upstream author is: Scott Wiersdorf, <sc...@perlcode.org>

-It was downloaded from http://search.cpan.org/~scottw/IO-Dirent-0.04/
-
-The upstream author is: Scott Wiersdorf, <sc...@perlcode.org>
-
-Copyright:
-
-  Copyright 2002 Scott Wiersdorf.
-
-  This library is free software; you can redistribute it and/or modify
-  it under the terms of the Perl Artistic License.
-
-On Debian GNU/Linux systems, the complete text of the Artistic
-License can be found in `/usr/share/common-licenses/Artistic'.
+Files: *
+Copyright: Copyright 2002 Scott Wiersdorf.
+License: Artistic
+ This library is free software; you can redistribute it and/or modify
+ it under the terms of the Perl Artistic License.
+ On Debian GNU/Linux systems, the complete text of the Artistic
+ License can be found in `/usr/share/common-licenses/Artistic'.
diff --git a/debian/libio-dirent-perl.docs b/debian/libio-dirent-perl.docs
new file mode 100644
index 0000000..e845566
--- /dev/null
+++ b/debian/libio-dirent-perl.docs
@@ -0,0 +1 @@
+README
diff --git a/debian/rules b/debian/rules
index 6567aa7..59fcbce 100755
--- a/debian/rules
+++ b/debian/rules
@@ -6,94 +6,9 @@

 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
+include /usr/share/dpkg/buildflags.mk

-# If set to a true value then MakeMaker's prompt function will
-# always return the default without waiting for user input.
-export PERL_MM_USE_DEFAULT=1
+export CFLAGS += -Wall

-PACKAGE=$(shell dh_listpackages)
-
-ifndef PERL
-PERL = /usr/bin/perl
-endif
-
-TMP     =$(CURDIR)/debian/$(PACKAGE)
-
-# Allow disabling build optimation by setting noopt in
-# $DEB_BUILD_OPTIONS
-CFLAGS = -Wall -g
-ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
-        CFLAGS += -O0
-else
-        CFLAGS += -O2
-endif
-
-build: build-arch build-indep
-build-arch: build-stamp
-build-indep: build-stamp
-build-stamp:
-	dh_testdir
-
-	# Add commands to compile the package here
-	$(PERL) Makefile.PL INSTALLDIRS=vendor
-	$(MAKE) OPTIMIZE="$(CFLAGS)" LD_RUN_PATH=""
-
-	touch build-stamp
-
-clean:
-	dh_testdir
-	dh_testroot
-
-	# Add commands to clean up after the build process here
-	[ ! -f Makefile ] || $(MAKE) realclean
-
-	dh_clean build-stamp install-stamp
-
-install: build install-stamp
-install-stamp:
-	dh_testdir
-	dh_testroot
-	dh_clean -k
-
-	# Add commands to install the package into debian/$PACKAGE_NAME here
-	$(MAKE) test
-	$(MAKE) install DESTDIR=$(TMP) PREFIX=/usr
-
-	# As this is a architecture dependent package, we are not
-	# supposed to install stuff to /usr/share. MakeMaker creates
-	# the dirs, we delete them from the deb:
-	[ ! -d $(TMP)/usr/share/perl5 ] || rmdir --ignore-fail-on-non-empty --parents $(TMP)/usr/share/perl5
-
-	touch install-stamp
-
-# Build architecture-independent files here.
-binary-indep: build install
-# We have nothing to do by default.
-
-# Build architecture-dependent files here.
-binary-arch: build install
-	dh_testdir
-	dh_testroot
-	dh_installdocs README
-	dh_installexamples
-#	dh_installmenu
-#	dh_installcron
-#	dh_installman
-	dh_installchangelogs Changes
-	dh_link
-	dh_strip
-	dh_compress
-	dh_fixperms
-	dh_makeshlibs
-	dh_installdeb
-	dh_perl
-	dh_shlibdeps
-	dh_gencontrol
-	dh_md5sums
-	dh_builddeb
-
-source diff:
-	@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
-
-binary: binary-indep binary-arch
-.PHONY: build-indep build-arch build clean binary-indep binary-arch binary
+%:
+	dh $@
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/watch b/debian/watch
index 5d8c4b2..caccb94 100644
--- a/debian/watch
+++ b/debian/watch
@@ -1,4 +1,2 @@
-version=3
-# URL to the package page followed by a regex to search
-http://search.cpan.org/dist/IO-Dirent/   .*/IO-Dirent-v?(\d[\d.-]+)\.(?:tar(?:\.gz|\.bz2)?|tgz|zip)$	debian	uupdate
-
+version=4
+https://metacpan.org/release/IO-Dirent/   .*/IO-Dirent-v?@ANY_VERSION@@ARCHIVE_EXT@$

Reply via email to