r2965 - in zodb/trunk/debian (changelog rules)

jmuchemb-guest at users.alioth.debian.org jmuchemb-guest at users.alioth.debian.org
Tue Aug 11 15:05:38 UTC 2015


    Date: Tuesday, August 11, 2015 @ 15:05:38
  Author: jmuchemb-guest
Revision: 2965

Add get-orig-source rule to download snapshot

Modified:
  zodb/trunk/debian/changelog
  zodb/trunk/debian/rules

Modified: zodb/trunk/debian/changelog
===================================================================
--- zodb/trunk/debian/changelog	2015-08-11 13:47:01 UTC (rev 2964)
+++ zodb/trunk/debian/changelog	2015-08-11 15:05:38 UTC (rev 2965)
@@ -25,6 +25,7 @@
   * Merge 1:3.9.7-5
   * New upstream 3.10.x snapshot (2014-03-10).
     - drop patches merged upstream: new-transaction.patch, testUtils.patch
+    - add get-orig-source rule to download source
   * Manage patches with gbp-pq.
   * Add patch to fix possible data corruption after FileStorage is truncated
     to roll back a transaction.

Modified: zodb/trunk/debian/rules
===================================================================
--- zodb/trunk/debian/rules	2015-08-11 13:47:01 UTC (rev 2964)
+++ zodb/trunk/debian/rules	2015-08-11 15:05:38 UTC (rev 2965)
@@ -2,6 +2,16 @@
 
 export PYDEB_SUGGESTS_EXTRAS=test
 
+PKD  = $(abspath $(dir $(MAKEFILE_LIST)))
+PKG  = $(word 2, $(shell dpkg-parsechangelog -l$(PKD)/changelog))
+UVER = $(shell dpkg-parsechangelog -l$(PKD)/changelog | \
+               sed -nr 's/^Version: (.*:)?(.*)-(.*)/\2/p')
+
+.PHONY: get-orig-source
+get-orig-source: $(PKG)_$(UVER).orig.tar.xz
+$(PKG)_$(UVER).orig.tar.xz:
+	set $(UVER); wget -O $@ https://github.com/zopefoundation/ZODB/archive/$${1#*.g}.tar.gz
+
 %:
 	dh $@ --with pydeb --with python2
 




More information about the pkg-zope-developers mailing list