[libapp-cpants-lint-perl] 01/02: Stop rename executable, and instead tighten to (build-)depend on recent libmodule-cpants-analyse-perl no longer shipping same executable, and replace+break older ones.

Jonas Smedegaard dr at jones.dk
Sat Oct 18 00:09:53 UTC 2014


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

js pushed a commit to branch master
in repository libapp-cpants-lint-perl.

commit 97d59bb2d1da5a7f32f46bd6ff9d1441038d2799
Author: Jonas Smedegaard <dr at jones.dk>
Date:   Sat Oct 18 01:51:31 2014 +0200

    Stop rename executable, and instead tighten to (build-)depend on recent libmodule-cpants-analyse-perl no longer shipping same executable, and replace+break older ones.
---
 debian/control.in |  2 ++
 debian/rules      | 13 +++++++++----
 2 files changed, 11 insertions(+), 4 deletions(-)

diff --git a/debian/control.in b/debian/control.in
index fd04b38..4d5c168 100644
--- a/debian/control.in
+++ b/debian/control.in
@@ -14,6 +14,8 @@ Architecture: all
 Depends: ${cdbs:Depends},
  ${misc:Depends},
  ${perl:Depends}
+Replaces: ${cdbs:Replaces}
+Breaks: ${cdbs:Breaks}
 Description: commandline frontend to Module::CPANTS::Analyse
  cpants_lint checks the Kwalitee of a CPAN distribution.  More exact, it
  checks how a given tarball will be rated on <http://cpants.perl.org>,
diff --git a/debian/rules b/debian/rules
index 02676d3..8c84e66 100755
--- a/debian/rules
+++ b/debian/rules
@@ -30,18 +30,23 @@ DEB_UPSTREAM_URL = http://www.cpan.org/authors/id/I/IS/ISHIGAKI
 bdeps = libextutils-makemaker-cpanfile-perl
 
 # Needed by upstream build and (always) at runtime
-deps = libmodule-cpants-analyse-perl
+deps = libmodule-cpants-analyse-perl (>= 0.94)
+
+# transition for replacement of executable
+replaces-binary = libmodule-cpants-analyse-perl (<< 0.95-1~)
 
 # Needed by upstream testsuite
 deps-test = libtest-useallmodules-perl
 
 CDBS_BUILD_DEPENDS +=, $(bdeps), $(deps), $(deps-test)
 CDBS_DEPENDS_$(pkg) = $(deps)
+CDBS_REPLACES_$(pkg) = $(replaces-binary)
+CDBS_BREAKS_$(pkg) = $(replaces-binary)
 
-# TODO: Rename executable when libmodule-cpants-analyse-perl >= 0.93_02
 # Strip extension from executable and its man page
 binary-post-install/$(pkg)::
 	mv $(cdbs_curdestdir)usr/bin/cpants_lint.pl \
-		$(cdbs_curdestdir)usr/bin/cpants_lint_
+		$(cdbs_curdestdir)usr/bin/cpants_lint
 	mv $(cdbs_curdestdir)usr/share/man/man1/cpants_lint.pl.1p \
-		$(cdbs_curdestdir)usr/share/man/man1/cpants_lint_.1p
+		$(cdbs_curdestdir)usr/share/man/man1/cpants_lint.1p
+

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libapp-cpants-lint-perl.git



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