[Python-modules-commits] r8632 - in packages (10 files)
zack at users.alioth.debian.org
zack at users.alioth.debian.org
Sat May 30 09:58:16 UTC 2009
Date: Saturday, May 30, 2009 @ 09:58:16
Author: zack
Revision: 8632
rules for creating the "upstream" tarball of repoze.who-plugins
(preliminaries for repoze.who-plugins packaging)
Added:
packages/python-repoze.who-plugins/
packages/python-repoze.who-plugins/tags/
packages/python-repoze.who-plugins/trunk/
packages/python-repoze.who-plugins/trunk/debian/
packages/python-repoze.who-plugins/trunk/debian/README.source
packages/python-repoze.who-plugins/trunk/debian/get-orig-source.mk
packages/python-repoze.who-plugins/trunk/debian/repoze.who-friendlyform.watch
packages/python-repoze.who-plugins/trunk/debian/repoze.who-testutil.watch
packages/python-repoze.who-plugins/trunk/debian/repoze.who.plugins.sa.watch
packages/python-repoze.who-plugins/trunk/debian/rules
Property changes on: packages/python-repoze.who-plugins
___________________________________________________________________
Added: svn:ignore
+ build-area
tarballs
Property changes on: packages/python-repoze.who-plugins/trunk/debian
___________________________________________________________________
Added: mergeWithUpstream
+ 1
Added: packages/python-repoze.who-plugins/trunk/debian/README.source
===================================================================
--- packages/python-repoze.who-plugins/trunk/debian/README.source (rev 0)
+++ packages/python-repoze.who-plugins/trunk/debian/README.source 2009-05-30 09:58:16 UTC (rev 8632)
@@ -0,0 +1,26 @@
+
+Upgrade to a new upstream
+=========================
+
+This package is a multi-upstream source package, i.e., its
+.orig.tar.gz is composed by several upstream tarballs, possibly
+released by independent authors.
+
+To obtain a new orig tarball you can invoke the get-orig-source target
+of debian/rules as follows:
+
+ $ debian/rules get-orig-source
+
+If all goes well, that should leave aroung a tarball called
+
+ PACKAGE-YYYYMMDD.orig.tar.gz
+
+where PACKAGE is the source package name and YYYYMMDD is today's date
+in year/month/day format.
+
+Note that the target does not check whether creating a new upstream
+version is needed: invoke it only if you know that some of the
+upstream parts of this package need updates. Otherwise, use "apt-get
+source PACKAGE" to work on the latest uploaded upstream release.
+
+ -- Stefano Zacchiroli <zack at debian.org>, Sat, 30 May 2009 11:54:27 +0200
Added: packages/python-repoze.who-plugins/trunk/debian/get-orig-source.mk
===================================================================
--- packages/python-repoze.who-plugins/trunk/debian/get-orig-source.mk (rev 0)
+++ packages/python-repoze.who-plugins/trunk/debian/get-orig-source.mk 2009-05-30 09:58:16 UTC (rev 8632)
@@ -0,0 +1,33 @@
+# debian/rules snippet for creating multi-upstream tarball relying on
+# several debian/*.watch files
+
+# Copyright © 2009 Stefano Zacchiroli <zack at debian.org>
+# License: GNU GPL version 3 or above
+
+# TODO: does not yet fully implement policy wrt get-orig-source:
+# - the target cannot be invoked from any dir (rely on "debian/")
+# - tmpdir handling is not fully safe (e.g., no "mktemp -d")
+
+GOSTMP = get-orig.source.tmp
+ORIGNAME = $(PKG)-$(shell date +%Y%m%d)
+
+get-orig-source: $(patsubst %,%/get-orig-source,$(UPSTREAMS))
+ cd $(GOSTMP) && \
+ mkdir $(ORIGNAME) && \
+ for p in $(UPSTREAMS) ; do \
+ mv `readlink $$p` $(ORIGNAME) ; \
+ mv $$p $(ORIGNAME) ; \
+ done && \
+ tar cvzf $(ORIGNAME).orig.tar.gz $(ORIGNAME) && \
+ mv $(ORIGNAME).orig.tar.gz ../ && \
+ cd .. && \
+ rm -rf $(GOSTMP)/
+$(GOSTMP):
+ -mkdir $@
+%/get-orig-source: $(GOSTMP)
+ uscan --watchfile debian/$*.watch \
+ --upstream-version 0 --package $* \
+ --download --destdir $(GOSTMP)/
+ cd $(GOSTMP) && \
+ tar xzf $**.orig.tar.gz && \
+ ln -s `tar tzf $**.orig.tar.gz | head -n1` $*
Added: packages/python-repoze.who-plugins/trunk/debian/repoze.who-friendlyform.watch
===================================================================
--- packages/python-repoze.who-plugins/trunk/debian/repoze.who-friendlyform.watch (rev 0)
+++ packages/python-repoze.who-plugins/trunk/debian/repoze.who-friendlyform.watch 2009-05-30 09:58:16 UTC (rev 8632)
@@ -0,0 +1,2 @@
+version=3
+http://pypi.python.org/packages/source/r/repoze.who-friendlyform/repoze.who-friendlyform-([0-9a-z.]+)\.tar\.gz
Added: packages/python-repoze.who-plugins/trunk/debian/repoze.who-testutil.watch
===================================================================
--- packages/python-repoze.who-plugins/trunk/debian/repoze.who-testutil.watch (rev 0)
+++ packages/python-repoze.who-plugins/trunk/debian/repoze.who-testutil.watch 2009-05-30 09:58:16 UTC (rev 8632)
@@ -0,0 +1,2 @@
+version=3
+http://pypi.python.org/packages/source/r/repoze.who-testutil/repoze.who-testutil-([0-9a-z.]+)\.tar\.gz
Added: packages/python-repoze.who-plugins/trunk/debian/repoze.who.plugins.sa.watch
===================================================================
--- packages/python-repoze.who-plugins/trunk/debian/repoze.who.plugins.sa.watch (rev 0)
+++ packages/python-repoze.who-plugins/trunk/debian/repoze.who.plugins.sa.watch 2009-05-30 09:58:16 UTC (rev 8632)
@@ -0,0 +1,2 @@
+version=3
+http://pypi.python.org/packages/source/r/repoze.who.plugins.sa/repoze.who.plugins.sa-([0-9a-z.]+)\.tar\.gz
Added: packages/python-repoze.who-plugins/trunk/debian/rules
===================================================================
--- packages/python-repoze.who-plugins/trunk/debian/rules (rev 0)
+++ packages/python-repoze.who-plugins/trunk/debian/rules 2009-05-30 09:58:16 UTC (rev 8632)
@@ -0,0 +1,21 @@
+#!/usr/bin/make -f
+# DEB_PYTHON_SYSTEM = pysupport
+# include /usr/share/cdbs/1/rules/debhelper.mk
+# include /usr/share/cdbs/1/class/python-distutils.mk
+
+PKG = python-repoze.who-plugins
+UPSTREAMS = \
+ repoze.who-friendlyform \
+ repoze.who.plugins.sa \
+ repoze.who-testutil \
+ $(NULL)
+
+# DEB_PYTHON_INSTALL_ARGS_ALL += --single-version-externally-managed
+# DEB_COMPRESS_EXCLUDE += .js
+
+# build/$(PKG)::
+# $(MAKE) -C docs/ html
+# cleanbuilddir/$(PKG)::
+# $(MAKE) -C docs/ clean
+
+-include debian/get-orig-source.mk
Property changes on: packages/python-repoze.who-plugins/trunk/debian/rules
___________________________________________________________________
Added: svn:executable
+ *
More information about the Python-modules-commits
mailing list