Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package poppler.15833 for
openSUSE:Leap:15.2:Update checked in at 2021-02-25 16:05:47
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Leap:15.2:Update/poppler.15833 (Old)
and /work/SRC/openSUSE:Leap:15.2:Update/.poppler.15833.new.2378 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "poppler.15833"
Thu Feb 25 16:05:47 2021 rev:1 rq:874322 version:0.79.0
Changes:
--------
New Changes file:
--- /dev/null 2021-02-22 01:36:22.145178436 +0100
+++
/work/SRC/openSUSE:Leap:15.2:Update/.poppler.15833.new.2378/poppler-qt5.changes
2021-02-25 16:05:48.441435190 +0100
@@ -0,0 +1,3528 @@
+-------------------------------------------------------------------
+Fri Aug 2 21:19:20 UTC 2019 - Bj??rn Lie <[email protected]>
+
+- Update to version 0.79.0:
+ + core:
+ - Fix regression on TextSelectionPainter.
+ - Fix parsing of DefaultAppearance.
+ - Fix memory leak in PostScriptFunction.
+ - Fix crashes in fuzzed files.
+ + qt5:
+ - Implemented support for setIcon by changing appearance.
+ - Added option to set the form available to print.
+ - QString::null is deprecated, use QString().
+ - Replace deprecated qStableSort with std::stable_sort.
+ + build system: Turn README into README.md and expand it.
+
+-------------------------------------------------------------------
+Fri Jun 28 22:40:20 UTC 2019 - Bj??rn Lie <[email protected]>
+
+- Update to version 0.78.0:
+ + core:
+ - Fix line annotation arrows for usage in dimensioning.
+ - Handle Ink annots without an InkList but with an AP.
+ - Fix typos preventing parsing of Movie start and duration.
+ - Fix crash on malformed files.
+ + glib:
+ - Add poppler_document_create_dests_tree().
+ - Don't use the deprecated g_type_class_add_private().
+ - Document the differences between render() and
+ render_for_printing().
+ - Fix introspection for poppler_document_new_from_data.
+ - Don't create PopplerInputStream with length 0.
+ - Document G_IO_ERROR as a possible error condition.
+ - Docs: Add index for API new in 0.78.
+ + build system:
+ - Fixes cross compilation of gir in Void Linux.
+ - Add -Wshadow to the default warning flags.
+ - Install pkg-config pc files if pkg-config is found.
+- Bump poppler_sover following upstream changes.
+
+-------------------------------------------------------------------
+Sat May 25 00:04:21 UTC 2019 - Bj??rn Lie <[email protected]>
+
+- Update to version 0.77.0:
+ + core:
+ - Fix crash on signature handling. Issue #766
+ - Fix small memory leak in SignatureHandler::getCertificateInfo
+ - Splash: Restrict filling of overlapping boxes. Issue #750
+ - Fix crash on malformed files
+ + qt5: Fix optional content handling with exclusive layers
+ + cpp: Make render_page thread-safe
+ + utils:
+ - pdfsig: Fix small memory leak
+ - pdftotext: Fix typo in manpage
+- Changes from version 0.76.1:
+ + core:
+ - Make the mul tables be calculated at compile time with constexpr.
+ - splash: Fix compile with SPLASH_CMYK enabled
+ - Some typo fixing in error messages
+ + qt5: Fix regression in annotation handling
+ + build system: Fix some typos in build system output and comments
+- Changes from version 0.76.0:
+ + core:
+ - Fix regression on case-insensitive search. Issue #743
+ - Remove GooList, use std::vector instead
+ - Fix radiobutton reporting wrong state. Issue #159
+ - Handle UTF16-LE strings
+ - Don't error out if there's no DA in FreeText annotation
+ - cairo:
+ . Compute correct coverage values for box filter.
+ . Constrain number of cycles in rescale filter.
+ - Read more fields from ViewerPreferences
+ . Introduce and use Ref::INVALID
+ . Fix crashes in broken files
+ . Fix mismatched free/delete
+ . Add missing include guards
+ + utils: pdftohtml: Properly initialize HtmlOutputDev::page to
+ avoid SIGSEGV upon error exit.
+- Changes from version 0.75.0:
+ + core:
+ - Fix rendering of some annotations
+ - Fix crashes in broken files
+ - Small internal code improvements
+ + cpp:
+ - Improve documentation
+ - tests: Add showing version information to poppler-dump
++ utils:
+ - pdfattach: new util
+ - pdftohtml: add -dataurls parameter
+ - pdftoppm: add -sep and -forcenum parameters
+ - pdftohtml: make singleHtml and stout not mutually exclusive
+ - pdfsig: fix use after free
+- Bump poppler_sover following upstream changes.
+
+-------------------------------------------------------------------
+Sun Feb 10 09:46:32 UTC 2019 - [email protected]
+
+- Update to version 0.74.0:
+ + core:
+ - Remove support for obsolete systems.
+ - Include timezone in timeToDateString().
+ - Fix/silence some warnings.
+ - Fix issues with broken files.
+ + build system:
+ - Fix linking in FreeBSD.
+ - Fix fseeko configure check on Android for API level < 24.
+ - Remove unused MacroPushRequiredVars.cmake.
+ + qt5:
+ - Add API that lazily builds an outline by wrapping the
+ internal objects.
+ - Demo: Use new API to build Table Of Contents lazily.
+ + glib:
+ - Improve documentation.
+ - Fix cast from 'GTime *' (aka 'int *') to 'time_t *'
+ (aka 'long *').
+ + utils: pdfsig: add -nssdir option.
+ + cpp: Add a way to get all the named destinations in a document.
+- Bump poppler_sover following upstream changes.
+
+-------------------------------------------------------------------
+Mon Jan 14 10:22:18 UTC 2019 - [email protected]
+
+- Update to version 0.73.0:
+ + core:
+ - Fix regression reading some encrypted files.
+ - Add X509CertificateInfo classes.
+ - Add new 'IgnoreDiacritics' option to ::findText().
+ - Open files with CLOEXEC flag set.
+ - Remove Gulong, Guint, Gushort, Guchar typedefs.
+ - Fix handling of some broken files.
+ + qt5:
+ - Expose X509CertificateInfo.
+ - Add the possibility of getting version.
+ - Add new 'IgnoreDiacritics' search flag.
+ - Make initialization of globalParams threadsafe.
+ - ArthurOutputDev: Remove all Splash code usage.
+ + cpp:
+ - Make initialization of globalParams threadsafe.
+ - Fix page::text_list encoding issue.
+ - Improve handling of UTF-16 by considering Endianess.
+ - Add API to specify a custom data directory.
+ + glib:
+ - add new 'POPPLER_FIND_IGNORE_DIACRITICS' find flag.
+ - Fix named destinations.
+ - Make PrintScaling preference available in API.
+ + build system:
+ - Rename ENABLE_XPDF_HEADERS to
+ ENABLE_UNSTABLE_API_ABI_HEADERS.
+ - support enabling NSS on mingw.
+ - Windows: only set SOVERSION for shared libs.
+- Bump poppler_sover following upstream changes.
+- Pass ENABLE_UNSTABLE_API_ABI_HEADERS=on to cmake, replacing
+ ENABLE_XPDF_HEADERS=on we had before.
+
+-------------------------------------------------------------------
+Wed Dec 12 12:14:07 UTC 2018 - [email protected]
+
+- Update to version 0.72.0:
+ + core:
+ - Fix checkbox lacking AP not being able to change state.
+ - Draw line annotation endings (arrow, circle, ...).
+ - cairo: Don't use UNIQUE_ID for PS output, to avoid using PS
+ memory on cairo >= 1.5.10.
+ - Be more stubborn looking for a nssdb.
+ - GooString::fromInt: Repair the return value.
+ - Minor performance improvements.
+ - Avoid cycles in PDF parsing.
+ - Stream::makeFilter: Fix memory leak.
+ - Fix various issues with malformed files.
+ - Rename GooString::getCString to GooString::c_str.
+ - Regenerate UnicodeDecompTables.h from python 3.7.1.
+ + utils:
+ - pdfdetach: Check for valid embedded file before trying to
+ save it.
+ - pdfdetach: Check for valid file name of embedded file before
+ using it to determine save path.
+ - Fix typos in utils.
+ + glib:
+ - Fix missing PopplerAttachment destructor call.
+ - Support getting form widget additional actions.
+ - docs: Small improvements.
+ + qt5: Internally compile with -DQT_NO_SIGNALS_SLOTS_KEYWORDS.
+- Bump poppler_sover following upstream changes.
+
+-------------------------------------------------------------------
+Fri Nov 2 19:39:16 UTC 2018 - [email protected]
+
+- Update to version 0.71.0:
+ + core:
+ - Replace the implementation of GooString by std::string but
+ keep the exact interface intact.
+ - Replace GBool, gTrue, and gFalse by bool, true, false, resp.
+ - Splash: Fix crash if document is malformed (too wide).
+ + qt5:
+ - Fix crash when adding Highlight Annotations.
+ - Default to hidden symbols.
+ - Fix two leaks in a test.
++++ 3331 more lines (skipped)
++++ between /dev/null
++++ and
/work/SRC/openSUSE:Leap:15.2:Update/.poppler.15833.new.2378/poppler-qt5.changes
New Changes file:
--- /dev/null 2021-02-22 01:36:22.145178436 +0100
+++ /work/SRC/openSUSE:Leap:15.2:Update/.poppler.15833.new.2378/poppler.changes
2021-02-25 16:05:48.485435235 +0100
@@ -0,0 +1,3536 @@
+-------------------------------------------------------------------
+Mon Feb 8 02:52:09 UTC 2021 - Alynx Zhou <[email protected]>
+
+- Add 0001-Fix-opening-files-by-some-generators-that-are-a-bit-.patch:
+ Some PDF generators generate PDF with some wrong numbers in entry
+ table, but the content is still valid, this patch ignores those
+ problems. (bsc#1181551)
+
+-------------------------------------------------------------------
+Fri Aug 2 21:19:20 UTC 2019 - Bj??rn Lie <[email protected]>
+
+- Update to version 0.79.0:
+ + core:
+ - Fix regression on TextSelectionPainter.
+ - Fix parsing of DefaultAppearance.
+ - Fix memory leak in PostScriptFunction.
+ - Fix crashes in fuzzed files.
+ + qt5:
+ - Implemented support for setIcon by changing appearance.
+ - Added option to set the form available to print.
+ - QString::null is deprecated, use QString().
+ - Replace deprecated qStableSort with std::stable_sort.
+ + build system: Turn README into README.md and expand it.
+
+-------------------------------------------------------------------
+Fri Jun 28 22:40:20 UTC 2019 - Bj??rn Lie <[email protected]>
+
+- Update to version 0.78.0:
+ + core:
+ - Fix line annotation arrows for usage in dimensioning.
+ - Handle Ink annots without an InkList but with an AP.
+ - Fix typos preventing parsing of Movie start and duration.
+ - Fix crash on malformed files.
+ + glib:
+ - Add poppler_document_create_dests_tree().
+ - Don't use the deprecated g_type_class_add_private().
+ - Document the differences between render() and
+ render_for_printing().
+ - Fix introspection for poppler_document_new_from_data.
+ - Don't create PopplerInputStream with length 0.
+ - Document G_IO_ERROR as a possible error condition.
+ - Docs: Add index for API new in 0.78.
+ + build system:
+ - Fixes cross compilation of gir in Void Linux.
+ - Add -Wshadow to the default warning flags.
+ - Install pkg-config pc files if pkg-config is found.
+- Bump poppler_sover following upstream changes.
+
+-------------------------------------------------------------------
+Sat May 25 00:04:21 UTC 2019 - Bj??rn Lie <[email protected]>
+
+- Update to version 0.77.0:
+ + core:
+ - Fix crash on signature handling. Issue #766
+ - Fix small memory leak in SignatureHandler::getCertificateInfo
+ - Splash: Restrict filling of overlapping boxes. Issue #750
+ - Fix crash on malformed files
+ + qt5: Fix optional content handling with exclusive layers
+ + cpp: Make render_page thread-safe
+ + utils:
+ - pdfsig: Fix small memory leak
+ - pdftotext: Fix typo in manpage
+- Changes from version 0.76.1:
+ + core:
+ - Make the mul tables be calculated at compile time with constexpr.
+ - splash: Fix compile with SPLASH_CMYK enabled
+ - Some typo fixing in error messages
+ + qt5: Fix regression in annotation handling
+ + build system: Fix some typos in build system output and comments
+- Changes from version 0.76.0:
+ + core:
+ - Fix regression on case-insensitive search. Issue #743
+ - Remove GooList, use std::vector instead
+ - Fix radiobutton reporting wrong state. Issue #159
+ - Handle UTF16-LE strings
+ - Don't error out if there's no DA in FreeText annotation
+ - cairo:
+ . Compute correct coverage values for box filter.
+ . Constrain number of cycles in rescale filter.
+ - Read more fields from ViewerPreferences
+ . Introduce and use Ref::INVALID
+ . Fix crashes in broken files
+ . Fix mismatched free/delete
+ . Add missing include guards
+ + utils: pdftohtml: Properly initialize HtmlOutputDev::page to
+ avoid SIGSEGV upon error exit.
+- Changes from version 0.75.0:
+ + core:
+ - Fix rendering of some annotations
+ - Fix crashes in broken files
+ - Small internal code improvements
+ + cpp:
+ - Improve documentation
+ - tests: Add showing version information to poppler-dump
++ utils:
+ - pdfattach: new util
+ - pdftohtml: add -dataurls parameter
+ - pdftoppm: add -sep and -forcenum parameters
+ - pdftohtml: make singleHtml and stout not mutually exclusive
+ - pdfsig: fix use after free
+- Bump poppler_sover following upstream changes.
+
+-------------------------------------------------------------------
+Sun Feb 10 09:46:32 UTC 2019 - [email protected]
+
+- Update to version 0.74.0:
+ + core:
+ - Remove support for obsolete systems.
+ - Include timezone in timeToDateString().
+ - Fix/silence some warnings.
+ - Fix issues with broken files.
+ + build system:
+ - Fix linking in FreeBSD.
+ - Fix fseeko configure check on Android for API level < 24.
+ - Remove unused MacroPushRequiredVars.cmake.
+ + qt5:
+ - Add API that lazily builds an outline by wrapping the
+ internal objects.
+ - Demo: Use new API to build Table Of Contents lazily.
+ + glib:
+ - Improve documentation.
+ - Fix cast from 'GTime *' (aka 'int *') to 'time_t *'
+ (aka 'long *').
+ + utils: pdfsig: add -nssdir option.
+ + cpp: Add a way to get all the named destinations in a document.
+- Bump poppler_sover following upstream changes.
+
+-------------------------------------------------------------------
+Mon Jan 14 10:22:18 UTC 2019 - [email protected]
+
+- Update to version 0.73.0:
+ + core:
+ - Fix regression reading some encrypted files.
+ - Add X509CertificateInfo classes.
+ - Add new 'IgnoreDiacritics' option to ::findText().
+ - Open files with CLOEXEC flag set.
+ - Remove Gulong, Guint, Gushort, Guchar typedefs.
+ - Fix handling of some broken files.
+ + qt5:
+ - Expose X509CertificateInfo.
+ - Add the possibility of getting version.
+ - Add new 'IgnoreDiacritics' search flag.
+ - Make initialization of globalParams threadsafe.
+ - ArthurOutputDev: Remove all Splash code usage.
+ + cpp:
+ - Make initialization of globalParams threadsafe.
+ - Fix page::text_list encoding issue.
+ - Improve handling of UTF-16 by considering Endianess.
+ - Add API to specify a custom data directory.
+ + glib:
+ - add new 'POPPLER_FIND_IGNORE_DIACRITICS' find flag.
+ - Fix named destinations.
+ - Make PrintScaling preference available in API.
+ + build system:
+ - Rename ENABLE_XPDF_HEADERS to
+ ENABLE_UNSTABLE_API_ABI_HEADERS.
+ - support enabling NSS on mingw.
+ - Windows: only set SOVERSION for shared libs.
+- Bump poppler_sover following upstream changes.
+- Pass ENABLE_UNSTABLE_API_ABI_HEADERS=on to cmake, replacing
+ ENABLE_XPDF_HEADERS=on we had before.
+
+-------------------------------------------------------------------
+Wed Dec 12 12:14:07 UTC 2018 - [email protected]
+
+- Update to version 0.72.0:
+ + core:
+ - Fix checkbox lacking AP not being able to change state.
+ - Draw line annotation endings (arrow, circle, ...).
+ - cairo: Don't use UNIQUE_ID for PS output, to avoid using PS
+ memory on cairo >= 1.5.10.
+ - Be more stubborn looking for a nssdb.
+ - GooString::fromInt: Repair the return value.
+ - Minor performance improvements.
+ - Avoid cycles in PDF parsing.
+ - Stream::makeFilter: Fix memory leak.
+ - Fix various issues with malformed files.
+ - Rename GooString::getCString to GooString::c_str.
+ - Regenerate UnicodeDecompTables.h from python 3.7.1.
+ + utils:
+ - pdfdetach: Check for valid embedded file before trying to
+ save it.
+ - pdfdetach: Check for valid file name of embedded file before
+ using it to determine save path.
+ - Fix typos in utils.
+ + glib:
+ - Fix missing PopplerAttachment destructor call.
+ - Support getting form widget additional actions.
+ - docs: Small improvements.
+ + qt5: Internally compile with -DQT_NO_SIGNALS_SLOTS_KEYWORDS.
+- Bump poppler_sover following upstream changes.
+
+-------------------------------------------------------------------
+Fri Nov 2 19:39:16 UTC 2018 - [email protected]
+
+- Update to version 0.71.0:
+ + core:
++++ 3339 more lines (skipped)
++++ between /dev/null
++++ and
/work/SRC/openSUSE:Leap:15.2:Update/.poppler.15833.new.2378/poppler.changes
New:
----
0001-Fix-opening-files-by-some-generators-that-are-a-bit-.patch
baselibs.conf
poppler-0.79.0.tar.xz
poppler-qt5.changes
poppler-qt5.spec
poppler.changes
poppler.spec
pre_checkin.sh
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ poppler-qt5.spec ++++++
#
# spec file for package poppler-qt5
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define build_qt5 1
Name: poppler-qt5
%define _name poppler
Version: 0.79.0
Release: 0
# Actual version of poppler-data:
%define poppler_data_version 0.4.9
%define poppler_sover 89
%define poppler_cpp_sover 0
%define poppler_glib_sover 8
%define poppler_qt5_sover 1
%define poppler_api 0.18
%define poppler_apipkg 0_18
Summary: PDF Rendering Library
License: GPL-2.0-only OR GPL-3.0-only
Group: Development/Libraries/C and C++
Url: https://poppler.freedesktop.org/
Source: http://poppler.freedesktop.org/%{_name}-%{version}.tar.xz
Source99: baselibs.conf
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: glib2-devel
BuildRequires: gobject-introspection-devel
BuildRequires: gtk-doc
BuildRequires: libjpeg-devel
BuildRequires: libtiff-devel
BuildRequires: openjpeg2
%if %build_qt5
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5Gui)
BuildRequires: pkgconfig(Qt5Test)
BuildRequires: pkgconfig(Qt5Widgets)
BuildRequires: pkgconfig(Qt5Xml)
%endif
BuildRequires: update-desktop-files
BuildRequires: zlib-devel
BuildRequires: pkgconfig(cairo) >= 1.10.0
BuildRequires: pkgconfig(cairo-ft) >= 1.10.0
BuildRequires: pkgconfig(cairo-pdf)
BuildRequires: pkgconfig(cairo-ps)
BuildRequires: pkgconfig(cairo-svg)
BuildRequires: pkgconfig(fontconfig)
BuildRequires: pkgconfig(freetype2)
BuildRequires: pkgconfig(gobject-2.0) >= 2.41
BuildRequires: pkgconfig(lcms2)
BuildRequires: pkgconfig(libcurl)
BuildRequires: pkgconfig(libopenjp2)
BuildRequires: pkgconfig(libpng)
BuildRequires: pkgconfig(nss)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Poppler is a PDF rendering library, forked from the xpdf PDF viewer
developed by Derek Noonburg of Glyph and Cog, LLC.
%package -n libpoppler%{poppler_sover}
Summary: PDF Rendering Library
Group: System/Libraries
Recommends: poppler-data >= %{poppler_data_version}
%description -n libpoppler%{poppler_sover}
Poppler is a PDF rendering library, forked from the xpdf PDF viewer
developed by Derek Noonburg of Glyph and Cog, LLC.
%package -n libpoppler-cpp%{poppler_cpp_sover}
Summary: C++ API of the Poppler PDF rendering library
Group: System/Libraries
%description -n libpoppler-cpp%{poppler_cpp_sover}
Poppler is a PDF rendering library, forked from the xpdf PDF viewer
developed by Derek Noonburg of Glyph and Cog, LLC.
%package -n libpoppler-glib%{poppler_glib_sover}
Summary: Glib wrapper for the poppler PDF rendering library
Group: System/Libraries
Requires: libpoppler%{poppler_sover} >= %{version}
%description -n libpoppler-glib%{poppler_glib_sover}
Poppler is a PDF rendering library, forked from the xpdf PDF viewer
developed by Derek Noonburg of Glyph and Cog, LLC.
%package -n typelib-1_0-Poppler-%{poppler_apipkg}
Summary: Introspection bindings for the Poppler PDF rendering library
Group: System/Libraries
%description -n typelib-1_0-Poppler-%{poppler_apipkg}
Poppler is a PDF rendering library, forked from the xpdf PDF viewer
developed by Derek Noonburg of Glyph and Cog, LLC.
This package provides the GObject Introspection bindings for Poppler.
%package -n libpoppler-qt5-%{poppler_qt5_sover}
Summary: Qt5 wrapper for the Poppler PDF rendering library
Group: System/Libraries
Requires: libpoppler%{poppler_sover} >= %{version}
%description -n libpoppler-qt5-%{poppler_qt5_sover}
Poppler is a PDF rendering library, forked from the xpdf PDF viewer
developed by Derek Noonburg of Glyph and Cog, LLC.
%package tools
Summary: PDF Rendering Library Tools
Group: Productivity/Publishing/PDF
Requires: libpoppler%{poppler_sover} >= %{version}
%description tools
Poppler is a PDF rendering library, forked from the xpdf PDF viewer
developed by Derek Noonburg of Glyph and Cog, LLC.
%package -n libpoppler-devel
Summary: Development files for the Poppler PDF rendering library
Group: Development/Libraries/C and C++
Requires: libpoppler%{poppler_sover} = %{version}
Requires: libpoppler-cpp%{poppler_cpp_sover} = %{version}
Requires: libstdc++-devel
%description -n libpoppler-devel
Poppler is a PDF rendering library, forked from the xpdf PDF viewer
developed by Derek Noonburg of Glyph and Cog, LLC.
%package -n libpoppler-glib-devel
Summary: Development files for the Poppler Glib wrapper library
Group: Development/Libraries/C and C++
Requires: libpoppler-glib%{poppler_glib_sover} = %{version}
Requires: typelib-1_0-Poppler-%{poppler_apipkg} = %{version}
%description -n libpoppler-glib-devel
Poppler is a PDF rendering library, forked from the xpdf PDF viewer
developed by Derek Noonburg of Glyph and Cog, LLC.
%package -n libpoppler-qt5-devel
Summary: Development files for the Poppler Qt5 wrapper library
Group: Development/Libraries/C and C++
Requires: libpoppler-devel = %{version}
Requires: libpoppler-qt5-%{poppler_qt5_sover} = %{version}
Requires: pkgconfig(Qt5Core)
Requires: pkgconfig(Qt5Gui)
Requires: pkgconfig(Qt5Widgets)
Requires: pkgconfig(Qt5Xml)
%description -n libpoppler-qt5-devel
Poppler is a PDF rendering library, forked from the xpdf PDF viewer
developed by Derek Noonburg of Glyph and Cog, LLC.
%prep
%setup -q -n poppler-%{version}
%build
%if %build_qt5
export MOCQT5='%{_libqt5_bindir}/moc'
export MOCQT52='%{_libqt5_bindir}/moc'
%endif
# make introspection scanner (g-ir-scanner) work with older build envs
export LD_LIBRARY_PATH=$(pwd)/build
# This causes the build to fail
#DENABLE_GTK_DOC=ON \
%cmake\
-DENABLE_UNSTABLE_API_ABI_HEADERS=ON \
-DENABLE_ZLIB=ON \
-DENABLE_LIBCURL=ON \
-DBUILD_GTK_TESTS=OFF \
%if %build_qt5
-DENABLE_QT5=ON \
-DENABLE_GLIB=OFF \
-DENABLE_CPP=OFF \
%endif
%{nil}
%make_jobs
%install
%cmake_install
%if %build_qt5
cd %{buildroot} && find . -type f -o -type l | grep -v qt | xargs rm -v
%endif
echo > %SOURCE99
%if %build_qt5
echo "libpoppler-qt5-%{poppler_qt5_sover}" >> %SOURCE99
%else
echo "libpoppler%{poppler_sover}" >> %SOURCE99
echo "libpoppler-glib%{poppler_glib_sover}" >> %SOURCE99
echo "libpoppler-cpp%{poppler_cpp_sover}" >> %SOURCE99
%endif
%post -n libpoppler%{poppler_sover} -p /sbin/ldconfig
%post -n libpoppler-glib%{poppler_glib_sover} -p /sbin/ldconfig
%post -n libpoppler-qt5-%{poppler_qt5_sover} -p /sbin/ldconfig
%postun -n libpoppler%{poppler_sover} -p /sbin/ldconfig
%postun -n libpoppler-glib%{poppler_glib_sover} -p /sbin/ldconfig
%post -n libpoppler-cpp%{poppler_cpp_sover} -p /sbin/ldconfig
%postun -n libpoppler-cpp%{poppler_cpp_sover} -p /sbin/ldconfig
%postun -n libpoppler-qt5-%{poppler_qt5_sover} -p /sbin/ldconfig
%if %build_qt5
%files -n libpoppler-qt5-%{poppler_qt5_sover}
%defattr (-, root, root)
%{_libdir}/libpoppler-qt5.so.%{poppler_qt5_sover}*
%files -n libpoppler-qt5-devel
%defattr (-, root, root)
%dir %{_includedir}/poppler
%{_includedir}/poppler/qt5
%{_libdir}/libpoppler-qt5.so
%{_libdir}/pkgconfig/poppler-qt5.pc
%else
%files -n libpoppler%{poppler_sover}
%defattr (-, root, root)
%license COPYING COPYING3
%doc AUTHORS ChangeLog NEWS README.md README-XPDF README.contributors
%{_libdir}/libpoppler.so.%{poppler_sover}*
%files -n libpoppler-glib%{poppler_glib_sover}
%defattr (-, root, root)
%{_libdir}/libpoppler-glib.so.%{poppler_glib_sover}*
%files -n typelib-1_0-Poppler-%{poppler_apipkg}
%defattr (-, root, root)
%{_libdir}/girepository-1.0/Poppler-%{poppler_api}.typelib
%files tools
%defattr (-, root, root)
%license COPYING COPYING3
%{_bindir}/*
%doc %{_mandir}/man1/*.*
%files -n libpoppler-cpp%{poppler_cpp_sover}
%defattr(-, root, root)
%{_libdir}/libpoppler-cpp.so.%{poppler_cpp_sover}*
%files -n libpoppler-devel
%defattr (-, root, root)
%{_includedir}/poppler
%exclude %{_includedir}/poppler/glib
%{_libdir}/libpoppler.so
%{_libdir}/libpoppler-cpp.so
%{_libdir}/pkgconfig/poppler.pc
%{_libdir}/pkgconfig/poppler-cairo.pc
%{_libdir}/pkgconfig/poppler-cpp.pc
%{_libdir}/pkgconfig/poppler-splash.pc
%files -n libpoppler-glib-devel
%defattr (-, root, root)
%{_includedir}/poppler/glib
%{_libdir}/libpoppler-glib.so
%{_libdir}/pkgconfig/poppler-glib.pc
%{_datadir}/gir-1.0/Poppler-%{poppler_api}.gir
# Own these directories to not depend on gtk-doc while building:
#dir %%{_datadir}/gtk-doc/html
#dir %%{_datadir}/gtk-doc/html/poppler
#doc %%{_datadir}/gtk-doc/html/poppler
%endif
%changelog
++++++ poppler.spec ++++++
#
# spec file for package poppler
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define build_qt5 0
Name: poppler
%define _name poppler
Version: 0.79.0
Release: 0
# Actual version of poppler-data:
%define poppler_data_version 0.4.9
%define poppler_sover 89
%define poppler_cpp_sover 0
%define poppler_glib_sover 8
%define poppler_qt5_sover 1
%define poppler_api 0.18
%define poppler_apipkg 0_18
Summary: PDF Rendering Library
License: GPL-2.0-only OR GPL-3.0-only
Group: Development/Libraries/C and C++
Url: https://poppler.freedesktop.org/
Source: http://poppler.freedesktop.org/%{_name}-%{version}.tar.xz
Source99: baselibs.conf
# PATCH-FIX-UPSTREAM
0001-Fix-opening-files-by-some-generators-that-are-a-bit-.patch bsc#1181551
[email protected] -- Fix opening some PDF by broken generators
Patch1: 0001-Fix-opening-files-by-some-generators-that-are-a-bit-.patch
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: glib2-devel
BuildRequires: gobject-introspection-devel
BuildRequires: gtk-doc
BuildRequires: libjpeg-devel
BuildRequires: libtiff-devel
BuildRequires: openjpeg2
%if %build_qt5
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5Gui)
BuildRequires: pkgconfig(Qt5Test)
BuildRequires: pkgconfig(Qt5Widgets)
BuildRequires: pkgconfig(Qt5Xml)
%endif
BuildRequires: update-desktop-files
BuildRequires: zlib-devel
BuildRequires: pkgconfig(cairo) >= 1.10.0
BuildRequires: pkgconfig(cairo-ft) >= 1.10.0
BuildRequires: pkgconfig(cairo-pdf)
BuildRequires: pkgconfig(cairo-ps)
BuildRequires: pkgconfig(cairo-svg)
BuildRequires: pkgconfig(fontconfig)
BuildRequires: pkgconfig(freetype2)
BuildRequires: pkgconfig(gobject-2.0) >= 2.41
BuildRequires: pkgconfig(lcms2)
BuildRequires: pkgconfig(libcurl)
BuildRequires: pkgconfig(libopenjp2)
BuildRequires: pkgconfig(libpng)
BuildRequires: pkgconfig(nss)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Poppler is a PDF rendering library, forked from the xpdf PDF viewer
developed by Derek Noonburg of Glyph and Cog, LLC.
%package -n libpoppler%{poppler_sover}
Summary: PDF Rendering Library
Group: System/Libraries
Recommends: poppler-data >= %{poppler_data_version}
%description -n libpoppler%{poppler_sover}
Poppler is a PDF rendering library, forked from the xpdf PDF viewer
developed by Derek Noonburg of Glyph and Cog, LLC.
%package -n libpoppler-cpp%{poppler_cpp_sover}
Summary: C++ API of the Poppler PDF rendering library
Group: System/Libraries
%description -n libpoppler-cpp%{poppler_cpp_sover}
Poppler is a PDF rendering library, forked from the xpdf PDF viewer
developed by Derek Noonburg of Glyph and Cog, LLC.
%package -n libpoppler-glib%{poppler_glib_sover}
Summary: Glib wrapper for the poppler PDF rendering library
Group: System/Libraries
Requires: libpoppler%{poppler_sover} >= %{version}
%description -n libpoppler-glib%{poppler_glib_sover}
Poppler is a PDF rendering library, forked from the xpdf PDF viewer
developed by Derek Noonburg of Glyph and Cog, LLC.
%package -n typelib-1_0-Poppler-%{poppler_apipkg}
Summary: Introspection bindings for the Poppler PDF rendering library
Group: System/Libraries
%description -n typelib-1_0-Poppler-%{poppler_apipkg}
Poppler is a PDF rendering library, forked from the xpdf PDF viewer
developed by Derek Noonburg of Glyph and Cog, LLC.
This package provides the GObject Introspection bindings for Poppler.
%package -n libpoppler-qt5-%{poppler_qt5_sover}
Summary: Qt5 wrapper for the Poppler PDF rendering library
Group: System/Libraries
Requires: libpoppler%{poppler_sover} >= %{version}
%description -n libpoppler-qt5-%{poppler_qt5_sover}
Poppler is a PDF rendering library, forked from the xpdf PDF viewer
developed by Derek Noonburg of Glyph and Cog, LLC.
%package tools
Summary: PDF Rendering Library Tools
Group: Productivity/Publishing/PDF
Requires: libpoppler%{poppler_sover} >= %{version}
%description tools
Poppler is a PDF rendering library, forked from the xpdf PDF viewer
developed by Derek Noonburg of Glyph and Cog, LLC.
%package -n libpoppler-devel
Summary: Development files for the Poppler PDF rendering library
Group: Development/Libraries/C and C++
Requires: libpoppler%{poppler_sover} = %{version}
Requires: libpoppler-cpp%{poppler_cpp_sover} = %{version}
Requires: libstdc++-devel
%description -n libpoppler-devel
Poppler is a PDF rendering library, forked from the xpdf PDF viewer
developed by Derek Noonburg of Glyph and Cog, LLC.
%package -n libpoppler-glib-devel
Summary: Development files for the Poppler Glib wrapper library
Group: Development/Libraries/C and C++
Requires: libpoppler-glib%{poppler_glib_sover} = %{version}
Requires: typelib-1_0-Poppler-%{poppler_apipkg} = %{version}
%description -n libpoppler-glib-devel
Poppler is a PDF rendering library, forked from the xpdf PDF viewer
developed by Derek Noonburg of Glyph and Cog, LLC.
%package -n libpoppler-qt5-devel
Summary: Development files for the Poppler Qt5 wrapper library
Group: Development/Libraries/C and C++
Requires: libpoppler-devel = %{version}
Requires: libpoppler-qt5-%{poppler_qt5_sover} = %{version}
Requires: pkgconfig(Qt5Core)
Requires: pkgconfig(Qt5Gui)
Requires: pkgconfig(Qt5Widgets)
Requires: pkgconfig(Qt5Xml)
%description -n libpoppler-qt5-devel
Poppler is a PDF rendering library, forked from the xpdf PDF viewer
developed by Derek Noonburg of Glyph and Cog, LLC.
%prep
%setup -q -n poppler-%{version}
%patch1 -p1
%build
%if %build_qt5
export MOCQT5='%{_libqt5_bindir}/moc'
export MOCQT52='%{_libqt5_bindir}/moc'
%endif
# make introspection scanner (g-ir-scanner) work with older build envs
export LD_LIBRARY_PATH=$(pwd)/build
# This causes the build to fail
#DENABLE_GTK_DOC=ON \
%cmake\
-DENABLE_UNSTABLE_API_ABI_HEADERS=ON \
-DENABLE_ZLIB=ON \
-DENABLE_LIBCURL=ON \
-DBUILD_GTK_TESTS=OFF \
%if %build_qt5
-DENABLE_QT5=ON \
-DENABLE_GLIB=OFF \
-DENABLE_CPP=OFF \
%endif
%{nil}
%make_jobs
%install
%cmake_install
%if %build_qt5
cd %{buildroot} && find . -type f -o -type l | grep -v qt | xargs rm -v
%endif
echo > %SOURCE99
%if %build_qt5
echo "libpoppler-qt5-%{poppler_qt5_sover}" >> %SOURCE99
%else
echo "libpoppler%{poppler_sover}" >> %SOURCE99
echo "libpoppler-glib%{poppler_glib_sover}" >> %SOURCE99
echo "libpoppler-cpp%{poppler_cpp_sover}" >> %SOURCE99
%endif
%post -n libpoppler%{poppler_sover} -p /sbin/ldconfig
%post -n libpoppler-glib%{poppler_glib_sover} -p /sbin/ldconfig
%post -n libpoppler-qt5-%{poppler_qt5_sover} -p /sbin/ldconfig
%postun -n libpoppler%{poppler_sover} -p /sbin/ldconfig
%postun -n libpoppler-glib%{poppler_glib_sover} -p /sbin/ldconfig
%post -n libpoppler-cpp%{poppler_cpp_sover} -p /sbin/ldconfig
%postun -n libpoppler-cpp%{poppler_cpp_sover} -p /sbin/ldconfig
%postun -n libpoppler-qt5-%{poppler_qt5_sover} -p /sbin/ldconfig
%if %build_qt5
%files -n libpoppler-qt5-%{poppler_qt5_sover}
%defattr (-, root, root)
%{_libdir}/libpoppler-qt5.so.%{poppler_qt5_sover}*
%files -n libpoppler-qt5-devel
%defattr (-, root, root)
%dir %{_includedir}/poppler
%{_includedir}/poppler/qt5
%{_libdir}/libpoppler-qt5.so
%{_libdir}/pkgconfig/poppler-qt5.pc
%else
%files -n libpoppler%{poppler_sover}
%defattr (-, root, root)
%license COPYING COPYING3
%doc AUTHORS ChangeLog NEWS README.md README-XPDF README.contributors
%{_libdir}/libpoppler.so.%{poppler_sover}*
%files -n libpoppler-glib%{poppler_glib_sover}
%defattr (-, root, root)
%{_libdir}/libpoppler-glib.so.%{poppler_glib_sover}*
%files -n typelib-1_0-Poppler-%{poppler_apipkg}
%defattr (-, root, root)
%{_libdir}/girepository-1.0/Poppler-%{poppler_api}.typelib
%files tools
%defattr (-, root, root)
%license COPYING COPYING3
%{_bindir}/*
%doc %{_mandir}/man1/*.*
%files -n libpoppler-cpp%{poppler_cpp_sover}
%defattr(-, root, root)
%{_libdir}/libpoppler-cpp.so.%{poppler_cpp_sover}*
%files -n libpoppler-devel
%defattr (-, root, root)
%{_includedir}/poppler
%exclude %{_includedir}/poppler/glib
%{_libdir}/libpoppler.so
%{_libdir}/libpoppler-cpp.so
%{_libdir}/pkgconfig/poppler.pc
%{_libdir}/pkgconfig/poppler-cairo.pc
%{_libdir}/pkgconfig/poppler-cpp.pc
%{_libdir}/pkgconfig/poppler-splash.pc
%files -n libpoppler-glib-devel
%defattr (-, root, root)
%{_includedir}/poppler/glib
%{_libdir}/libpoppler-glib.so
%{_libdir}/pkgconfig/poppler-glib.pc
%{_datadir}/gir-1.0/Poppler-%{poppler_api}.gir
# Own these directories to not depend on gtk-doc while building:
#dir %%{_datadir}/gtk-doc/html
#dir %%{_datadir}/gtk-doc/html/poppler
#doc %%{_datadir}/gtk-doc/html/poppler
%endif
%changelog
++++++ 0001-Fix-opening-files-by-some-generators-that-are-a-bit-.patch ++++++
diff --unified --recursive --text poppler-0.79.0.orig/poppler/XRef.cc
poppler-0.79.0.new/poppler/XRef.cc
--- poppler-0.79.0.orig/poppler/XRef.cc 2021-02-08 10:59:02.753940841 +0800
+++ poppler-0.79.0.new/poppler/XRef.cc 2021-02-08 11:02:35.713518176 +0800
@@ -44,6 +44,7 @@
#include <ctype.h>
#include <limits.h>
#include <float.h>
+#include <limits>
#include "goo/gfile.h"
#include "goo/gmem.h"
#include "Object.h"
@@ -781,8 +782,13 @@
gen = (gen << 8) + c;
}
if (gen > INT_MAX) {
- error(errSyntaxError, -1, "Gen inside xref table too large (bigger than
INT_MAX)");
- return false;
+ if (i == 0 && gen == std::numeric_limits<uint32_t>::max()) {
+ // workaround broken generators
+ gen = 65535;
+ } else {
+ error(errSyntaxError, -1, "Gen inside xref table too large (bigger
than INT_MAX)");
+ return false;
+ }
}
if (entries[i].offset == -1) {
switch (type) {
++++++ pre_checkin.sh ++++++
#!/bin/sh
sed -e 's,build_qt5 0,build_qt5 1,' poppler.spec > poppler-qt5.spec
sed -e 's,^Name:.*,Name: poppler-qt5,' -i poppler-qt5.spec
cp poppler.changes poppler-qt5.changes