[Python-modules-commits] r4664 - in packages/pastescript/trunk/debian (changelog dirs rules)

piotr at users.alioth.debian.org piotr at users.alioth.debian.org
Fri Feb 29 22:32:04 UTC 2008


    Date: Friday, February 29, 2008 @ 22:32:03
  Author: piotr
Revision: 4664

Provide /usr/bin/pasterX.Y scripts for all supported Python versions to make Hubert's (and mine :) life easier

Modified:
  packages/pastescript/trunk/debian/changelog
  packages/pastescript/trunk/debian/dirs
  packages/pastescript/trunk/debian/rules

Modified: packages/pastescript/trunk/debian/changelog
===================================================================
--- packages/pastescript/trunk/debian/changelog	2008-02-29 21:38:21 UTC (rev 4663)
+++ packages/pastescript/trunk/debian/changelog	2008-02-29 22:32:03 UTC (rev 4664)
@@ -1,3 +1,9 @@
+pastescript (1.6.2-2) unstable; urgency=low
+
+  * Provide /usr/bin/pasterX.Y scripts for all supported Python versions
+
+ -- Piotr Ożarowski <piotr at debian.org>  Fri, 29 Feb 2008 23:01:40 +0100
+
 pastescript (1.6.2-1) unstable; urgency=low
 
   * New upstream release

Modified: packages/pastescript/trunk/debian/dirs
===================================================================
--- packages/pastescript/trunk/debian/dirs	2008-02-29 21:38:21 UTC (rev 4663)
+++ packages/pastescript/trunk/debian/dirs	2008-02-29 22:32:03 UTC (rev 4664)
@@ -1 +1,2 @@
+/usr/bin
 /usr/share/doc/python-pastescript/docs

Modified: packages/pastescript/trunk/debian/rules
===================================================================
--- packages/pastescript/trunk/debian/rules	2008-02-29 21:38:21 UTC (rev 4663)
+++ packages/pastescript/trunk/debian/rules	2008-02-29 22:32:03 UTC (rev 4664)
@@ -5,6 +5,7 @@
 DEB_UPSTREAM_VERSION=$(shell dpkg-parsechangelog | sed -rne 's,^Version: ([^-]+).*,\1,p')
 PYVERS=$(shell pyversions -vr)
 DOCS=$(shell cd docs && find ./ -name "*.txt" -not -name "license.txt" -printf "%p " | sed "s/.txt//g")
+PKGDIR=$(CURDIR)/debian/python-pastescript
 
 include /usr/share/dpatch/dpatch.make 
 
@@ -21,25 +22,29 @@
 	dh_installdirs
 	for NAME in $(DOCS); do \
 	    rst2html --cloak-email-addresses --no-toc-backlinks "docs/$$NAME.txt" \
-	      > "debian/python-pastescript/usr/share/doc/python-pastescript/docs/$$NAME.html"; \
+	      > "$(PKGDIR)/usr/share/doc/python-pastescript/docs/$$NAME.html"; \
 	done
-	cp docs/*ini debian/python-pastescript/usr/share/doc/python-pastescript/docs/
+	cp docs/*ini $(PKGDIR)/usr/share/doc/python-pastescript/docs/
 	touch $@
 
 install: build $(PYVERS:%=install-python%)
 install-python%:
 	python$* setup.py install \
 		--single-version-externally-managed \
-		--root $(CURDIR)/debian/python-pastescript
+		--root $(PKGDIR)
 	# pth file is not needed since all paste* packages are installed in the same directory
-	rm -f debian/python-pastescript/usr/lib/python$*/site-packages/PasteScript-${DEB_UPSTREAM_VERSION}-py$*-nspkg.pth
+	rm -f $(PKGDIR)/usr/lib/python$*/site-packages/PasteScript-${DEB_UPSTREAM_VERSION}-py$*-nspkg.pth
 	# provided by paste-common package:
-	rm -f debian/python-pastescript/usr/lib/python$*/site-packages/paste/__init__.py
+	rm -f $(PKGDIR)/usr/lib/python$*/site-packages/paste/__init__.py
+	# create /usr/bin/pasterX.Y
+	cp $(CURDIR)/scripts/paster $(PKGDIR)/usr/bin/paster$*
+	sed -i -e '1s,usr/bin/.*,usr/bin/python$*,' $(PKGDIR)/usr/bin/paster$*
+	dh_link /usr/share/man/man1/paster.1.gz /usr/share/man/man1/paster$*.1.gz
 	# default Python version in hashbang
-	sed -i -e '1s/python.*/python/' debian/python-pastescript/usr/bin/paster
+	sed -i -e '1s/python.*/python/' $(PKGDIR)/usr/bin/paster
 	# temporary workaround for bug #459446 (see also patch 02_rename_templates_dir.dpatch)
-	mv debian/python-pastescript/usr/lib/python$*/site-packages/paste/script/templates \
-	   debian/python-pastescript/usr/lib/python$*/site-packages/paste/script/templates_dir \
+	mv $(PKGDIR)/usr/lib/python$*/site-packages/paste/script/templates \
+	   $(PKGDIR)/usr/lib/python$*/site-packages/paste/script/templates_dir \
 
 binary-indep: build install
 	dh_testdir -i




More information about the Python-modules-commits mailing list