[Python-modules-commits] r8874 - in packages/pyqwt5/trunk/debian (changelog rules)

piotr at users.alioth.debian.org piotr at users.alioth.debian.org
Sat Jun 27 09:59:51 UTC 2009


    Date: Saturday, June 27, 2009 @ 09:59:47
  Author: piotr
Revision: 8874

Add get-orig-source rule

Modified:
  packages/pyqwt5/trunk/debian/changelog
  packages/pyqwt5/trunk/debian/rules

Modified: packages/pyqwt5/trunk/debian/changelog
===================================================================
--- packages/pyqwt5/trunk/debian/changelog	2009-06-27 09:58:06 UTC (rev 8873)
+++ packages/pyqwt5/trunk/debian/changelog	2009-06-27 09:59:47 UTC (rev 8874)
@@ -1,5 +1,6 @@
 pyqwt5 (5.1.1~cvs20090626+dfsg-1) unstable; urgency=low
 
+  [ Gudjon I. Gudjonsson ]
   * New CVS version
   * Builds from source (Closes: #533950)
   * python-qwt5-qt4 doesn't segfault (Closes: #532850)
@@ -10,6 +11,9 @@
   * Upgrade version dependency on python-qt4 and sip4
   * Add README.Source file
 
+  [ Piotr Ożarowski ]
+  * Add get-orig-source rule
+
  -- Gudjon I. Gudjonsson <gudjon at gudjon.org>  Fri, 26 Jun 2009 12:28:14 +0200
 
 pyqwt5 (5.1.0.dfsg-2) unstable; urgency=low

Modified: packages/pyqwt5/trunk/debian/rules
===================================================================
--- packages/pyqwt5/trunk/debian/rules	2009-06-27 09:58:06 UTC (rev 8873)
+++ packages/pyqwt5/trunk/debian/rules	2009-06-27 09:59:47 UTC (rev 8874)
@@ -11,7 +11,7 @@
 
 py_qt_version = $(shell dpkg -s python-qt$(strip $(1)) | grep '^Version' | sed 's,Version: \(.*\)-[^-]*$$,\1,')
 
-#DEB_UPSTREAM_VERSION=$(shell dpkg-parsechangelog | sed -rne 's,^Version: ([^-]+)\.dfsg.*,\1,p')
+#DEB_UPSTREAM_VERSION=$(shell dpkg-parsechangelog | sed -rne 's,^Version: ([^-]+)\+dfsg.*,\1,p')
 DEB_UPSTREAM_VERSION=5.1.0
 CFLAGS = -Wall -g
 
@@ -121,5 +121,23 @@
 	dh_md5sums -a
 	dh_builddeb -a
 
+get-orig-source:
+	REV_DATE=$(shell dpkg-parsechangelog | sed -rne 's,^Version: .*cvs([0-9]+).*,\1,p'); \
+	VER=$(shell dpkg-parsechangelog | sed -rne 's,^Version: ([^-+~]+).*,\1,p'); \
+	if [ x$$REV_DATE = x ]; then \
+	 uscan --force-download --rename --download-version=$$VER --destdir=. && (\
+	 tar -xz --exclude 'Doc/html' --exclude 'qwt-[0-9\.]*' -f pyqwt5_$$VER.orig.tar.gz && \
+	 tar -czf pyqwt5_$$VER+dfsg.orig.tar.gz PyQwt-$$VER; \
+	 rm -f pyqwt5_$$VER.orig.tar.gz;\
+	 rm -rf PyQwt-$$VER); \
+	else \
+	 cvs -rQz5 -d:pserver:anonymous at pyqwt.cvs.sourceforge.net:/cvsroot/pyqwt export \
+	 	-D $$REV_DATE -d pyqwt5-$$VER~cvs$$REV_DATE pyqwt5 && \
+	 find pyqwt5-$$VER~cvs$$REV_DATE -name .cvsignore -type f -delete; \
+	 rm -rf pyqwt5-$$VER~cvs$$REV_DATE/Doc/html ;\
+         tar -zcf ./pyqwt5_$$VER~cvs$$REV_DATE.orig.tar.gz pyqwt5-$$VER~cvs$$REV_DATE; \
+	 rm -rf pyqwt5-$$VER~cvs$$REV_DATE; \
+	fi
+
 binary: binary-indep binary-arch
 .PHONY: build clean binary-indep binary-arch binary install install-indep install-arch configure




More information about the Python-modules-commits mailing list