[pypoppler] Minimal fix for changes in poppler 0.18.x

mkasik mkasik at fedoraproject.org
Mon Oct 24 10:57:47 UTC 2011


commit f7475801b5176fd8523cc1ff354ab954f3cd44b4
Author: Marek Kasik <mkasik at redhat.com>
Date:   Mon Oct 24 12:31:03 2011 +0200

    Minimal fix for changes in poppler 0.18.x

 pypoppler-0.12.1-poppler-0.18.0-minimal-fix.patch |   65 +++++++++++++++++++++
 pypoppler.spec                                    |    8 ++-
 2 files changed, 72 insertions(+), 1 deletions(-)
---
diff --git a/pypoppler-0.12.1-poppler-0.18.0-minimal-fix.patch b/pypoppler-0.12.1-poppler-0.18.0-minimal-fix.patch
new file mode 100644
index 0000000..2099e0a
--- /dev/null
+++ b/pypoppler-0.12.1-poppler-0.18.0-minimal-fix.patch
@@ -0,0 +1,65 @@
+--- pypoppler-0.12.1/poppler.defs	2011-10-24 11:57:35.000000000 +0200
++++ pypoppler-0.12.1/poppler.defs	2011-10-24 12:01:28.000000000 +0200
+@@ -1646,62 +1646,6 @@
+   (return-type "GType")
+ )
+ 
+-(define-method render_to_pixbuf
+-  (of-object "PopplerPage")
+-  (c-name "poppler_page_render_to_pixbuf")
+-  (return-type "none")
+-  (unblock-threads #t)
+-  (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")
+-  (unblock-threads #t)
+-  (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*")
+-  (unblock-threads #t)
+-)
+-
+-(define-method render_selection_to_pixbuf
+-  (of-object "PopplerPage")
+-  (c-name "poppler_page_render_selection_to_pixbuf")
+-  (return-type "none")
+-  (unblock-threads #t)
+-  (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")
diff --git a/pypoppler.spec b/pypoppler.spec
index 32ad003..10d9616 100644
--- a/pypoppler.spec
+++ b/pypoppler.spec
@@ -4,7 +4,7 @@
 
 Name:           pypoppler
 Version:        0.12.1
-Release:        16%{?dist}
+Release:        17%{?dist}
 Summary:        Python bindings for the Poppler PDF rendering library
 
 Group:          Applications/Publishing
@@ -36,6 +36,8 @@ Patch2:		79_78.diff
 # Changes for poppler 1.5
 Patch3:		pypoppler-0.12.1-poppler0.15.0-changes.patch
 
+# Minimal fix for changes in poppler 0.18
+Patch4:		pypoppler-0.12.1-poppler-0.18.0-minimal-fix.patch
 
 %description
 Python bindings for the Poppler PDF rendering library. It is needed to
@@ -48,6 +50,7 @@ run programs written in Python and using Poppler set.
 ##%patch1 -p0 -b .bzr76
 %patch2 -p0 -b .bzr79
 %patch3 -p1 -b .poppler15
+%patch4 -p1 -b .poppler-18-minimal
 
 
 %build
@@ -72,6 +75,9 @@ rm -rf %{buildroot}
 
 
 %changelog
+* Mon Oct 24 2011 Marek Kasik <mkasik at redhat.com> - 0.12.1-17
+- Minimal fix for changes in poppler 0.18.x
+
 * Fri Sep 30 2011 Marek Kasik <mkasik at redhat.com> - 0.12.1-16
 - Rebuild (poppler-0.18.0)
 


More information about the scm-commits mailing list