[Python-modules-commits] r13657 - in packages/python-djvulibre/tags (17 files)
jwilk at users.alioth.debian.org
jwilk at users.alioth.debian.org
Fri Jun 25 23:51:36 UTC 2010
Date: Friday, June 25, 2010 @ 23:51:28
Author: jwilk
Revision: 13657
[svn-buildpackage] Tagging python-djvulibre 0.1.18-2
Added:
packages/python-djvulibre/tags/0.1.18-2/
packages/python-djvulibre/tags/0.1.18-2/debian/changelog
(from rev 13656, packages/python-djvulibre/trunk/debian/changelog)
packages/python-djvulibre/tags/0.1.18-2/debian/control
(from rev 13650, packages/python-djvulibre/trunk/debian/control)
packages/python-djvulibre/tags/0.1.18-2/debian/copyright
(from rev 12758, packages/python-djvulibre/trunk/debian/copyright)
packages/python-djvulibre/tags/0.1.18-2/debian/patches/disable-memory-test.diff
(from rev 13653, packages/python-djvulibre/trunk/debian/patches/disable-memory-test.diff)
packages/python-djvulibre/tags/0.1.18-2/debian/patches/max-cachesize-64bit.diff
(from rev 13654, packages/python-djvulibre/trunk/debian/patches/max-cachesize-64bit.diff)
packages/python-djvulibre/tags/0.1.18-2/debian/patches/series
(from rev 13654, packages/python-djvulibre/trunk/debian/patches/series)
packages/python-djvulibre/tags/0.1.18-2/debian/python-djvu-dbg.install
(from rev 12754, packages/python-djvulibre/trunk/debian/python-djvu-dbg.install)
packages/python-djvulibre/tags/0.1.18-2/debian/python-djvu.install
(from rev 12755, packages/python-djvulibre/trunk/debian/python-djvu.install)
packages/python-djvulibre/tags/0.1.18-2/debian/rules
(from rev 13649, packages/python-djvulibre/trunk/debian/rules)
Deleted:
packages/python-djvulibre/tags/0.1.18-2/debian/changelog
packages/python-djvulibre/tags/0.1.18-2/debian/control
packages/python-djvulibre/tags/0.1.18-2/debian/copyright
packages/python-djvulibre/tags/0.1.18-2/debian/patches/series
packages/python-djvulibre/tags/0.1.18-2/debian/python-djvu-dbg.install
packages/python-djvulibre/tags/0.1.18-2/debian/python-djvu.install
packages/python-djvulibre/tags/0.1.18-2/debian/rules
Deleted: packages/python-djvulibre/tags/0.1.18-2/debian/changelog
===================================================================
--- packages/python-djvulibre/trunk/debian/changelog 2010-04-25 20:44:23 UTC (rev 12753)
+++ packages/python-djvulibre/tags/0.1.18-2/debian/changelog 2010-06-25 23:51:28 UTC (rev 13657)
@@ -1,60 +0,0 @@
-python-djvulibre (0.1.17-2) UNRELEASED; urgency=low
-
- * Install example programs.
- * Switch to source format 3.0 (quilt).
- * Build python-djvu-dbg (debug extension + detached debug symbols):
- + Build-depend on python-all-dbg.
- + In order to work around bug #541314, disable automatic cythoning sources
- with setup.py. [setup-disable-auto-cython.diff]
- + Cython sources manually in debian/rules.
- * Rewrite debian/rules using overrides.
- * Don't install Sphinx artifacts (.buildinfo, objects.inv) into the binary
- package.
-
- -- Jakub Wilk <jwilk at debian.org> Sun, 25 Apr 2010 22:30:55 +0200
-
-python-djvulibre (0.1.17-1) unstable; urgency=low
-
- * New upstream release.
- * Update my e-mail addresses.
- * Let dh_installdocs install the upstream changelog.
- * Bump standards version to 3.8.4 (no changes needed).
-
- -- Jakub Wilk <jwilk at debian.org> Thu, 11 Feb 2010 18:01:05 +0100
-
-python-djvulibre (0.1.16-1) unstable; urgency=low
-
- * New upstream release.
- * Update debian/copyright.
-
- -- Jakub Wilk <ubanus at users.sf.net> Sun, 03 Jan 2010 13:57:57 +0100
-
-python-djvulibre (0.1.15-1) unstable; urgency=low
-
- * New upstream release.
- * Update homepage URI in debian/copyright.
-
- -- Jakub Wilk <ubanus at users.sf.net> Wed, 04 Nov 2009 20:04:26 +0100
-
-python-djvulibre (0.1.14-1) unstable; urgency=low
-
- * New upstream release (closes: #544950).
- * Use unversioned dependency on python-setuptools, as the required version
- is available even in oldstable.
- * Register documentation with doc-base.
-
- -- Jakub Wilk <ubanus at users.sf.net> Fri, 11 Sep 2009 15:50:40 +0200
-
-python-djvulibre (0.1.13-2) unstable; urgency=low
-
- * Make debian/rules safe for parallel builds.
- * Don't assume that the build target will be called with
- Build-Depends-Indep satisfied (does not close #544781).
-
- -- Jakub Wilk <ubanus at users.sf.net> Thu, 03 Sep 2009 13:55:02 +0200
-
-python-djvulibre (0.1.13-1) unstable; urgency=low
-
- * Initial release (closes: #540324).
-
- -- Jakub Wilk <ubanus at users.sf.net> Sun, 16 Aug 2009 11:56:38 +0200
Copied: packages/python-djvulibre/tags/0.1.18-2/debian/changelog (from rev 13656, packages/python-djvulibre/trunk/debian/changelog)
===================================================================
--- packages/python-djvulibre/tags/0.1.18-2/debian/changelog (rev 0)
+++ packages/python-djvulibre/tags/0.1.18-2/debian/changelog 2010-06-25 23:51:28 UTC (rev 13657)
@@ -0,0 +1,79 @@
+python-djvulibre (0.1.18-2) unstable; urgency=low
+
+ * Disable memory test that is likely to fail on 64-bit architectures.
+ [disable-memory-test.diff]
+ * Fix test for maximum cache size on 64-bit architectures.
+ [max-cachesize-64bit.diff]
+
+ -- Jakub Wilk <jwilk at debian.org> Sat, 26 Jun 2010 01:50:10 +0200
+
+python-djvulibre (0.1.18-1) unstable; urgency=low
+
+ * New upstream release.
+ * Update homepage URL.
+ * Fix FTBFS with nostrip build option.
+ * Run tests at build time:
+ + Build-depend on python-nose, djvulibre-bin, ghostscript.
+
+ -- Jakub Wilk <jwilk at debian.org> Sat, 26 Jun 2010 00:39:07 +0200
+
+python-djvulibre (0.1.17-2) unstable; urgency=low
+
+ * Install example programs.
+ * Switch to source format 3.0 (quilt).
+ * Build python-djvu-dbg (debug extension + detached debug symbols):
+ + Build-depend on python-all-dbg.
+ + In order to work around bug #541314, disable automatic cythoning sources
+ with setup.py. [setup-disable-auto-cython.diff]
+ + Cython sources manually in debian/rules.
+ * Rewrite debian/rules using overrides.
+ * Don't install Sphinx artifacts (.buildinfo, objects.inv) into the binary
+ package.
+
+ -- Jakub Wilk <jwilk at debian.org> Sun, 25 Apr 2010 22:54:18 +0200
+
+python-djvulibre (0.1.17-1) unstable; urgency=low
+
+ * New upstream release.
+ * Update my e-mail addresses.
+ * Let dh_installdocs install the upstream changelog.
+ * Bump standards version to 3.8.4 (no changes needed).
+
+ -- Jakub Wilk <jwilk at debian.org> Thu, 11 Feb 2010 18:01:05 +0100
+
+python-djvulibre (0.1.16-1) unstable; urgency=low
+
+ * New upstream release.
+ * Update debian/copyright.
+
+ -- Jakub Wilk <ubanus at users.sf.net> Sun, 03 Jan 2010 13:57:57 +0100
+
+python-djvulibre (0.1.15-1) unstable; urgency=low
+
+ * New upstream release.
+ * Update homepage URI in debian/copyright.
+
+ -- Jakub Wilk <ubanus at users.sf.net> Wed, 04 Nov 2009 20:04:26 +0100
+
+python-djvulibre (0.1.14-1) unstable; urgency=low
+
+ * New upstream release (closes: #544950).
+ * Use unversioned dependency on python-setuptools, as the required version
+ is available even in oldstable.
+ * Register documentation with doc-base.
+
+ -- Jakub Wilk <ubanus at users.sf.net> Fri, 11 Sep 2009 15:50:40 +0200
+
+python-djvulibre (0.1.13-2) unstable; urgency=low
+
+ * Make debian/rules safe for parallel builds.
+ * Don't assume that the build target will be called with
+ Build-Depends-Indep satisfied (does not close #544781).
+
+ -- Jakub Wilk <ubanus at users.sf.net> Thu, 03 Sep 2009 13:55:02 +0200
+
+python-djvulibre (0.1.13-1) unstable; urgency=low
+
+ * Initial release (closes: #540324).
+
+ -- Jakub Wilk <ubanus at users.sf.net> Sun, 16 Aug 2009 11:56:38 +0200
Deleted: packages/python-djvulibre/tags/0.1.18-2/debian/control
===================================================================
--- packages/python-djvulibre/trunk/debian/control 2010-04-25 20:44:23 UTC (rev 12753)
+++ packages/python-djvulibre/tags/0.1.18-2/debian/control 2010-06-25 23:51:28 UTC (rev 13657)
@@ -1,47 +0,0 @@
-Source: python-djvulibre
-Section: python
-Priority: optional
-Maintainer: Jakub Wilk <jwilk at debian.org>
-Uploaders: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
-Build-Depends: debhelper (>= 7.3.5),
- python-support (>= 0.90), python-setuptools, cython, python-all-dev, python-all-dbg,
- libdjvulibre-dev, pkg-config
-Build-Depends-Indep: python-sphinx, python-pygments, graphviz
-Standards-Version: 3.8.4
-Vcs-Svn: svn://svn.debian.org/python-modules/packages/python-djvulibre/trunk
-Vcs-Browser: http://svn.debian.org/viewsvn/python-modules/packages/python-djvulibre/trunk/
-Homepage: http://jwilk.net/software/python-djvulibre.html
-
-Package: python-djvu
-Architecture: any
-Depends: ${python:Depends}, ${shlibs:Depends}, ${misc:Depends}
-Suggests: python-djvu-doc
-Conflicts: python-djvulibre (<< 0.1.12)
-Replaces: python-djvulibre (<< 0.1.12)
-Provides: python-djvulibre
-Description: Python support for the DjVu image format
- python-djvulibre is a set of Python bindings for the DjVuLibre library,
- an open source implementation of DjVu.
-
-Package: python-djvu-dbg
-Section: debug
-Priority: extra
-Architecture: any
-Depends: python-djvu (= ${binary:Version}), ${python:Depends}, ${shlibs:Depends}, ${misc:Depends}
-Description: Python support for the DjVu image format (debug extension)
- python-djvulibre is a set of Python bindings for the DjVuLibre library,
- an open source implementation of DjVu.
- .
- This package contains the detached debugging symbols and the extensions built
- for the Python debug interpreter.
-
-Package: python-djvu-doc
-Section: doc
-Architecture: all
-Depends: ${misc:Depends}, libjs-jquery
-Recommends: python-djvu
-Description: Python support for the DjVu image format (documentation)
- python-djvulibre is a set of Python bindings for the DjVuLibre library,
- an open source implementation of DjVu.
- .
- This package contains technical documentation.
Copied: packages/python-djvulibre/tags/0.1.18-2/debian/control (from rev 13650, packages/python-djvulibre/trunk/debian/control)
===================================================================
--- packages/python-djvulibre/tags/0.1.18-2/debian/control (rev 0)
+++ packages/python-djvulibre/tags/0.1.18-2/debian/control 2010-06-25 23:51:28 UTC (rev 13657)
@@ -0,0 +1,48 @@
+Source: python-djvulibre
+Section: python
+Priority: optional
+Maintainer: Jakub Wilk <jwilk at debian.org>
+Uploaders: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
+Build-Depends: debhelper (>= 7.3.5),
+ python-support (>= 0.90), python-setuptools, cython, python-all-dev, python-all-dbg,
+ libdjvulibre-dev, pkg-config,
+ python-nose, djvulibre-bin, ghostscript
+Build-Depends-Indep: python-sphinx, python-pygments, graphviz
+Standards-Version: 3.8.4
+Vcs-Svn: svn://svn.debian.org/python-modules/packages/python-djvulibre/trunk
+Vcs-Browser: http://svn.debian.org/viewsvn/python-modules/packages/python-djvulibre/trunk/
+Homepage: http://jwilk.net/software/python-djvulibre
+
+Package: python-djvu
+Architecture: any
+Depends: ${python:Depends}, ${shlibs:Depends}, ${misc:Depends}
+Suggests: python-djvu-doc
+Conflicts: python-djvulibre (<< 0.1.12)
+Replaces: python-djvulibre (<< 0.1.12)
+Provides: python-djvulibre
+Description: Python support for the DjVu image format
+ python-djvulibre is a set of Python bindings for the DjVuLibre library,
+ an open source implementation of DjVu.
+
+Package: python-djvu-dbg
+Section: debug
+Priority: extra
+Architecture: any
+Depends: python-djvu (= ${binary:Version}), ${python:Depends}, ${shlibs:Depends}, ${misc:Depends}
+Description: Python support for the DjVu image format (debug extension)
+ python-djvulibre is a set of Python bindings for the DjVuLibre library,
+ an open source implementation of DjVu.
+ .
+ This package contains the detached debugging symbols and the extensions built
+ for the Python debug interpreter.
+
+Package: python-djvu-doc
+Section: doc
+Architecture: all
+Depends: ${misc:Depends}, libjs-jquery
+Recommends: python-djvu
+Description: Python support for the DjVu image format (documentation)
+ python-djvulibre is a set of Python bindings for the DjVuLibre library,
+ an open source implementation of DjVu.
+ .
+ This package contains technical documentation.
Deleted: packages/python-djvulibre/tags/0.1.18-2/debian/copyright
===================================================================
--- packages/python-djvulibre/trunk/debian/copyright 2010-04-25 20:44:23 UTC (rev 12753)
+++ packages/python-djvulibre/tags/0.1.18-2/debian/copyright 2010-06-25 23:51:28 UTC (rev 13657)
@@ -1,25 +0,0 @@
-Format-Specification: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?rev=135
-Name: python-djvulibre
-Maintainer: Jakub Wilk <jwilk at jwilk.net>
-Source: http://jwilk.net/software/python-djvulibre.html
-
-Files: *
-Copyright: 2007, 2008, 2009, 2010 Jakub Wilk <jwilk at jwilk.net>
-License: GPL-2
-
-Files: debian/*
-Copyright: 2009, 2010 Jakub Wilk <jwilk at debian.org>
-License: GPL-2
-
-License: GPL-2
- This package is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; version 2 dated June, 1991.
- .
- This package is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
- .
- On Debian systems, the complete text of the GNU General Public License
- version 2 can be found in the /usr/share/common-licenses/GPL-2 file.
Copied: packages/python-djvulibre/tags/0.1.18-2/debian/copyright (from rev 12758, packages/python-djvulibre/trunk/debian/copyright)
===================================================================
--- packages/python-djvulibre/tags/0.1.18-2/debian/copyright (rev 0)
+++ packages/python-djvulibre/tags/0.1.18-2/debian/copyright 2010-06-25 23:51:28 UTC (rev 13657)
@@ -0,0 +1,25 @@
+Format-Specification: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?rev=135
+Name: python-djvulibre
+Maintainer: Jakub Wilk <jwilk at jwilk.net>
+Source: http://jwilk.net/software/python-djvulibre
+
+Files: *
+Copyright: 2007, 2008, 2009, 2010 Jakub Wilk <jwilk at jwilk.net>
+License: GPL-2
+
+Files: debian/*
+Copyright: 2009, 2010 Jakub Wilk <jwilk at debian.org>
+License: GPL-2
+
+License: GPL-2
+ This package is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; version 2 dated June, 1991.
+ .
+ This package is distributed in the hope that it will be useful, but
+ WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ General Public License for more details.
+ .
+ On Debian systems, the complete text of the GNU General Public License
+ version 2 can be found in the /usr/share/common-licenses/GPL-2 file.
Copied: packages/python-djvulibre/tags/0.1.18-2/debian/patches/disable-memory-test.diff (from rev 13653, packages/python-djvulibre/trunk/debian/patches/disable-memory-test.diff)
===================================================================
--- packages/python-djvulibre/tags/0.1.18-2/debian/patches/disable-memory-test.diff (rev 0)
+++ packages/python-djvulibre/tags/0.1.18-2/debian/patches/disable-memory-test.diff 2010-06-25 23:51:28 UTC (rev 13657)
@@ -0,0 +1,18 @@
+Description: Disable memory test that is likely to fail on 64-bit architectures.
+Author: Jakub Wilk <jwilk at debian.org>
+Last-Update: 2010-06-26
+
+--- a/tests/decode.py
++++ b/tests/decode.py
+@@ -529,11 +529,6 @@
+ ...
+ ValueError: row_alignment must be a positive integer
+
+- >>> page_job.render(RENDER_COLOR, (0, 0, 100000, 100000), (0, 0, 100000, 100000), PixelFormatRgb(), 8)
+- Traceback (most recent call last):
+- ...
+- MemoryError: Unable to allocate 30000000000 bytes for an image memory
+-
+ >>> page_job.render(RENDER_COLOR, (0, 0, 10, 10), (0, 0, 4, 4), PixelFormatGrey(), 1)
+ '\xff\xff\xff\xff\xff\xff\xff\xef\xff\xff\xff\xa4\xff\xff\xff\xb8'
+
Copied: packages/python-djvulibre/tags/0.1.18-2/debian/patches/max-cachesize-64bit.diff (from rev 13654, packages/python-djvulibre/trunk/debian/patches/max-cachesize-64bit.diff)
===================================================================
--- packages/python-djvulibre/tags/0.1.18-2/debian/patches/max-cachesize-64bit.diff (rev 0)
+++ packages/python-djvulibre/tags/0.1.18-2/debian/patches/max-cachesize-64bit.diff 2010-06-25 23:51:28 UTC (rev 13657)
@@ -0,0 +1,27 @@
+Description: Fix test for maximum cache size on 64-bit architectures.
+Author: Jakub Wilk <jwilk at debian.org>
+Last-Update: 2010-06-26
+
+--- a/tests/decode.py
++++ b/tests/decode.py
+@@ -15,6 +15,7 @@
+ from djvu.decode import *
+ from djvu.sexpr import *
+
++import sys
+ import os
+ import tempfile
+ import subprocess
+@@ -44,10 +45,10 @@
+
+ context = Context()
+ assert_equal(context.cache_size, 10 << 20)
+- for n in -100, 0, 1 << 32:
++ for n in -100, 0, (sys.maxint + 1) * 2:
+ assert_raises(ValueError, set_cache_size, n)
+ assert_raises(ValueError, set_cache_size, 0)
+- for n in 1, 100, 1 << 10, 1 << 20, (1 << 32) -1:
++ for n in 1, 100, 1 << 10, 1 << 20, 2 * sys.maxint + 1:
+ set_cache_size(n)
+ assert_equal(context.cache_size, n)
+ context.clear_cache()
Deleted: packages/python-djvulibre/tags/0.1.18-2/debian/patches/series
===================================================================
--- packages/python-djvulibre/trunk/debian/patches/series 2010-04-25 20:44:23 UTC (rev 12753)
+++ packages/python-djvulibre/tags/0.1.18-2/debian/patches/series 2010-06-25 23:51:28 UTC (rev 13657)
@@ -1 +0,0 @@
-setup-disable-auto-cython.diff
Copied: packages/python-djvulibre/tags/0.1.18-2/debian/patches/series (from rev 13654, packages/python-djvulibre/trunk/debian/patches/series)
===================================================================
--- packages/python-djvulibre/tags/0.1.18-2/debian/patches/series (rev 0)
+++ packages/python-djvulibre/tags/0.1.18-2/debian/patches/series 2010-06-25 23:51:28 UTC (rev 13657)
@@ -0,0 +1,3 @@
+setup-disable-auto-cython.diff
+disable-memory-test.diff
+max-cachesize-64bit.diff
Deleted: packages/python-djvulibre/tags/0.1.18-2/debian/python-djvu-dbg.install
===================================================================
--- packages/python-djvulibre/trunk/debian/python-djvu-dbg.install 2010-04-25 20:44:23 UTC (rev 12753)
+++ packages/python-djvulibre/tags/0.1.18-2/debian/python-djvu-dbg.install 2010-06-25 23:51:28 UTC (rev 13657)
@@ -1,2 +0,0 @@
-usr/lib/python*/*-packages/*/*_d.so
-usr/lib/python*/*-packages/*/*.py
Copied: packages/python-djvulibre/tags/0.1.18-2/debian/python-djvu-dbg.install (from rev 12754, packages/python-djvulibre/trunk/debian/python-djvu-dbg.install)
===================================================================
--- packages/python-djvulibre/tags/0.1.18-2/debian/python-djvu-dbg.install (rev 0)
+++ packages/python-djvulibre/tags/0.1.18-2/debian/python-djvu-dbg.install 2010-06-25 23:51:28 UTC (rev 13657)
@@ -0,0 +1 @@
+usr/lib/python*/*-packages/*/*_d.so
Deleted: packages/python-djvulibre/tags/0.1.18-2/debian/python-djvu.install
===================================================================
--- packages/python-djvulibre/trunk/debian/python-djvu.install 2010-04-25 20:44:23 UTC (rev 12753)
+++ packages/python-djvulibre/tags/0.1.18-2/debian/python-djvu.install 2010-06-25 23:51:28 UTC (rev 13657)
@@ -1 +0,0 @@
-usr/lib/python*/*-packages/*/*[!_][!_].so
Copied: packages/python-djvulibre/tags/0.1.18-2/debian/python-djvu.install (from rev 12755, packages/python-djvulibre/trunk/debian/python-djvu.install)
===================================================================
--- packages/python-djvulibre/tags/0.1.18-2/debian/python-djvu.install (rev 0)
+++ packages/python-djvulibre/tags/0.1.18-2/debian/python-djvu.install 2010-06-25 23:51:28 UTC (rev 13657)
@@ -0,0 +1,3 @@
+usr/lib/python*/*-packages/*/*[!_][!_].so
+usr/lib/python*/*-packages/*/*.py
+usr/lib/python*/*-packages/*.egg-info/
Deleted: packages/python-djvulibre/tags/0.1.18-2/debian/rules
===================================================================
--- packages/python-djvulibre/trunk/debian/rules 2010-04-25 20:44:23 UTC (rev 12753)
+++ packages/python-djvulibre/tags/0.1.18-2/debian/rules 2010-06-25 23:51:28 UTC (rev 13657)
@@ -1,45 +0,0 @@
-#!/usr/bin/make -f
-
-PYX_FILES = $(wildcard djvu/*.pyx)
-C_FILES = $(PYX_FILES:.pyx=.c)
-
-PYTHONPATH = $(wildcard $(CURDIR)/build/lib.*-$(shell pyversions -dv))
-
-.PHONY: override_dh_auto_build
-override_dh_auto_build: build/stamp
-
-build/stamp: $(C_FILES)
- dh_auto_build
- touch $(@)
-
-%.c: %.pyx
- cython $(<)
-
-.PHONY: override_dh_installdocs
-ifneq ($(shell dh_listpackages | grep -x -F python-djvu-doc),)
-override_dh_installdocs: doc/stamp
-endif
-override_dh_installdocs:
- dh_installdocs -X.buildinfo -Xobjects.inv
-
-doc/stamp: build/stamp
- $(MAKE) -C doc/ html PYTHONPATH=$(PYTHONPATH):$(CURDIR)
- touch $(@)
-
-.PHONY: override_dh_auto_clean
-override_dh_auto_clean:
- rm -Rf doc/build/ doc/stamp
- rm -Rf build/
- find . -type f \( -name '*.py[co]' -or -name '*.so' -or -name '*.c' \) -delete
- rm -Rf *.egg-info/
-
-.PHONY: override_dh_strip
-override_dh_strip:
- dh_strip --dbg-package=python-djvu-dbg
- cd debian/*-dbg/usr/lib/debug/usr/lib && mv pyshared pymodules
-
-.PHONY: build build-arch build-indep binary binary-arch binary-indep clean
-build build-arch build-indep binary binary-arch binary-indep clean:
- dh $(@)
-
-# vim:ts=4 sw=4 noet
Copied: packages/python-djvulibre/tags/0.1.18-2/debian/rules (from rev 13649, packages/python-djvulibre/trunk/debian/rules)
===================================================================
--- packages/python-djvulibre/tags/0.1.18-2/debian/rules (rev 0)
+++ packages/python-djvulibre/tags/0.1.18-2/debian/rules 2010-06-25 23:51:28 UTC (rev 13657)
@@ -0,0 +1,62 @@
+#!/usr/bin/make -f
+
+PYX_FILES = $(wildcard djvu/*.pyx)
+C_FILES = $(PYX_FILES:.pyx=.c)
+
+nosetests = /usr/bin/nosetests --with-doctest --verbose
+tests = decode.py sexpr.py const.py
+
+pythonpath = $$(_py_=$(strip $(1)); _py_=$${_py_\#python}; ls -d $(CURDIR)/build/lib.*-$${_py_})
+pythonpath_dbg = $$(_py_=$(strip $(1)); _py_=$${_py_\#python}; ls -d $(CURDIR)/build/lib_d.*-$${_py_} 2>/dev/null || ls -d $(CURDIR)/build/lib.*-$${_py_}-pydebug)
+
+.PHONY: override_dh_auto_build
+override_dh_auto_build: build/stamp
+
+build/stamp: $(C_FILES)
+ dh_auto_build
+ touch $(@)
+
+%.c: %.pyx
+ cython $(<)
+
+.PHONY: override_dh_installdocs
+ifneq ($(shell dh_listpackages | grep -x -F python-djvu-doc),)
+override_dh_installdocs: doc/stamp
+endif
+override_dh_installdocs:
+ dh_installdocs -X.buildinfo -Xobjects.inv
+
+doc/stamp: build/stamp
+ $(MAKE) -C doc/ html PYTHONPATH=$(call pythonpath,$(shell pyversions -d)):$(CURDIR)
+ touch $(@)
+
+.PHONY: override_dh_auto_clean
+override_dh_auto_clean:
+ rm -Rf doc/build/ doc/stamp
+ rm -Rf build/
+ find . -type f \( -name '*.py[co]' -or -name '*.so' -or -name '*.c' \) -delete
+ rm -Rf *.egg-info/
+
+.PHONY: override_dh_strip
+override_dh_strip:
+ifeq (,$(filter nostrip,$(DEB_BUILD_OPTIONS)))
+ dh_strip --dbg-package=python-djvu-dbg
+ cd debian/*-dbg/usr/lib/debug/usr/lib && mv pyshared pymodules
+endif
+
+.PHONY: override_dh_auto_test
+override_dh_auto_test:
+ifeq ($(filter nocheck,$(DEB_BUILD_OPTIONS)),)
+ cd tests && \
+ set -x -e; \
+ for python in $(shell pyversions -r); do \
+ PYTHONPATH=$(call pythonpath,$$python) $$python $(nosetests) $(tests); \
+ PYTHONPATH=$(call pythonpath_dbg,$$python) $$python-dbg $(nosetests) $(tests); \
+ done
+endif
+
+.PHONY: build build-arch build-indep binary binary-arch binary-indep clean
+build build-arch build-indep binary binary-arch binary-indep clean:
+ dh $(@)
+
+# vim:ts=4 sw=4 noet
More information about the Python-modules-commits
mailing list