This is an automated email from the git hooks/post-receive script.

dod pushed a commit to branch master
in repository libconfig-model-dpkg-perl.

commit 775713f8c22632ea1844fd4898b7aaf11cfdf5e3
Author: Dominique Dumont <d...@debian.org>
Date:   Sat Jan 28 16:00:56 2017 +0100

    add default value for debian/rules
---
 lib/Config/Model/models/Dpkg.pl   | 21 +++++++++++++++++++++
 t/model_tests.d/dpkg-test-conf.pl |  4 ++--
 2 files changed, 23 insertions(+), 2 deletions(-)

diff --git a/lib/Config/Model/models/Dpkg.pl b/lib/Config/Model/models/Dpkg.pl
index eb8f55a..e79cbab 100644
--- a/lib/Config/Model/models/Dpkg.pl
+++ b/lib/Config/Model/models/Dpkg.pl
@@ -22,6 +22,27 @@
       },
       'rules',
       {
+        'default' => '#!/usr/bin/make -f
+# See debhelper(7) (uncomment to enable)
+# output every command that modifies files on the build system.
+#DH_VERBOSE = 1
+
+# see EXAMPLES in dpkg-buildflags(1) and read /usr/share/dpkg/*
+DPKG_EXPORT_BUILDFLAGS = 1
+include /usr/share/dpkg/default.mk
+
+# see FEATURE AREAS in dpkg-buildflags(1)
+#export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+
+# see ENVIRONMENT in dpkg-buildflags(1)
+# package maintainers to append CFLAGS
+#export DEB_CFLAGS_MAINT_APPEND  = -Wall -pedantic
+# package maintainers to append LDFLAGS
+#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
+
+# main packaging script based on dh7 syntax
+%:
+       dh $@',
         'description' => 'debian/rules is a makefile containing all 
instructions required to build a debian package.',
         'summary' => 'package build rules',
         'type' => 'leaf',
diff --git a/t/model_tests.d/dpkg-test-conf.pl 
b/t/model_tests.d/dpkg-test-conf.pl
index afd1d9c..76e18f6 100644
--- a/t/model_tests.d/dpkg-test-conf.pl
+++ b/t/model_tests.d/dpkg-test-conf.pl
@@ -137,7 +137,7 @@ my $add_home = sub {
                 qr!Files: src/im_mad/remotes/az.d/\*!
             ]
         },
-        file_check_sub => $add_home,
+        file_check_sub => sub { splice @{$_[0]}, 3,0,'/debian/rules'; 
$add_home->(@_); },
         file_contents_unlike => {
             'debian/copyright' => [
                 qr!Files: src/im_mad/\*!,
@@ -158,7 +158,7 @@ my $add_home = sub {
                 qr!Files: src/im_mad/remotes/az.d/\*!
             ]
         },
-        file_check_sub => $add_home,
+        file_check_sub => sub { splice @{$_[0]}, 3,0,'/debian/rules'; 
$add_home->(@_); },
         # check that some entries were fixed by update
         check => {
             'copyright Files:"share/vendor/*" Copyright' => '2010-2012, 
VMware, Inc.',

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-perl/packages/libconfig-model-dpkg-perl.git

_______________________________________________
Pkg-perl-cvs-commits mailing list
Pkg-perl-cvs-commits@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-perl-cvs-commits

Reply via email to