* Move paster_templates to /usr/share/
+ 01_change_templates_path patch added, dpatch added to build depends
+ recommend python-pastescript (>= 1.6.2-3)
* Add "~" to python-setuptools minimum required build dependency to ease
backporting
Piotr Ożarowski
15 years ago
0 | pastedeploy (1.3.1-3) UNRELEASED; urgency=low | |
0 | pastedeploy (1.3.1-3) unstable; urgency=low | |
1 | 1 | |
2 | 2 | * Replace python-setuptools with python-pkg-resources in Depends |
3 | 3 | (closes: #468715) |
4 | 4 | * Remove paste-common dependency, python-support will provide all needed |
5 | 5 | namespace |
6 | * Move paster_templates to /usr/share/ | |
7 | + 01_change_templates_path patch added, dpatch added to build depends | |
8 | + recommend python-pastescript (>= 1.6.2-3) | |
9 | * Add "~" to python-setuptools minimum required build dependency to ease | |
10 | backporting | |
6 | 11 | |
7 | -- Piotr Ożarowski <piotr@debian.org> Sat, 26 Apr 2008 18:21:58 +0200 | |
12 | -- Piotr Ożarowski <piotr@debian.org> Sat, 24 May 2008 18:56:13 +0200 | |
8 | 13 | |
9 | 14 | pastedeploy (1.3.1-2) unstable; urgency=low |
10 | 15 |
2 | 2 | Priority: optional |
3 | 3 | Maintainer: Piotr Ożarowski <piotr@debian.org> |
4 | 4 | Uploaders: Debian Python Modules Team <python-modules-team@lists.alioth.debian.org> |
5 | Build-Depends: debhelper (>= 5) | |
6 | Build-Depends-Indep: python (>= 2.3.5-11), python-all-dev, python-support (>= 0.6.4), python-setuptools (>= 0.6b3-1), python-docutils | |
5 | Build-Depends: debhelper (>= 5), dpatch | |
6 | Build-Depends-Indep: python (>= 2.3.5-11), python-all-dev, python-support (>= 0.6.4), python-setuptools (>= 0.6b3-1~), python-docutils | |
7 | 7 | Standards-Version: 3.7.3 |
8 | 8 | Homepage: http://pythonpaste.org/deploy/ |
9 | 9 | XS-Python-Version: all |
13 | 13 | Package: python-pastedeploy |
14 | 14 | Architecture: all |
15 | 15 | Depends: ${python:Depends}, python-pkg-resources |
16 | Recommends: python-pastescript (>= 1.6.2-3) | |
16 | 17 | XB-Python-Version: ${python:Versions} |
17 | 18 | Enhances: python-paste |
18 | 19 | Description: Load, configure, and compose WSGI applications and servers |
2 | 2 | |
3 | 3 | It was downloaded from http://pypi.python.org/pypi/PasteDeploy |
4 | 4 | |
5 | Copyright Holder: Ian Bicking <ianb@colorstudy.com> | |
5 | Copyright (c) 2005-2007 Ian Bicking <ianb@colorstudy.com> and Contributors | |
6 | 6 | |
7 | 7 | License: MIT License |
8 | 8 |
0 | 01_change_templates_path |
0 | #! /bin/sh /usr/share/dpatch/dpatch-run | |
1 | ## 01_change_templates_path.dpatch by Piotr Ożarowski <piotr@debian.org> | |
2 | ## | |
3 | ## All lines beginning with `## DP:' are a description of the patch. | |
4 | ## DP: paster's templates are outside site-packages in Debian | |
5 | ||
6 | @DPATCH@ | |
7 | diff -urNad pastedeploy-1.3.1~/paste/deploy/paster_templates.py pastedeploy-1.3.1/paste/deploy/paster_templates.py | |
8 | --- pastedeploy-1.3.1~/paste/deploy/paster_templates.py 2007-06-26 19:16:23.000000000 +0200 | |
9 | +++ pastedeploy-1.3.1/paste/deploy/paster_templates.py 2008-05-24 18:54:27.000000000 +0200 | |
10 | @@ -5,7 +5,7 @@ | |
11 | ||
12 | class PasteDeploy(Template): | |
13 | ||
14 | - _template_dir = 'paster_templates/paste_deploy' | |
15 | + _template_dir = '/usr/share/paster_templates/paste_deploy' | |
16 | summary = "A web application deployed through paste.deploy" | |
17 | ||
18 | egg_plugins = ['PasteDeploy'] |
4 | 4 | DEB_UPSTREAM_VERSION=$(shell dpkg-parsechangelog | sed -rne 's,^Version: ([^-]+).*,\1,p') |
5 | 5 | PYVERS=$(shell pyversions -vr) |
6 | 6 | DOCS=$(shell cd docs && find ./ -name "*.txt" -not -name "license.txt" -printf "%p " | sed "s/.txt//g") |
7 | PKGDIR=$(CURDIR)/debian/python-pastedeploy | |
7 | 8 | |
8 | clean: | |
9 | include /usr/share/dpatch/dpatch.make | |
10 | ||
11 | clean: unpatch | |
9 | 12 | dh_testdir |
10 | 13 | dh_testroot |
11 | 14 | rm -rf dist build |
12 | 15 | find . -name '*\.py[co]' -delete |
13 | 16 | dh_clean build-docs $(PYVERS:%=install-python%) |
14 | 17 | |
15 | build: build-docs | |
18 | build: patch build-docs | |
16 | 19 | |
17 | 20 | build-docs: |
18 | 21 | dh_installdirs |
19 | 22 | for NAME in $(DOCS); do \ |
20 | 23 | rst2html --cloak-email-addresses --no-toc-backlinks "docs/$$NAME.txt" \ |
21 | > "debian/python-pastedeploy/usr/share/doc/python-pastedeploy/docs/$$NAME.html"; \ | |
24 | > "$(PKGDIR)/usr/share/doc/python-pastedeploy/docs/$$NAME.html"; \ | |
22 | 25 | done |
23 | 26 | touch $@ |
24 | 27 | |
25 | 28 | install: build $(PYVERS:%=install-python%) |
26 | install-python%: | |
29 | install-python%: patch | |
27 | 30 | python$* setup.py install \ |
28 | 31 | --single-version-externally-managed \ |
29 | --root $(CURDIR)/debian/python-pastedeploy | |
32 | --root $(PKGDIR) | |
30 | 33 | # pth file is not needed |
31 | rm -f debian/python-pastedeploy/usr/lib/python$*/site-packages/PasteDeploy-${DEB_UPSTREAM_VERSION}-py$*-nspkg.pth | |
32 | # provided by paste-common package: | |
33 | rm -f debian/python-pastedeploy/usr/lib/python$*/site-packages/pastedeploy/paste/__init__.py | |
34 | rm -f $(PKGDIR)/usr/lib/python$*/site-packages/PasteDeploy-${DEB_UPSTREAM_VERSION}-py$*-nspkg.pth | |
35 | # python-support's namespace feature will handle this | |
36 | rm -f $(PKGDIR)/usr/lib/python$*/site-packages/paste/__init__.py | |
37 | # move templates outside site-packages | |
38 | if [ -d $(PKGDIR)/usr/share/paster_templates ]; \ | |
39 | then rm -rf $(PKGDIR)/usr/lib/python$*/site-packages/paste/deploy/paster_templates; \ | |
40 | else \ | |
41 | mv $(PKGDIR)/usr/lib/python$*/site-packages/paste/deploy/paster_templates \ | |
42 | $(PKGDIR)/usr/share/;\ | |
43 | fi | |
34 | 44 | |
35 | 45 | binary-indep: build install |
36 | 46 | dh_testdir -i |