[libfile-data-perl] 08/13: Modernize cdbs: Do copyright-check in maintainer script (not during build).

Jonas Smedegaard dr at jones.dk
Mon Sep 11 13:30:10 UTC 2017


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

js pushed a commit to branch master
in repository libfile-data-perl.

commit 6bceefd71697492ce2568124a7651b20941f84aa
Author: Jonas Smedegaard <dr at jones.dk>
Date:   Mon Sep 11 14:43:39 2017 +0200

    Modernize cdbs: Do copyright-check in maintainer script (not during build).
---
 debian/{rules => copyright-check} | 21 ++++++++-------------
 debian/rules                      |  1 -
 2 files changed, 8 insertions(+), 14 deletions(-)

diff --git a/debian/rules b/debian/copyright-check
similarity index 50%
copy from debian/rules
copy to debian/copyright-check
index 67bc93c..129b94d 100755
--- a/debian/rules
+++ b/debian/copyright-check
@@ -1,7 +1,6 @@
-#!/usr/bin/make -f
-# -*- mode: makefile; coding: utf-8 -*-
-# Copyright 2012-2013, 2015-2016 Jonas Smedegaard <dr at jones.dk>
-# Description: Main Debian packaging script for File::Data
+#!/bin/sh
+# Copyright © 2016-2017  Jonas Smedegaard <dr at jones.dk>
+# Description: helper script to update copyright_hints
 #
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -16,14 +15,10 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-include /usr/share/cdbs/1/rules/utils.mk
-include /usr/share/cdbs/1/class/perl-makemaker.mk
-include /usr/share/cdbs/1/rules/debhelper.mk
+set -eu
 
-# Needed by upstream build process and (always) at runtime
-# * perl 5.19.10 needed for Data::Dumper 2.151 (not packaged separately)
-# * perl 5.19.11 needed for Carp 1.3301 (not packaged separately)
-deps = perl (>= 5.19.11)
+make -f /usr/share/cdbs/1/rules/utils.mk pre-build || true
+make -f /usr/share/cdbs/1/rules/utils.mk clean DEB_COPYRIGHT_CHECK_STRICT=1
 
-CDBS_BUILD_DEPENDS +=, $(deps)
-CDBS_DEPENDS_$(pkg) = $(deps)
+# unconditionally merge changes - safe to do with git-tracked package
+[ ! -f debian/copyright_newhints ] || mv -f debian/copyright_newhints debian/copyright_hints
diff --git a/debian/rules b/debian/rules
index 67bc93c..8d939d9 100755
--- a/debian/rules
+++ b/debian/rules
@@ -16,7 +16,6 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-include /usr/share/cdbs/1/rules/utils.mk
 include /usr/share/cdbs/1/class/perl-makemaker.mk
 include /usr/share/cdbs/1/rules/debhelper.mk
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libfile-data-perl.git



More information about the Pkg-perl-cvs-commits mailing list