[Python-apps-commits] r715 - in packages/p9m4/trunk/debian (changelog rules)
pcc-guest at users.alioth.debian.org
pcc-guest at users.alioth.debian.org
Thu Feb 28 12:38:42 UTC 2008
Date: Thursday, February 28, 2008 @ 12:38:41
Author: pcc-guest
Revision: 715
debian/rules, debian/changelog: added get-orig-source rule for building repackaged tarball
Modified:
packages/p9m4/trunk/debian/changelog
packages/p9m4/trunk/debian/rules
Modified: packages/p9m4/trunk/debian/changelog
===================================================================
--- packages/p9m4/trunk/debian/changelog 2008-02-27 19:48:17 UTC (rev 714)
+++ packages/p9m4/trunk/debian/changelog 2008-02-28 12:38:41 UTC (rev 715)
@@ -1,4 +1,4 @@
-p9m4 (0.5-1) unstable; urgency=low
+p9m4 (0.5.dfsg-1) unstable; urgency=low
* Initial release (closes: #460813)
* my_setup.py, partition_input.py: removed Python-2.5isms from code
Modified: packages/p9m4/trunk/debian/rules
===================================================================
--- packages/p9m4/trunk/debian/rules 2008-02-27 19:48:17 UTC (rev 714)
+++ packages/p9m4/trunk/debian/rules 2008-02-28 12:38:41 UTC (rev 715)
@@ -2,6 +2,13 @@
DEB_PYTHON_SYSTEM = pysupport
+VERSION = $(shell dpkg-parsechangelog | grep Version | sed "s/Version: //")
+ORIG_VERSION = $(shell echo $(VERSION) | sed s/-.*//)
+UPSTREAM_VERSION = $(shell echo $(ORIG_VERSION) | sed s/\.dfsg//)
+TARBALL_VERSION = v$(shell echo $(UPSTREAM_VERSION) | sed s/\\.//)
+TARBALL_NAME = p9m4-$(TARBALL_VERSION)
+SRCDIR_NAME = p9m4-$(ORIG_VERSION)
+
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/python-distutils.mk
include /usr/share/cdbs/1/rules/simple-patchsys.mk
@@ -11,3 +18,13 @@
binary-post-install/prover9-mace4::
mv debian/prover9-mace4/usr/bin/prover9-mace4.py debian/prover9-mace4/usr/bin/prover9-mace4
chmod 644 debian/prover9-mace4/usr/share/prover9-mace4/lib/*.py
+
+get-orig-source:
+ -uscan --verbose --force-download --no-symlink --upstream-version $(UPSTREAM_VERSION)
+ cd debian/ && tar xvzf ../../$(TARBALL_NAME).tar.gz
+ rm -rf debian/$(TARBALL_NAME)/bin
+ mv debian/$(TARBALL_NAME) debian/$(SRCDIR_NAME)
+ cd debian && tar cvzf ../../p9m4_$(ORIG_VERSION).orig.tar.gz $(SRCDIR_NAME)
+ rm -rf debian/$(SRCDIR_NAME)
+
+.PHONY: get-orig-source
More information about the Python-apps-commits
mailing list