[Python-modules-commits] r867 - in /packages/pastescript/trunk/debian: changelog control patches/ postinst prerm rules

pox-guest at users.alioth.debian.org pox-guest at users.alioth.debian.org
Fri Jun 16 00:33:58 UTC 2006


Author: pox-guest
Date: Fri Jun 16 00:33:52 2006
New Revision: 867

URL: http://svn.debian.org/wsvn/python-modules/?sc=1&rev=867
Log:
new upstream release (license problem solved)

Removed:
    packages/pastescript/trunk/debian/patches/
    packages/pastescript/trunk/debian/postinst
    packages/pastescript/trunk/debian/prerm
Modified:
    packages/pastescript/trunk/debian/changelog
    packages/pastescript/trunk/debian/control
    packages/pastescript/trunk/debian/rules

Modified: packages/pastescript/trunk/debian/changelog
URL: http://svn.debian.org/wsvn/python-modules/packages/pastescript/trunk/debian/changelog?rev=867&op=diff
==============================================================================
--- packages/pastescript/trunk/debian/changelog (original)
+++ packages/pastescript/trunk/debian/changelog Fri Jun 16 00:33:52 2006
@@ -1,6 +1,6 @@
-pastescript (0.5.1-1) UNRELEASED; urgency=low
+pastescript (0.9-1) unstable; urgency=low
 
   * Initial release (closes: #366244)
 
- -- Piotr Ozarowski <ozarow at gmail.com>  Wed,  7 Jun 2006 13:06:03 +0200
+ -- Piotr Ozarowski <ozarow at gmail.com>  Thu, 15 Jun 2006 16:57:07 +0200
 

Modified: packages/pastescript/trunk/debian/control
URL: http://svn.debian.org/wsvn/python-modules/packages/pastescript/trunk/debian/control?rev=867&op=diff
==============================================================================
--- packages/pastescript/trunk/debian/control (original)
+++ packages/pastescript/trunk/debian/control Fri Jun 16 00:33:52 2006
@@ -3,14 +3,15 @@
 Priority: optional
 Maintainer: Piotr Ozarowski <ozarow at gmail.com>
 Uploaders: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
-Build-Depends: debhelper (>=5), cdbs (>=0.4.39)
-Build-Depends-Indep: python-dev, python-setuptools (>= 0.6a9-1)
+Build-Depends: debhelper (>= 5.0.37.1)
+Build-Depends-Indep: python (>= 2.3.5-7), python-all-dev, python-central (>= 0.4.10), python-setuptools (>= 0.6b3-1)
 Standards-Version: 3.7.2
+XS-Python-Version: >= 2.4
 
 Package: python-pastescript
 Architecture: all
-Depends: python (>=2.4) | python2.4, python (<<2.5), python-support (>= 0.2.2), python2.4-setuptools (>= 0.6a9-1), paste-common, python-paste, python-pastedeploy
-Recommends: python2.4-cheetah
+Depends: ${python:Depends}, paste-common, python-paste, python-pastedeploy, python-setuptools (>= 0.6b3-1), python-cheetah (>> 1.0-1)
+XB-Python-Version: ${python:Versions}
 Description: serving web applications, creating file layouts for python packages
  Paster is pluggable command-line frontend,
  including commands to setup package file layouts

Modified: packages/pastescript/trunk/debian/rules
URL: http://svn.debian.org/wsvn/python-modules/packages/pastescript/trunk/debian/rules?rev=867&op=diff
==============================================================================
--- packages/pastescript/trunk/debian/rules (original)
+++ packages/pastescript/trunk/debian/rules Fri Jun 16 00:33:52 2006
@@ -1,19 +1,62 @@
 #!/usr/bin/make -f
-# -*- mode: makefile; coding: utf-8 -*-
 
-# python-distutils before debhelper to avoid it calling dh_python by itself
-include /usr/share/cdbs/1/class/python-distutils.mk
-include /usr/share/cdbs/1/rules/debhelper.mk
-include /usr/share/cdbs/1/rules/simple-patchsys.mk
+#export DH_VERBOSE=1
 
-DEB_PYTHON_INSTALL_ARGS_ALL += --single-version-externally-managed
-DEB_PYTHON_INSTALL_ARGS_ALL += --install-lib usr/share/python-support/pastescript
-DEB_COMPRESS_EXCLUDE := .py
+DEB_UPSTREAM_VERSION=$(shell dpkg-parsechangelog \
+	| grep ^Version: | cut -d ' ' -f 2 | cut -d '-' -f 1)
 
-PYVER=$(shell python -V 2>&1 | cut -d ' ' -f 2 | cut -d . -f 1-2)
+PYVERS=$(shell pyversions -vr debian/control)
 
-install/python-pastescript::
-	echo "2.4-" >debian/python-pastescript/usr/share/python-support/pastescript/.version
-	sed -i 's,/usr/bin/python,/usr/bin/python2.4,g' debian/python-pastescript/usr/bin/paster
-	mv debian/python-pastescript/usr/share/python-support/pastescript/PasteScript-${DEB_UPSTREAM_VERSION}{-py${PYVER}.egg-info,.egg-info}
-	rm -f debian/python-pastescript/usr/share/python-support/pastescript/paste/__init__.py
+clean:
+	dh_testdir
+	dh_testroot
+	rm -f build-* python-build*
+	rm -rf dist build
+	find . -name *\.py[co] -exec rm {} \;
+	dh_clean
+
+build: $(PYVERS:%=build-python%)
+	touch $@
+build-python%:
+	python$* setup.py build
+	touch $@
+install: build $(PYVERS:%=install-python%)
+install-python%:
+	python$* setup.py install \
+		--single-version-externally-managed \
+		--root $(CURDIR)/debian/python-pastescript
+	# share Egg dir (remove versions from dirname)
+	mv debian/python-pastescript/usr/lib/python$*/site-packages/PasteScript-${DEB_UPSTREAM_VERSION}{-py$*,}.egg-info
+	# pth file is not needed since all paste* packages are installed in same directory
+	rm -f debian/python-pastescript/usr/lib/python$*/site-packages/PasteScript-${DEB_UPSTREAM_VERSION}-py$*-nspkg.pth
+	# in paste-common package:
+	rm -f debian/python-pastescript/usr/lib/python$*/site-packages/pastescript/paste/__init__.py
+	# paster will not work with python2.3
+ifeq ("2.3", $(shell python -V 2>&1 | cut -d ' ' -f 2 | cut -d . -f 1-2))
+	sed -i 's,/usr/bin/python\>,/usr/bin/python2.4,g' \
+	debian/python-pastescript/usr/bin/paster 
+endif
+
+binary-indep: build install
+	dh_testdir -i
+	dh_testroot -i
+	dh_installchangelogs -i
+	dh_installdocs -i
+	dh_installman -i 
+	dh_installexamples  -i
+	dh_pycentral -i
+	dh_python -i
+	dh_strip -i
+	dh_compress -i -X.py
+	dh_fixperms -i
+	dh_installdeb -i
+	dh_shlibdeps -i
+	dh_gencontrol -i
+	dh_md5sums -i
+	dh_builddeb -i
+
+binary-arch:
+
+binary: binary-indep binary-arch
+
+.PHONY: build clean binary-indep binary-arch binary install configure




More information about the Python-modules-commits mailing list