From f66cf99f6110e0a25028d668cbe03e85544845cfc6aba001278da5a25573a9d2 Mon Sep 17 00:00:00 2001 From: Kyrill Detinov Date: Fri, 8 Jan 2021 10:08:52 +0000 Subject: [PATCH] Accepting request 861484 from home:badshah400:branches:Publishing Add pdf2djvu-fix-poppler-check.patch: Check for poppler instead of poppler-splash, the latter of which is no longer installed by poppler >= 20.12 [gh#jwilk/pdf2djvu#144]; add BuildRequires: libtool, needed to rebuild configure script after applying patch. OBS-URL: https://build.opensuse.org/request/show/861484 OBS-URL: https://build.opensuse.org/package/show/Publishing/pdf2djvu?expand=0&rev=66 --- pdf2djvu-fix-poppler-check.patch | 15 +++++++++++++++ pdf2djvu.changes | 9 +++++++++ pdf2djvu.spec | 9 ++++++++- 3 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 pdf2djvu-fix-poppler-check.patch diff --git a/pdf2djvu-fix-poppler-check.patch b/pdf2djvu-fix-poppler-check.patch new file mode 100644 index 0000000..cd2f0d7 --- /dev/null +++ b/pdf2djvu-fix-poppler-check.patch @@ -0,0 +1,15 @@ +Index: pdf2djvu-0.9.17.1/configure.ac +=================================================================== +--- pdf2djvu-0.9.17.1.orig/configure.ac ++++ pdf2djvu-0.9.17.1/configure.ac +@@ -73,8 +73,8 @@ do + done + AC_MSG_RESULT([ok]) + +-PKG_CHECK_MODULES([POPPLER], [poppler-splash >= 0.35.0]) +-poppler_version=$($PKG_CONFIG --modversion poppler-splash) ++PKG_CHECK_MODULES([POPPLER], [poppler >= 0.35.0]) ++poppler_version=$($PKG_CONFIG --modversion poppler) + AC_DEFINE_UNQUOTED([POPPLER_VERSION_STRING], ["$poppler_version"], [Define to the version of Poppler]) + parse_poppler_version() + { diff --git a/pdf2djvu.changes b/pdf2djvu.changes index 5a2dec9..89407e7 100644 --- a/pdf2djvu.changes +++ b/pdf2djvu.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Fri Jan 8 00:11:56 UTC 2021 - Atri Bhattacharya + +- Add pdf2djvu-fix-poppler-check.patch: Check for poppler instead + of poppler-splash, the latter of which is no longer installed by + poppler >= 20.12 [gh#jwilk/pdf2djvu#144]; add BuildRequires: + libtool, needed to rebuild configure script after applying + patch. + ------------------------------------------------------------------- Mon Aug 17 19:58:38 UTC 2020 - Dirk Mueller diff --git a/pdf2djvu.spec b/pdf2djvu.spec index fa23093..bd1cd75 100644 --- a/pdf2djvu.spec +++ b/pdf2djvu.spec @@ -1,7 +1,7 @@ # # spec file for package pdf2djvu # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -26,6 +26,8 @@ URL: https://jwilk.net/software/pdf2djvu Source0: https://github.com/jwilk/%{name}/releases/download/%{version}/%{name}-%{version}.tar.xz Source1: https://github.com/jwilk/%{name}/releases/download/%{version}/%{name}-%{version}.tar.xz.asc Source2: %{name}.keyring +# PATCH-FIX-UPSTREAM pdf2djvu-fix-poppler-check.patch gh#jwilk/pdf2djvu#144 badshah400@gmail.com -- Check for poppler instead of poppler-splash, the latter of which is no longer installed by poppler >= 20.12 +Patch0: pdf2djvu-fix-poppler-check.patch BuildRequires: djvulibre BuildRequires: gcc-c++ BuildRequires: pkgconfig @@ -34,6 +36,9 @@ BuildRequires: pkgconfig(ddjvuapi) >= 3.5.25 BuildRequires: pkgconfig(exiv2) BuildRequires: pkgconfig(poppler) >= 0.35 BuildRequires: pkgconfig(uuid) +# SECTION For Patch1 +BuildRequires: libtool +# /SECTION Requires: djvulibre %description @@ -47,6 +52,8 @@ metadata (including XMP metadata). %autosetup -p1 %build +# Rebuild configure script after Patch1 +autoreconf -fvi %configure %make_build