debian/0000755000000000000000000000000012170524021007160 5ustar debian/rules0000755000000000000000000000256012170523624010253 0ustar #!/usr/bin/make -f PYTHONS := $(shell pyversions -vr debian/control) %: dh $@ --with python2,autoreconf override_dh_strip: dh_strip --dbg-package=python-poppler-dbg -Xpoppler_d.so override_dh_clean: rm -fr build dh_clean override_dh_auto_configure: for pyvers in ${PYTHONS}; do \ mkdir -p build/py$$pyvers; cp -Rl `ls . | grep -v build | grep -v debian` build/py$$pyvers;\ (cd build/py$$pyvers; ./configure --prefix=/usr PYTHON=python$$pyvers); \ mkdir -p build/py$$pyvers-dbg; cp -Rl `ls . | grep -v build | grep -v debian` build/py$$pyvers-dbg; \ (cd build/py$$pyvers-dbg; ./configure --prefix=/usr PYTHON=python$$pyvers-dbg CFLAGS="-g -ggdb "); \ done override_dh_auto_build: for pyvers in ${PYTHONS}; do \ $(MAKE) -C build/py$$pyvers/ PYTHON=python$$pyvers; \ $(MAKE) -C build/py$$pyvers-dbg/ PYTHON=python$$pyvers-dbg PYTHON_INCLUDES=`python$$pyvers-dbg-config --includes`; \ done override_dh_auto_install: for pyvers in ${PYTHONS}; do \ $(MAKE) -C build/py$$pyvers/ install DESTDIR=$(CURDIR)/debian/python-poppler; \ $(MAKE) -C build/py$$pyvers-dbg/ install DESTDIR=$(CURDIR)/debian/python-poppler-dbg; \ (cd $(CURDIR)/debian/python-poppler-dbg/usr/lib/python$$pyvers/*-packages; mv poppler.so poppler_d.so); \ done find $(CURDIR)/debian/python-poppler -name "*.la" -delete find $(CURDIR)/debian/python-poppler-dbg -name "*poppler" -exec rm -fr {} + debian/control0000644000000000000000000000354311745527676010622 0ustar Source: python-poppler Section: python Priority: optional Maintainer: Andrea Gasparini Uploaders: Debian Python Modules Team Build-Depends: debhelper (>= 7.0.50~), dh-autoreconf, python-all-dev (>= 2.6.6-3~), python-all-dbg, python-gtk2-dev (>= 2.10), python-gobject-dev (>= 2.10.1), python-cairo-dev (>= 1.8.4), libpoppler-glib-dev (>= 0.15), libatk1.0-dev (>= 1.6.0), libxcb-render-util0-dev (>= 0.2+git36-1~) | libxcb-render0-dev Standards-Version: 3.9.3 X-Python-Version: >= 2.4 Vcs-Svn: svn://svn.debian.org/python-modules/packages/python-poppler/trunk/ Vcs-Browser: http://svn.debian.org/viewsvn/python-modules/packages/python-poppler/trunk/ Homepage: http://launchpad.net/poppler-python Package: python-poppler Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends}, ${python:Depends}, python-gtk2 (>=2.10.0), python-gobject (>= 2.10.1), python-cairo (>= 1.8.4) Provides: ${python:Provides} Description: Poppler Python bindings This package includes Python bindings for LibPoppler. It is needed to run programs written in Python and using Poppler set. LibPoppler is a PDF rendering library based on xpdf PDF viewer, and used by kpdf and evince PDF viewers. Package: python-poppler-dbg Section: debug Architecture: any Priority: extra Depends: ${shlibs:Depends}, ${misc:Depends}, ${python:Depends}, python-poppler (= ${binary:Version}), python-dbg, python-gobject-dbg, python-cairo-dbg, python-gtk2-dbg Provides: ${python:Provides} Description: Poppler Python bindings (debug extension) This package includes Python bindings for LibPoppler. It is needed to run programs written in Python and using Poppler set. LibPoppler is a PDF rendering library based on xpdf PDF viewer, and used by kpdf and evince PDF viewers. . This package contains the extension built for the Python debug interpreter. debian/source/0000755000000000000000000000000011747521425010476 5ustar debian/source/format0000644000000000000000000000001411634470724011704 0ustar 3.0 (quilt) debian/changelog0000644000000000000000000000667412170523730011055 0ustar python-poppler (0.12.1-8.1) unstable; urgency=low * Non-maintainer upload. * Fix "FTBFS: /usr/bin/make: unrecognized option '--prefix|--exec- prefix|--includes|--libs|--cflags|--ldflags|--extension-suffix|-- help|--configdir'": apply Ubuntu changes done by Matthias Klose: - Fix typo calling python-config --includes. (Closes: #711800) -- gregor herrmann Sun, 14 Jul 2013 15:28:56 +0200 python-poppler (0.12.1-8) unstable; urgency=low * uploading to unstable -- Andrea Gasparini Sun, 29 Apr 2012 17:51:08 +0200 python-poppler (0.12.1-7) experimental; urgency=low * debian/patches: + series: re-enabled poppler-0.18.diff (Closes: #651388) + added 03-psfilenew.diff (Closes: #662890) + added 04-closefiles.diff (LP: #316722) * debian/control: bump standard version to 3.9.3 * debian/rules: rewrite with dh7,added autoreconf (Closes: #558532) -- Andrea Gasparini Fri, 06 Apr 2012 12:05:36 +0200 python-poppler (0.12.1-6) unstable; urgency=low * patches/series: reverted applied poppler-0.18.diff (Closes: #651388) -- Andrea Gasparini Mon, 12 Dec 2011 14:28:19 +0100 python-poppler (0.12.1-5) unstable; urgency=low * Specified version of GPL in debian/copyright * Add poppler-0.18.diff: Drop API which does not exist any more in poppler 0.18. Thanks to Martin Pitt for the patch.(LP: #900707) (Closes: #651388) -- Andrea Gasparini Fri, 09 Dec 2011 15:37:15 +0100 python-poppler (0.12.1-4) unstable; urgency=low * Team upload. * Upload to unstable. -- Jakub Wilk Mon, 04 Jul 2011 13:21:00 +0200 python-poppler (0.12.1-3) experimental; urgency=low * Team upload. * Convert to source format 3.0 (quilt). * Apply patch to follow Poppler 0.15 API changes (closes: #628047). Thanks to Pino Toscano for the bug report, Tom Callaway from Fedora for the patch, and to Michael Biebl for digging up the patch. + Bump minimum required Poppler version to 0.15. * Add build-arch and build-indep targets. -- Jakub Wilk Sat, 02 Jul 2011 14:29:47 +0200 python-poppler (0.12.1-2) unstable; urgency=low * Team upload. [ Piotr Ożarowski ] * Explicitly set source format to 1.0. [ Jakub Wilk ] * Protect for loops in debian/rules with set -e (closes: #626625). * Bump standards version to 3.9.2 (no changed needed). * Remove unused build-dependency on cdbs. -- Jakub Wilk Sun, 22 May 2011 19:36:54 +0200 python-poppler (0.12.1-1) unstable; urgency=low * New upstream release * Updated watch file and homepage field. * debian/rules: fixed for python2.6 -- Andrea Gasparini Sat, 24 Oct 2009 08:00:51 +0200 python-poppler (0.10.0-1) unstable; urgency=low [ Sandro Tosi ] * debian/control - switch Vcs-Browser field to viewsvn [ Josselin Mouette ] * New upstream release. Closes: #518611. + Bump build-dependency on poppler. + Add missing build-dependency on atk. * Switch to python-support. -- Josselin Mouette Sun, 08 Mar 2009 04:39:53 +0100 python-poppler (0.8.1-1) unstable; urgency=low [ Andrea Gasparini ] * First upload (Closes: #453391) [ Sandro Tosi ] * debian/control - added Vcs-Svn and Vcs-Browser [ Carlos Galisteo ] * debian/control: - Added Homepage field. -- Andrea Gasparini Tue, 10 Jun 2008 23:13:37 +0200 debian/compat0000644000000000000000000000000211744541356010376 0ustar 7 debian/patches/0000755000000000000000000000000011747521425010625 5ustar debian/patches/series0000644000000000000000000000011711744541356012043 0ustar 01-poppler-0.15.diff 02-poppler-0.18.diff 03-psfilenew.diff 04-closefiles.diff debian/patches/03-psfilenew.diff0000644000000000000000000000112111745527676013702 0ustar Description: fixes a typo for ps_file_new binding. Author: Jens Stimpfle Bug-Debian: http://bugs.debian.org/662890 Forwarded: yes Last-Update: 2012-04-24 --- python-poppler-0.12.1.orig/poppler.defs 2012-04-04 23:06:47.000000000 +0200 +++ python-poppler-0.12.1/poppler.defs 2012-04-04 23:13:31.000000000 +0200 @@ -1212,7 +1212,7 @@ (define-function poppler_ps_file_new (c-name "poppler_ps_file_new") - (is-constructor-of "PopplerPsFile") + (is-constructor-of "PopplerPSFile") (return-type "PopplerPSFile*") (parameters '("PopplerDocument*" "document") debian/patches/04-closefiles.diff0000644000000000000000000000354311745513365014037 0ustar Description: Python-poppler leaks memory while openinig/closing files. Needed for pdfshuffler poppler 0.18 transition, http://bugs.debian.org/660937 Origin: https://bugs.launchpad.net/poppler-python/+bug/316722 Bug-Ubuntu: https://bugs.launchpad.net/poppler-python/+bug/316722 Forwarded: yes Last-Update: 2012-04-22 --- a/poppler.defs +++ b/poppler.defs @@ -923,6 +923,7 @@ (define-function document_new_from_file (c-name "poppler_document_new_from_file") + (caller-owns-return #t) (return-type "PopplerDocument*") (parameters '("const-char*" "uri") @@ -933,6 +934,7 @@ (define-function document_new_from_data (c-name "poppler_document_new_from_data") + (caller-owns-return #t) (return-type "PopplerDocument*") (parameters '("char*" "data") @@ -971,6 +973,7 @@ (define-method get_page (of-object "PopplerDocument") (c-name "poppler_document_get_page") + (caller-owns-return #t) (return-type "PopplerPage*") (parameters '("int" "index") @@ -980,6 +983,7 @@ (define-method get_page_by_label (of-object "PopplerDocument") (c-name "poppler_document_get_page_by_label") + (caller-owns-return #t) (return-type "PopplerPage*") (parameters '("const-char*" "label") @@ -1001,6 +1005,7 @@ (define-method find_dest (of-object "PopplerDocument") (c-name "poppler_document_find_dest") + (caller-owns-return #t) (return-type "PopplerDest*") (parameters '("const-gchar*" "link_name") @@ -1010,6 +1015,7 @@ (define-method get_form_field (of-object "PopplerDocument") (c-name "poppler_document_get_form_field") + (caller-owns-return #t) (return-type "PopplerFormField*") (parameters '("gint" "id") @@ -1057,6 +1063,7 @@ (define-method get_action (of-object "PopplerIndexIter") (c-name "poppler_index_iter_get_action") + (caller-owns-return #t) (return-type "PopplerAction*") ) debian/patches/01-poppler-0.15.diff0000644000000000000000000000431611744541356013745 0ustar Description: Follow API changes in Poppler 0.15. The undermentioned API changes were made (following similar changes in Poppler API): - PopplerPage.get_text(style, rect) + PopplerPage.get_text() + PopplerPage.get_selected_text(style, selection) Author: Tom Callaway Origin: vendor, http://pkgs.fedoraproject.org/gitweb/?p=pypoppler.git;a=blob;f=pypoppler-0.12.1-poppler0.15.0-changes.patch;h=628b37951a2c1ae68101e00da424ee8651e4dc2f;hb=a418189ad25d27c6d4dff025c5e323a768c81ae7 Bug: https://bugs.launchpad.net/poppler-python/+bug/696025 Bug-Debian: http://bugs.debian.org/628047 Forwarded: yes Last-Update: 2011-07-02 diff -up pypoppler-0.12.1/poppler.defs.poppler15 pypoppler-0.12.1/poppler.defs --- pypoppler-0.12.1/poppler.defs.poppler15 2010-10-06 16:02:47.023101009 -0400 +++ pypoppler-0.12.1/poppler.defs 2010-10-06 16:10:32.749101000 -0400 @@ -1760,6 +1760,12 @@ (return-type "int") ) +(define-method get_label + (of-object "PopplerPage") + (c-name "poppler_page_get_label") + (return-type "gchar*") +) + (define-method get_duration (of-object "PopplerPage") (c-name "poppler_page_get_duration") @@ -1805,9 +1811,15 @@ (of-object "PopplerPage") (c-name "poppler_page_get_text") (return-type "char*") +) + +(define-method get_selected_text + (of-object "PopplerPage") + (c-name "poppler_page_get_selected_text") + (return-type "char*") (parameters '("PopplerSelectionStyle" "style") - '("PopplerRectangle*" "rect") + '("PopplerRectangle*" "selection") ) ) @@ -1895,6 +1907,16 @@ ) ) +(define-function poppler_page_add_annot + (of-object "PopplerPage") + (c-name "poppler_page_add_annot") + (return-type "none") + (parameters + '("PopplerAnnot*" "annot") + '("GList*" "list") + ) +) + (define-method get_crop_box (of-object "PopplerPage") (c-name "poppler_page_get_crop_box") @@ -1904,6 +1926,16 @@ ) ) +(define-method get_text_layout + (of-object "PopplerPage") + (c-name "poppler_page_get_text_layout") + (return-type "gboolean") + (parameters + '("PopplerRectangle**" "rectangles") + '("guint*" "n_rectangles") + ) +) + (define-function poppler_rectangle_get_type (c-name "poppler_rectangle_get_type") (return-type "GType") debian/patches/02-poppler-0.18.diff0000644000000000000000000000347211744541356013753 0ustar Description: Drop API which does not exist any more in poppler 0.18. Author: Martin Pitt Bug: https://launchpad.net/bugs/900707 Index: python-poppler-0.12.1/poppler.defs =================================================================== --- python-poppler-0.12.1.orig/poppler.defs 2011-12-06 12:54:05.000000000 +0100 +++ python-poppler-0.12.1/poppler.defs 2011-12-06 12:55:58.465615027 +0100 @@ -1646,58 +1646,6 @@ (return-type "GType") ) -(define-method render_to_pixbuf - (of-object "PopplerPage") - (c-name "poppler_page_render_to_pixbuf") - (return-type "none") - (parameters - '("int" "src_x") - '("int" "src_y") - '("int" "src_width") - '("int" "src_height") - '("double" "scale") - '("int" "rotation") - '("GdkPixbuf*" "pixbuf") - ) -) - -(define-method render_to_pixbuf_for_printing - (of-object "PopplerPage") - (c-name "poppler_page_render_to_pixbuf_for_printing") - (return-type "none") - (parameters - '("int" "src_x") - '("int" "src_y") - '("int" "src_width") - '("int" "src_height") - '("double" "scale") - '("int" "rotation") - '("GdkPixbuf*" "pixbuf") - ) -) - -(define-method get_thumbnail_pixbuf - (of-object "PopplerPage") - (c-name "poppler_page_get_thumbnail_pixbuf") - (return-type "GdkPixbuf*") -) - -(define-method render_selection_to_pixbuf - (of-object "PopplerPage") - (c-name "poppler_page_render_selection_to_pixbuf") - (return-type "none") - (parameters - '("gdouble" "scale") - '("int" "rotation") - '("GdkPixbuf*" "pixbuf") - '("PopplerRectangle*" "selection") - '("PopplerRectangle*" "old_selection") - '("PopplerSelectionStyle" "style") - '("GdkColor*" "glyph_color") - '("GdkColor*" "background_color") - ) -) - (define-method render (of-object "PopplerPage") (c-name "poppler_page_render") debian/copyright0000644000000000000000000000233311745513365011134 0ustar This package was debianized by Andrea Gasparini on Tue, 13 Nov 2007 20:40:14 +0000. It was downloaded from http://www.gnome.org/~gianmt/ Upstream Authors: Gian Mario Tagliaretti Ali Afshar Copyright © 2007-2012 Gian Mario Tagliaretti License: This program 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; either version 2, or (at your option) any later version. This program 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. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. On Debian systems, the full text of the GPL can be found in /usr/share/common-licenses/GPL-2 The Debian packaging is © 2007, Andrea Gasparini and is licensed under the GPL-2, see `/usr/share/common-licenses/GPL-2'. debian/python-poppler.examples0000644000000000000000000000002511076423165013730 0ustar demo/demo-poppler.py debian/watch0000644000000000000000000000014511745513365010231 0ustar version=3 https://launchpad.net/poppler-python/ trunk/development/\+download/pypoppler-(.+)\.tar\.gz