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
This commit is contained in:
Kyrill Detinov 2021-01-08 10:08:52 +00:00 committed by Git OBS Bridge
parent 233ab51aa1
commit f66cf99f61
3 changed files with 32 additions and 1 deletions

View File

@ -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()
{

View File

@ -1,3 +1,12 @@
-------------------------------------------------------------------
Fri Jan 8 00:11:56 UTC 2021 - Atri Bhattacharya <badshah400@gmail.com>
- 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 <dmueller@suse.com> Mon Aug 17 19:58:38 UTC 2020 - Dirk Mueller <dmueller@suse.com>

View File

@ -1,7 +1,7 @@
# #
# spec file for package pdf2djvu # 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 # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # 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 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 Source1: https://github.com/jwilk/%{name}/releases/download/%{version}/%{name}-%{version}.tar.xz.asc
Source2: %{name}.keyring 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: djvulibre
BuildRequires: gcc-c++ BuildRequires: gcc-c++
BuildRequires: pkgconfig BuildRequires: pkgconfig
@ -34,6 +36,9 @@ BuildRequires: pkgconfig(ddjvuapi) >= 3.5.25
BuildRequires: pkgconfig(exiv2) BuildRequires: pkgconfig(exiv2)
BuildRequires: pkgconfig(poppler) >= 0.35 BuildRequires: pkgconfig(poppler) >= 0.35
BuildRequires: pkgconfig(uuid) BuildRequires: pkgconfig(uuid)
# SECTION For Patch1
BuildRequires: libtool
# /SECTION
Requires: djvulibre Requires: djvulibre
%description %description
@ -47,6 +52,8 @@ metadata (including XMP metadata).
%autosetup -p1 %autosetup -p1
%build %build
# Rebuild configure script after Patch1
autoreconf -fvi
%configure %configure
%make_build %make_build