[med-svn] r22391 - trunk/packages/rostlab/reprof/trunk/debian
Andreas Tille
tille at moszumanska.debian.org
Tue Jul 5 17:48:21 UTC 2016
Author: tille
Date: 2016-07-05 17:48:20 +0000 (Tue, 05 Jul 2016)
New Revision: 22391
Added:
trunk/packages/rostlab/reprof/trunk/debian/clean
Modified:
trunk/packages/rostlab/reprof/trunk/debian/changelog
trunk/packages/rostlab/reprof/trunk/debian/rules
Log:
Fix clean target to build twice in a row
Modified: trunk/packages/rostlab/reprof/trunk/debian/changelog
===================================================================
--- trunk/packages/rostlab/reprof/trunk/debian/changelog 2016-07-05 16:32:06 UTC (rev 22390)
+++ trunk/packages/rostlab/reprof/trunk/debian/changelog 2016-07-05 17:48:20 UTC (rev 22391)
@@ -1,9 +1,13 @@
reprof (1.0.1-3) UNRELEASED; urgency=medium
+ [ Tatiana Malygina ]
* Team upload.
* add autopkgtest-pkg-perl as default testsuite
* cme fix dpkg-control
+ [ Andreas Tille ]
+ * Fix clean target to build twice in a row
+
-- Tatiana Malygina <merlettaia at gmail.com> Thu, 23 Jun 2016 16:29:58 +0300
reprof (1.0.1-2) unstable; urgency=low
Added: trunk/packages/rostlab/reprof/trunk/debian/clean
===================================================================
--- trunk/packages/rostlab/reprof/trunk/debian/clean (rev 0)
+++ trunk/packages/rostlab/reprof/trunk/debian/clean 2016-07-05 17:48:20 UTC (rev 22391)
@@ -0,0 +1,4 @@
+Build.PL
+config.log
+config.status
+scripts/reprof.1
\ No newline at end of file
Modified: trunk/packages/rostlab/reprof/trunk/debian/rules
===================================================================
--- trunk/packages/rostlab/reprof/trunk/debian/rules 2016-07-05 16:32:06 UTC (rev 22390)
+++ trunk/packages/rostlab/reprof/trunk/debian/rules 2016-07-05 17:48:20 UTC (rev 22391)
@@ -4,9 +4,24 @@
# Uncomment this to turn on verbose mode.
export DH_VERBOSE=1
+DEBVERS := $(shell dpkg-parsechangelog | awk '/^Version:/ {print $$2}')
+VERSION := $(shell echo '$(DEBVERS)' | sed -e 's/^[0-9]*://' -e 's/-.*//')
+
%:
dh $@ --with autotools_dev
+override_dh_clean:
+ dh_clean
+ find . -name Makefile -delete
+ # restore reprof.spec which is removed in the build process
+ if [ ! -e reprof.spec ] ; then sed 's/@VERSION@/$(VERSION)/' reprof.spec.in > reprof.spec ; fi
+
+override_dh_auto_build:
+ # Build process somehow removes lib/RG/Reprof.pm
+ # make sure it exists to be able to build twice in a row
+ if [ ! -e lib/RG/Reprof.pm ] ; then cp lib/RG/Reprof.pm.mk lib/RG/Reprof.pm ; fi
+ dh_auto_build
+
override_dh_auto_install:
# The following will run: perl Build install
dh_auto_install
More information about the debian-med-commit
mailing list