r60379 - in /trunk/libdbi-perl/debian: README.Debian changelog clean copyright dh_perl_dbi.in libdbi-perl.install libdbi-perl.manpages perl_dbi.pm rules
ansgar-guest at users.alioth.debian.org
ansgar-guest at users.alioth.debian.org
Sun Jul 18 12:06:44 UTC 2010
Author: ansgar-guest
Date: Sun Jul 18 12:02:31 2010
New Revision: 60379
URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=60379
Log:
* Add dh_perl_dbi command and perl_dbi addon for debhelper.
* README.Debian: Document how to generate a dependency on perl-dbdabi-*.
Added:
trunk/libdbi-perl/debian/README.Debian
trunk/libdbi-perl/debian/dh_perl_dbi.in (with props)
trunk/libdbi-perl/debian/libdbi-perl.manpages
trunk/libdbi-perl/debian/perl_dbi.pm
Modified:
trunk/libdbi-perl/debian/changelog
trunk/libdbi-perl/debian/clean
trunk/libdbi-perl/debian/copyright
trunk/libdbi-perl/debian/libdbi-perl.install
trunk/libdbi-perl/debian/rules
Added: trunk/libdbi-perl/debian/README.Debian
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdbi-perl/debian/README.Debian?rev=60379&op=file
==============================================================================
--- trunk/libdbi-perl/debian/README.Debian (added)
+++ trunk/libdbi-perl/debian/README.Debian Sun Jul 18 12:02:31 2010
@@ -1,0 +1,31 @@
+Dependencies for DBD drivers
+============================
+
+This information is only relevant for maintainers of Debian packages providing
+DBD drivers.
+
+Packages using the binary DBD<>DBI interface need to depend on the
+perl-dbdabi-* virtual package provided by libdbi-perl. To generate this
+dependency please do one of the following:
+
+debhelper using dh:
+
+Use the "perl_dbi" addon and ensure ${perl:Depends} is used in debian/control.
+The debian/rules file might look as follows:
+
+ #!/usr/bin/make -f
+ %:
+ dh --with perl_dbi $@
+
+old-style debhelper:
+
+Run dh_perl_dbi after dh_perl and ensure ${perl:Depends} is used in
+debian/control.
+
+packages not using debhelper:
+
+Include /usr/share/libdbi-perl/perl-dbdabi.make in debian rules and use
+PERL_DBDABI_DEPENDS.
+
+See http://bugs.debian.org/577209 for a discussion why this dependency is
+required.
Modified: trunk/libdbi-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdbi-perl/debian/changelog?rev=60379&op=diff
==============================================================================
--- trunk/libdbi-perl/debian/changelog (original)
+++ trunk/libdbi-perl/debian/changelog Sun Jul 18 12:02:31 2010
@@ -1,3 +1,10 @@
+libdbi-perl (1.611-2) UNRELEASED; urgency=low
+
+ * Add dh_perl_dbi command and perl_dbi addon for debhelper.
+ * README.Debian: Document how to generate a dependency on perl-dbdabi-*.
+
+ -- Ansgar Burchardt <ansgar at 43-1.org> Sun, 18 Jul 2010 20:05:15 +0900
+
libdbi-perl (1.611-1) unstable; urgency=low
* New upstream release (closes: #580018).
Modified: trunk/libdbi-perl/debian/clean
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdbi-perl/debian/clean?rev=60379&op=diff
==============================================================================
--- trunk/libdbi-perl/debian/clean (original)
+++ trunk/libdbi-perl/debian/clean Sun Jul 18 12:02:31 2010
@@ -1,1 +1,3 @@
debian/perl-dbdabi.make
+debian/dh_perl_dbi
+debian/dh_perl_dbi.1
Modified: trunk/libdbi-perl/debian/copyright
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdbi-perl/debian/copyright?rev=60379&op=diff
==============================================================================
--- trunk/libdbi-perl/debian/copyright (original)
+++ trunk/libdbi-perl/debian/copyright Sun Jul 18 12:02:31 2010
@@ -139,6 +139,7 @@
2008, 2010, gregor herrmann <gregoa at debian.org>
2008, Niko Tyni <ntyni at debian.org>
2009, Ryan Niebur <ryan at debian.org>
+ 2010, Ansgar Burchardt <ansgar at 43-1.org>
License: Artistic or GPL-1+
License: Artistic
Added: trunk/libdbi-perl/debian/dh_perl_dbi.in
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdbi-perl/debian/dh_perl_dbi.in?rev=60379&op=file
==============================================================================
--- trunk/libdbi-perl/debian/dh_perl_dbi.in (added)
+++ trunk/libdbi-perl/debian/dh_perl_dbi.in Sun Jul 18 12:02:31 2010
@@ -1,0 +1,51 @@
+#! /usr/bin/perl
+
+use strict;
+use warnings;
+
+use Debian::Debhelper::Dh_Lib;
+
+init();
+
+for my $package (@{ $dh{DOPACKAGES} }) {
+ addsubstvar($package, 'perl:Depends', 'libdbi-perl', undef);
+ addsubstvar($package, 'perl:Depends', 'perl-dbdabi- at DBDABI_VERSION@', undef);
+}
+
+__END__
+
+=head1 NAME
+
+dh_perl_dbi - add dependencies required for DBI modules
+
+=head1 SYNOPSIS
+
+B<dh_perl_dbi> [S<I<debhelper options>>]
+
+=head1 DESCRIPTION
+
+dh_perl_dbi is a debhelper program that is responsible for adding a dependency
+on libdbi-perl and perl-dbdabi-* to the ${perl:Depends} substitution variable.
+Such a dependency is required for packages that use the DBDE<lt>E<gt>DBI binary
+interface; do I<not> use this for packages that only use the DBI module.
+
+A debhelper addon is also provided. This makes it possible to just use
+
+ #!/usr/bin/make -f
+ %:
+ dh --with perl_dbi $@
+
+for F<debian/rules>.
+
+=head1 SEE ALSO
+
+L<debhelper(7)>
+
+L<http://bugs.debian.org/577209>
+
+=head1 COPYRIGHT AND LICENSE
+
+Copyright 2010, Ansgar Burchardt <ansgar at 43-1.org>
+
+This program is free software, you can redistribute it and/or modify it under
+the same terms as Perl itself.
Propchange: trunk/libdbi-perl/debian/dh_perl_dbi.in
------------------------------------------------------------------------------
svn:executable = *
Modified: trunk/libdbi-perl/debian/libdbi-perl.install
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdbi-perl/debian/libdbi-perl.install?rev=60379&op=diff
==============================================================================
--- trunk/libdbi-perl/debian/libdbi-perl.install (original)
+++ trunk/libdbi-perl/debian/libdbi-perl.install Sun Jul 18 12:02:31 2010
@@ -1,1 +1,3 @@
debian/perl-dbdabi.make /usr/share/libdbi-perl
+debian/dh_perl_dbi /usr/bin
+debian/perl_dbi.pm /usr/share/perl5/Debian/Debhelper/Sequence
Added: trunk/libdbi-perl/debian/libdbi-perl.manpages
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdbi-perl/debian/libdbi-perl.manpages?rev=60379&op=file
==============================================================================
--- trunk/libdbi-perl/debian/libdbi-perl.manpages (added)
+++ trunk/libdbi-perl/debian/libdbi-perl.manpages Sun Jul 18 12:02:31 2010
@@ -1,0 +1,1 @@
+debian/dh_perl_dbi.1
Added: trunk/libdbi-perl/debian/perl_dbi.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdbi-perl/debian/perl_dbi.pm?rev=60379&op=file
==============================================================================
--- trunk/libdbi-perl/debian/perl_dbi.pm (added)
+++ trunk/libdbi-perl/debian/perl_dbi.pm Sun Jul 18 12:02:31 2010
@@ -1,0 +1,15 @@
+# perl_dbi.pm - debhelper addon for running dh_perl_dbi
+#
+# Copyright 2010, Ansgar Burchardt <ansgar at 43-1.org>
+#
+# This program is free software, you can redistribute it and/or modify it
+# under the same terms as Perl itself.
+
+use warnings;
+use strict;
+
+use Debian::Debhelper::Dh_Lib;
+
+insert_after("dh_perl", "dh_perl_dbi");
+
+1;
Modified: trunk/libdbi-perl/debian/rules
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdbi-perl/debian/rules?rev=60379&op=diff
==============================================================================
--- trunk/libdbi-perl/debian/rules (original)
+++ trunk/libdbi-perl/debian/rules Sun Jul 18 12:02:31 2010
@@ -26,6 +26,9 @@
"# See #577209." \
"PERL_DBDABI_DEPENDS=perl-dbdabi-$(DBDABI_VERSION)" \
> debian/perl-dbdabi.make
+ sed "s, at DBDABI_VERSION@,$(DBDABI_VERSION)," debian/dh_perl_dbi.in >debian/dh_perl_dbi
+ chmod +x debian/dh_perl_dbi
+ pod2man debian/dh_perl_dbi debian/dh_perl_dbi.1
override_dh_gencontrol:
dh_gencontrol -- -Vperl-dbdabi-version=$(DBDABI_VERSION)
More information about the Pkg-perl-cvs-commits
mailing list