Accepting request 141152 from Publishing
- add pdf2djvu-poppler.patch to fix compile with new poppler OBS-URL: https://build.opensuse.org/request/show/141152 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/pdf2djvu?expand=0&rev=17
This commit is contained in:
commit
6299ed50d7
24
pdf2djvu-poppler.patch
Normal file
24
pdf2djvu-poppler.patch
Normal file
@ -0,0 +1,24 @@
|
||||
Index: pdf2djvu-0.7.15/pdf-backend.cc
|
||||
===================================================================
|
||||
--- pdf2djvu-0.7.15.orig/pdf-backend.cc
|
||||
+++ pdf2djvu-0.7.15/pdf-backend.cc
|
||||
@@ -28,7 +28,7 @@
|
||||
#if POPPLER_VERSION < 2100
|
||||
#include <UTF8.h>
|
||||
#else
|
||||
-#include <UTF.h>
|
||||
+#include <UnicodeMap.h>
|
||||
#endif
|
||||
#include <UnicodeTypeTable.h>
|
||||
|
||||
@@ -575,7 +575,9 @@ pdf::Object *pdf::dict_lookup(pdf::Dict
|
||||
void pdf::write_as_utf8(std::ostream &stream, Unicode unicode_char)
|
||||
{
|
||||
char buffer[8];
|
||||
- int seqlen = mapUTF8(unicode_char, buffer, sizeof buffer);
|
||||
+ GooString enc("UTF-8");
|
||||
+ UnicodeMap *utf8Map = globalParams->getUnicodeMap(&enc);
|
||||
+ int seqlen = utf8Map->mapUnicode(unicode_char, buffer, sizeof buffer);
|
||||
stream.write(buffer, seqlen);
|
||||
}
|
||||
|
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Nov 13 12:44:43 UTC 2012 - idonmez@suse.com
|
||||
|
||||
- add pdf2djvu-poppler.patch to fix compile with new poppler
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Oct 7 18:39:55 UTC 2012 - lazy.kent@opensuse.org
|
||||
|
||||
|
@ -24,6 +24,7 @@ License: GPL-2.0
|
||||
Group: Productivity/Publishing/PDF
|
||||
Url: http://pdf2djvu.googlecode.com/
|
||||
Source0: http://pdf2djvu.googlecode.com/files/%{name}_%{version}.tar.gz
|
||||
Patch1: pdf2djvu-poppler.patch
|
||||
BuildRequires: djvulibre
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: pkgconfig(GraphicsMagick++)
|
||||
@ -43,6 +44,9 @@ metadata.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%if 0%{?suse_version} > 1220
|
||||
%patch1 -p1
|
||||
%endif
|
||||
|
||||
%build
|
||||
%configure
|
||||
|
Loading…
Reference in New Issue
Block a user