From 462c9f67c81e618bc7f04aba534160ecaee8ff3be18cd78eff177824926eff3a Mon Sep 17 00:00:00 2001 From: Kyrill Detinov Date: Tue, 20 Sep 2011 11:55:19 +0000 Subject: [PATCH] Accepting request 83804 from home:vuntz:branches:Publishing Fix build with new poppler OBS-URL: https://build.opensuse.org/request/show/83804 OBS-URL: https://build.opensuse.org/package/show/Publishing/pdf2djvu?expand=0&rev=8 --- pdf2djvu-poppler-0.18.patch | 16 ++++++++++++++++ pdf2djvu.changes | 6 ++++++ pdf2djvu.spec | 9 +++------ 3 files changed, 25 insertions(+), 6 deletions(-) create mode 100644 pdf2djvu-poppler-0.18.patch diff --git a/pdf2djvu-poppler-0.18.patch b/pdf2djvu-poppler-0.18.patch new file mode 100644 index 0000000..087b350 --- /dev/null +++ b/pdf2djvu-poppler-0.18.patch @@ -0,0 +1,16 @@ +Index: pdf2djvu-0.7.10/pdf-backend.hh +=================================================================== +--- pdf2djvu-0.7.10.orig/pdf-backend.hh ++++ pdf2djvu-0.7.10/pdf-backend.hh +@@ -77,7 +77,11 @@ namespace pdf + + namespace link + { ++#if POPPLER_VERSION < 1700 + typedef ::Link Link; ++#else ++ typedef ::AnnotLink Link; ++#endif + typedef ::LinkAction Action; + typedef ::LinkDest Destination; + typedef ::LinkGoTo GoTo; diff --git a/pdf2djvu.changes b/pdf2djvu.changes index d8bd6e8..c9ff82c 100644 --- a/pdf2djvu.changes +++ b/pdf2djvu.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Sep 20 10:01:18 UTC 2011 - vuntz@opensuse.org + +- Add pdf2djvu-poppler-0.18.patch: fix build with poppler + 0.17/0.18. + ------------------------------------------------------------------- Sat Aug 20 21:17:16 UTC 2011 - lazy.kent@opensuse.org diff --git a/pdf2djvu.spec b/pdf2djvu.spec index 9e6454b..ae591ae 100644 --- a/pdf2djvu.spec +++ b/pdf2djvu.spec @@ -25,6 +25,8 @@ Summary: PDF to DjVu Converter Url: http://pdf2djvu.googlecode.com/ Group: Productivity/Publishing/PDF Source0: http://pdf2djvu.googlecode.com/files/%{name}_%{version}.tar.gz +# PATCH-FIX-UPSTREAM pdf2djvu-poppler-0.18.patch vuntz@opensuse.org -- Fix build with poppler 0.17/0.18. Sent upstream: http://code.google.com/p/pdf2djvu/issues/detail?id=61 +Patch0: pdf2djvu-poppler-0.18.patch BuildRequires: djvulibre BuildRequires: gcc-c++ BuildRequires: libdjvulibre-devel @@ -41,14 +43,9 @@ pdf2djvu creates DjVu files from PDF files. It's able to extract: graphics, text layer, hyperlinks, document outline (bookmarks) and metadata. - - -Authors: --------- - Jakub Wilk - %prep %setup -q +%patch0 -p1 %build %configure