[libconfig-record-perl] 01/06: debian/rules: move {Config-Record.spec, META.yml}.PL away.

gregor herrmann gregoa at debian.org
Sat Sep 10 12:56:24 UTC 2016


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

gregoa pushed a commit to branch master
in repository libconfig-record-perl.

commit 3a421b3af6cdc6af4b250a9c2e4afa47e5bbdc73
Author: gregor herrmann <gregoa at debian.org>
Date:   Sat Sep 10 14:45:37 2016 +0200

    debian/rules: move {Config-Record.spec,META.yml}.PL away.
    
    They fail to find the module but we don't need to re-create
    Config-Record.spec and META.yml anyway during our build.
    
    Closes: #837249
---
 debian/rules | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/debian/rules b/debian/rules
index 2d33f6a..ba25cd4 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,4 +1,17 @@
 #!/usr/bin/make -f
 
+SPECPLFILE=$(CURDIR)/Config-Record.spec.PL
+METAPLFILE=$(CURDIR)/META.yml.PL
+
 %:
 	dh $@
+
+override_dh_clean:
+	dh_clean
+	[ ! -f $(SPECPLFILE).save ] || mv -v $(SPECPLFILE).save $(SPECPLFILE)
+	[ ! -f $(METAPLFILE).save ] || mv -v $(METAPLFILE).save $(METAPLFILE)
+
+override_dh_auto_build:
+	[ ! -f $(SPECPLFILE) ] || mv -v $(SPECPLFILE) $(SPECPLFILE).save
+	[ ! -f $(METAPLFILE) ] || mv -v $(METAPLFILE) $(METAPLFILE).save
+	dh_auto_configure

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



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