Hello community,

here is the log from the commit of package poppler.1943 for 
openSUSE:12.2:Update checked in at 2013-08-22 14:15:40
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:12.2:Update/poppler.1943 (Old)
 and      /work/SRC/openSUSE:12.2:Update/.poppler.1943.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "poppler.1943"

Changes:
--------
New Changes file:

--- /dev/null   2013-07-23 23:44:04.804033756 +0200
+++ /work/SRC/openSUSE:12.2:Update/.poppler.1943.new/poppler-qt.changes 
2013-08-22 14:15:42.000000000 +0200
@@ -0,0 +1,1623 @@
+-------------------------------------------------------------------
+Tue Aug 13 10:02:10 UTC 2013 - [email protected]
+
+- Add poppler-bnc834476.patch, fixes bnc#834476 and CVE-2012-2142.
+  Insufficient sanitization of escape sequences in the error
+  message.
+
+-------------------------------------------------------------------
+Sat Dec 22 00:10:42 UTC 2012 - [email protected]
+
+- avoid division by zero when using origpagesizes option
+  (bnc#795582)
+
+-------------------------------------------------------------------
+Sat Sep 29 16:11:04 UTC 2012 - [email protected]
+
+- Add poppler-fix-postscript-error-setprintermode.patch, fix
+  printing with postscript capable printers that fail in some cases 
+  (bnc#774627).
+
+-------------------------------------------------------------------
+Mon May 14 12:49:22 UTC 2012 - [email protected]
+
+- Change pkgconfig(lcms) to pkgconfig(lcms2) since poppler 0.20 now
+  supports lcms2.
+
+-------------------------------------------------------------------
+Thu May 10 22:22:31 UTC 2012 - [email protected]
+
+- Update to version 0.20.0:
+  + Core:
+    - Merge Xpdf 3.03
+    - Annotation improvements
+    - CairoOutputDev:
+      . Fix regression caused by mesh gradients
+      . Use correct userfont font bbox (fdo#48399)
+      . Fix paintTransparencyGroup when both mask and fill opacity
+        are required (fdo#48453)
+      . Ensure 0 width lines with stroke_adjust are aligned
+      . Only align stroke coords for horizontal and vertical lines
+        (fdo#48318)
+      . Fix stroke pattern with transparency group (fdo#48468)
+      . Update cairo mesh pattern to 1.12 api
+      . Fix some transparency issues (fdo#47739)
+      . Fix regression in some shadings
+      . Avoid setting huge clip area when printing (fdo#44002)
+      . Fix test for rotation (fdo#14619)
+      . Don't read inline image streams twice (fdo#45668)
+      . Set mask matrix before drawing an image with a mask
+        (fdo#40828)
+    - SplashOutputDev:
+      . Implement Overprint
+      . Fix slow rendering of pdf with a lot of image masks in
+        pattern colorspace
+      . Fix rendering of knockout groups (fdo#12185)
+      . Fix cmyk transfer bug (fdo#49341)
+    - PSOutputDev: Implement Overprint
+    - TextOutputDev: Don't add newline to last line extracted by
+      TextSelectionDumper (fdo#45955)
+    - Add support for lcms2
+    - More compatible file writing
+    - CJK font improvements
+    - ttc<->ttf fallback is expected for CJK font list in for
+      Windows (fdo#48046)
+    - Improve font matching for non embedded fonts
+    - Fix typos glyph names in truetype 'post' table standard mac
+      ordering
+    - Fix page labels to not have a null character at the end
+    - Fix logic error in Rendition parsing code (fdo#47063)
+    - Minor API changes to SplashOutputDev (fdo#46622)
+    - Expand glyph name ligatures such as "ff", "ffi" etc to
+      normal form (fdo#7002)
+    - Use an Identity CharCodeToUnicode for Adobe-Identity and
+      Adobe-UCS collections (fdo#35468)
+    - Update glyph names to Unicode values mapping (fdo#13131)
+    - Only use Hints table when there are no parse errors
+      (fdo#46459)
+    - Fix crash in JBIG2Stream decoding
+    - Fix crashes in broken documents
+    - Expose POPPLER_VERSION in poppler-config.h
+    - Reconstruct xref table if xref needed but missing
+      (fdo#40719)
+    - Fix getFullyQualifiedName with unicode field names
+      (fdo#49256)
+    - Bring back the Outputdev::begin/endMarkedContent virtuals
+  + Qt4:
+    - Annotations can now be modified/added/removed
+    - Form support improvements
+    - Support for LinkMovie object (fdo#40561)
+    - Support for Media Rendition
+    - Add the option of PSConverter creating EPS
+    - Convert propertly unicode encoded field qualified names
+  + Glib:
+    - Add poppler_fonts_iter_get_encoding
+    - Add poppler_fonts_iter_get_substitute_name
+    - Demo improvements
+    - Update gtk-doc makefile and m4 file
+    - Fix typos in documentation
+    - glib: Use delete[] to free array allocated with new[]
+      (fdo#48447)
+  + Utils:
+    - pdftohtml:
+      . Fix crash when the destination file does not exist
+      . Add producer and version to xml output
+      . Fix the mask inversion for PNG
+      . Extract mask images even if they are not JPEG (fdo#47186)
+      . Flip images if they need to (fdo#32340)
+      . Add possibilty of controlling word breaks percentage
+        (fdo#47022)
+      . Output images in -xml mode if no -i option is specified
+      . Get rid of static data members; merge duplicated jpeg
+        dumping code
+      . Be more consistent generating the outlines
+      . Generate outlines in pdftohtml in -xml mode (fdo#56993)
+      . Combine UTF16 surrogate pairs (fdo#46521)
+    - pdffonts:
+      . List the encoding of each font. (fdo#46888)
+      . Add -subst option to list the substitute font name and
+        filename
+    - pdfinfo:
+      . Report page rotation
+      . Decode utf-16 surrogate pairs
+    - pdftotext: Add missing section heading to man page
+    - pdftops: Fix -passfonts regression. (fdo#46744)
+    - pdftoppm: Allow one of -scale-to-[xy] = -1 to mean the
+      aspect ratio is to be preserved (fdo#43393)
+    - pdftocairo: Allow one of -scale-to-[xy] = -1 to mean the
+      aspect ratio is to be preserved
+    - pdfseparate: Produce PDF/X conformant pdf pages if the
+      original PDF was PDF/X conformant
+    - pdfimages: Add -list option to list all images (fdo#46066)
+    - Improve various manpages
+  + Build system:
+    - autotools:
+      . Do not append "-ansi" to CXXFLAG, if "-std=XXX" is already
+        specified.
+      . Do not clear FREETYPE_CFLAGS, FREETYPE_LIBS before
+        PKG_CHECK_MODULES()
+      . Copying graphics library CFLAGS to cpp frontend Makefile.am
+      . Print the cairo version required if not found (fdo#44619)
+      . Print the glib version required if not found
+      . Use pkgconfig to check for libopenjpeg (fdo#21789)
+      . Replace openjpeg compile test with a version test
+    - Minor cmake fixes
+    - Add a configuration option for the test data dir
+- Updated sonames for shared libraries in keeping with upstream
+  package changes: poppler_soname is now 25, poppler_qt4_soname is
+  now 4.
+
+-------------------------------------------------------------------
+Sun Mar  4 18:56:41 UTC 2012 - [email protected]
+
+- Enabled build requirement for openjpeg.
+
+-------------------------------------------------------------------
+Thu Feb 16 09:05:41 UTC 2012 - [email protected]
+
+- Update to version 0.18.4:
+  + core:
+    - CairoOutputDev:
+      . Restore temporary clip used in CairoOutputDev::fill when
+        painting a mask
+      . Ensure paintTransparencyGroup uses same ctm as
+        beginTransparencyGroup (fdo#29968).
+      . Use fabs when comparing the transformed line width
+        (fdo#43441).
+      . Remove unused variable in CairoFontEngine.cc (fdo#45442).
+    - SplashOutputDev: Do not use 50Kb of stack in
+      SplashXPath::addCurve (fdo#44905).
+    - JpegWriter: set image parameters after jpeg_set_defaults()
+      (fdo#45224).
+    - OpenJPEG decoder: Set
+      OPJ_DPARAMETERS_IGNORE_PCLR_CMAP_CDEF_FLAG if you have it
+      (fdo#43414).
+    - Lexer: convert integer to real when overflow occurs
+      (fdo#45605).
+  + glib:
+    - Various minor introspection and documentation improvements
+      (fdo#44790).
+    - Fix return values (fdo#45440, fdo#45441).
+    - gtk-doc improvements (fdo#45549).
+    - Introspection improvements (fdo#45455).
+  + qt4:
+    - remove non-existing 'qt' include dirs
+  + utils:
+    - HtmlOutputDev:
+      . Proper unicode support when dumping PDF outline
+        (fdo#45572).
+      . Fix leaks (fdo#45805).
+      . Close li tags in generated outlines (fdo#45807).
+    - man pages: fix minor issues with hypens and %
+  + build system:
+    - automake: Link to lcms if needed
+    - automake: Fix build for builddir != srcdir (fdo#45434).
+    - automake: Improve moc detection when cross compiling
+    - Fix build with latest mingw-w64 headers (fdo#45407).
+
++++ 1426 more lines (skipped)
++++ between /dev/null
++++ and /work/SRC/openSUSE:12.2:Update/.poppler.1943.new/poppler-qt.changes
New Changes file:

poppler.changes: same change

New:
----
  dcbc923bd3592a81876f84005fbaddcea18641cc.patch
  poppler-0.20.0.tar.gz
  poppler-bnc834476.patch
  poppler-fix-postscript-error-setprintermode.patch
  poppler-qt.changes
  poppler-qt.spec
  poppler.changes
  poppler.spec
  pre_checkin.sh

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ poppler-qt.spec ++++++
#
# spec file for package poppler-qt
#
# Copyright (c) 2013 SUSE LINUX Products 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 http://bugs.opensuse.org/
#


%define build_qt 1

Name:           poppler-qt
%define _name   poppler
Version:        0.20.0
Release:        0
# Actual version of poppler-data:
%define poppler_data_version 0.2.1
%define poppler_soname 25
%define poppler_cpp_soname 0
%define poppler_glib_soname 8
%define poppler_qt4_soname 4
%define poppler_api 0.18
%define poppler_apipkg 0_18
Url:            http://poppler.freedesktop.org/
Summary:        PDF Rendering Library
License:        GPL-2.0+
Group:          System/Libraries
Source:         http://poppler.freedesktop.org/%{_name}-%{version}.tar.gz
# PATCH-FIX-UPSTREAM poppler-fix-postscript-error-setprintermode.patch 
bnc#774627 [email protected] -- Fix printing with postscript capable 
printers. Patch from upstream git.
Patch0:         poppler-fix-postscript-error-setprintermode.patch
# PATCH-FIX-UPSTREAM avoid division by zero when using origpagesizes
Patch1:         dcbc923bd3592a81876f84005fbaddcea18641cc.patch
# PATCH-FIX-UPDATE poppler-bnc834476.patch bnc#834476 CVE-2012-2142 
[email protected] -- Insufficient sanitization of escape sequences in the 
error message.
Patch2:         poppler-bnc834476.patch
BuildRequires:  gcc-c++
BuildRequires:  gobject-introspection-devel
BuildRequires:  libjpeg-devel
BuildRequires:  libtiff-devel
%if %build_qt
BuildRequires:  libqt4-devel
%endif
%if 0%{?suse_version} > 1210
BuildRequires:  openjpeg-devel
%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.18
BuildRequires:  pkgconfig(lcms2)
BuildRequires:  pkgconfig(libpng)
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_soname}
Summary:        PDF Rendering Library
License:        GPL-2.0
Group:          System/Libraries
Recommends:     poppler-data >= %{poppler_data_version}
# Last appeared in OpenSUSE 10.3:
Provides:       poppler = %{version}
Obsoletes:      poppler < %{version}

%description -n libpoppler%{poppler_soname}
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_soname}
Summary:        PDF Rendering Library
License:        GPL-2.0
Group:          System/Libraries

%description -n libpoppler-cpp%{poppler_cpp_soname}
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_soname}
Summary:        PDF Rendering Library - GLib Wrapper
License:        GPL-2.0+
Group:          System/Libraries
Requires:       libpoppler%{poppler_soname} >= %{version}
# Last appeared in OpenSUSE 10.3:
Provides:       poppler-glib = %{version}
Obsoletes:      poppler-glib < %{version}

%description -n libpoppler-glib%{poppler_glib_soname}
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:        PDF Rendering Library - Introspection bindings
License:        GPL-2.0+
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.

%if %build_qt

%package -n libpoppler-qt4-%{poppler_qt4_soname}
Summary:        PDF Rendering Library - Qt4 Wrapper
License:        GPL-2.0+
Group:          System/Libraries
Requires:       libpoppler%{poppler_soname} >= %{version}
# Last appeared in OpenSUSE 10.3:
Provides:       poppler-qt4 = %{version}
Obsoletes:      poppler-qt4 < %{version}

%description -n libpoppler-qt4-%{poppler_qt4_soname}
Poppler is a PDF rendering library, forked from the xpdf PDF viewer
developed by Derek Noonburg of Glyph and Cog, LLC.
%endif

%package tools
Summary:        PDF Rendering Library Tools
License:        GPL-2.0
Group:          Productivity/Publishing/PDF
Requires:       libpoppler%{poppler_soname} >= %{version}
# last version in openSUSE 11.1/SLE11
Provides:       xpdf-tools = 3.02
Obsoletes:      xpdf-tools < 3.02
Provides:       pdftools_any

%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:        PDF rendering library
License:        GPL-2.0
Group:          Development/Libraries/C and C++
Requires:       libpoppler%{poppler_soname} = %{version}
Requires:       libstdc++-devel
# Last appeared in OpenSUSE 10.3:
Provides:       poppler-devel = %{version}
Obsoletes:      poppler-devel < %{version}

%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:        PDF rendering library - GLib Wrapper
License:        GPL-2.0
Group:          Development/Libraries/C and C++
Requires:       libpoppler-glib%{poppler_glib_soname} = %{version}
Requires:       typelib-1_0-Poppler-%{poppler_apipkg} = %{version}
# Last appeared in OpenSUSE 10.3:
Provides:       poppler-devel:%{_libdir}/libpoppler-glib.so
# Last appeared in 11.4
Provides:       libpoppler-doc = %{version}
Obsoletes:      libpoppler-doc < %{version}
# Last appeared in OpenSUSE 10.3:
Provides:       poppler-doc = %{version}
Obsoletes:      poppler-doc < %{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.

%if %build_qt

%package -n libpoppler-qt4-devel
Summary:        PDF rendering library - Qt4 Wrapper
License:        GPL-2.0+
Group:          Development/Libraries/C and C++
Requires:       libpoppler-devel = %{version}
Requires:       libpoppler-qt4-%{poppler_qt4_soname} = %{version}
Requires:       libqt4-devel
# Last appeared in OpenSUSE 10.3:
Provides:       poppler-devel:%{_libdir}/libpoppler-qt4.so

%description -n libpoppler-qt4-devel
Poppler is a PDF rendering library, forked from the xpdf PDF viewer
developed by Derek Noonburg of Glyph and Cog, LLC.
%endif

%prep
%setup -q -n poppler-%{version}
%patch0 -p1
%patch1 -p1
%patch2 -p1

%build
%configure\
        --enable-xpdf-headers\
        --disable-static\
        --enable-shared\
        --enable-zlib \
        --disable-gtk-test
make %{?_smp_mflags}

%install
%makeinstall
rm %{buildroot}%{_libdir}/*.la
%if %build_qt
cd %{buildroot} && find . -type f -o -type l | grep -v qt | xargs rm -v
%endif

%post -n libpoppler%{poppler_soname} -p /sbin/ldconfig

%post -n libpoppler-glib%{poppler_glib_soname} -p /sbin/ldconfig

%if %build_qt

%post -n libpoppler-qt4-%{poppler_qt4_soname} -p /sbin/ldconfig
%endif

%postun -n libpoppler%{poppler_soname} -p /sbin/ldconfig

%postun -n libpoppler-glib%{poppler_glib_soname} -p /sbin/ldconfig

%post -n libpoppler-cpp%{poppler_cpp_soname} -p /sbin/ldconfig

%postun -n libpoppler-cpp%{poppler_cpp_soname} -p /sbin/ldconfig

%if %build_qt

%postun -n libpoppler-qt4-%{poppler_qt4_soname} -p /sbin/ldconfig
%endif

%if %build_qt

%files -n libpoppler-qt4-%{poppler_qt4_soname}
%defattr (-, root, root)
%{_libdir}/libpoppler-qt4.so.%{poppler_qt4_soname}*

%files -n libpoppler-qt4-devel
%defattr (-, root, root)
%dir %{_includedir}/poppler
%{_includedir}/poppler/qt4
%{_libdir}/libpoppler-qt4.so
%{_libdir}/pkgconfig/poppler-qt4.pc

%else

%files -n libpoppler%{poppler_soname}
%defattr (-, root, root)
%doc AUTHORS COPYING ChangeLog NEWS README README-XPDF TODO
%{_libdir}/libpoppler.so.%{poppler_soname}*

%files -n libpoppler-glib%{poppler_glib_soname}
%defattr (-, root, root)
%{_libdir}/libpoppler-glib.so.%{poppler_glib_soname}*

%files -n typelib-1_0-Poppler-%{poppler_apipkg}
%defattr (-, root, root)
%{_libdir}/girepository-1.0/Poppler-%{poppler_api}.typelib

%files tools
%defattr (-, root, root)
%doc COPYING
%{_bindir}/*
%doc %{_mandir}/man1/*.*

%files -n libpoppler-cpp%{poppler_cpp_soname}
%defattr(-, root, root)
%{_libdir}/libpoppler-cpp.so.%{poppler_cpp_soname}*

%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
%doc %{_datadir}/gtk-doc/html/poppler/

%endif

%changelog
++++++ poppler.spec ++++++
#
# spec file for package poppler
#
# Copyright (c) 2013 SUSE LINUX Products 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 http://bugs.opensuse.org/
#


%define build_qt 0

Name:           poppler
%define _name   poppler
Version:        0.20.0
Release:        0
# Actual version of poppler-data:
%define poppler_data_version 0.2.1
%define poppler_soname 25
%define poppler_cpp_soname 0
%define poppler_glib_soname 8
%define poppler_qt4_soname 4
%define poppler_api 0.18
%define poppler_apipkg 0_18
Url:            http://poppler.freedesktop.org/
Summary:        PDF Rendering Library
License:        GPL-2.0+
Group:          System/Libraries
Source:         http://poppler.freedesktop.org/%{_name}-%{version}.tar.gz
# PATCH-FIX-UPSTREAM poppler-fix-postscript-error-setprintermode.patch 
bnc#774627 [email protected] -- Fix printing with postscript capable 
printers. Patch from upstream git.
Patch0:         poppler-fix-postscript-error-setprintermode.patch
# PATCH-FIX-UPSTREAM avoid division by zero when using origpagesizes
Patch1:         dcbc923bd3592a81876f84005fbaddcea18641cc.patch
# PATCH-FIX-UPDATE poppler-bnc834476.patch bnc#834476 CVE-2012-2142 
[email protected] -- Insufficient sanitization of escape sequences in the 
error message.
Patch2:         poppler-bnc834476.patch
BuildRequires:  gcc-c++
BuildRequires:  gobject-introspection-devel
BuildRequires:  libjpeg-devel
BuildRequires:  libtiff-devel
%if %build_qt
BuildRequires:  libqt4-devel
%endif
%if 0%{?suse_version} > 1210
BuildRequires:  openjpeg-devel
%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.18
BuildRequires:  pkgconfig(lcms2)
BuildRequires:  pkgconfig(libpng)
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_soname}
Summary:        PDF Rendering Library
License:        GPL-2.0
Group:          System/Libraries
Recommends:     poppler-data >= %{poppler_data_version}
# Last appeared in OpenSUSE 10.3:
Provides:       poppler = %{version}
Obsoletes:      poppler < %{version}

%description -n libpoppler%{poppler_soname}
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_soname}
Summary:        PDF Rendering Library
License:        GPL-2.0
Group:          System/Libraries

%description -n libpoppler-cpp%{poppler_cpp_soname}
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_soname}
Summary:        PDF Rendering Library - GLib Wrapper
License:        GPL-2.0+
Group:          System/Libraries
Requires:       libpoppler%{poppler_soname} >= %{version}
# Last appeared in OpenSUSE 10.3:
Provides:       poppler-glib = %{version}
Obsoletes:      poppler-glib < %{version}

%description -n libpoppler-glib%{poppler_glib_soname}
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:        PDF Rendering Library - Introspection bindings
License:        GPL-2.0+
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.

%if %build_qt

%package -n libpoppler-qt4-%{poppler_qt4_soname}
Summary:        PDF Rendering Library - Qt4 Wrapper
License:        GPL-2.0+
Group:          System/Libraries
Requires:       libpoppler%{poppler_soname} >= %{version}
# Last appeared in OpenSUSE 10.3:
Provides:       poppler-qt4 = %{version}
Obsoletes:      poppler-qt4 < %{version}

%description -n libpoppler-qt4-%{poppler_qt4_soname}
Poppler is a PDF rendering library, forked from the xpdf PDF viewer
developed by Derek Noonburg of Glyph and Cog, LLC.
%endif

%package tools
Summary:        PDF Rendering Library Tools
License:        GPL-2.0
Group:          Productivity/Publishing/PDF
Requires:       libpoppler%{poppler_soname} >= %{version}
# last version in openSUSE 11.1/SLE11
Provides:       xpdf-tools = 3.02
Obsoletes:      xpdf-tools < 3.02
Provides:       pdftools_any

%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:        PDF rendering library
License:        GPL-2.0
Group:          Development/Libraries/C and C++
Requires:       libpoppler%{poppler_soname} = %{version}
Requires:       libstdc++-devel
# Last appeared in OpenSUSE 10.3:
Provides:       poppler-devel = %{version}
Obsoletes:      poppler-devel < %{version}

%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:        PDF rendering library - GLib Wrapper
License:        GPL-2.0
Group:          Development/Libraries/C and C++
Requires:       libpoppler-glib%{poppler_glib_soname} = %{version}
Requires:       typelib-1_0-Poppler-%{poppler_apipkg} = %{version}
# Last appeared in OpenSUSE 10.3:
Provides:       poppler-devel:%{_libdir}/libpoppler-glib.so
# Last appeared in 11.4
Provides:       libpoppler-doc = %{version}
Obsoletes:      libpoppler-doc < %{version}
# Last appeared in OpenSUSE 10.3:
Provides:       poppler-doc = %{version}
Obsoletes:      poppler-doc < %{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.

%if %build_qt

%package -n libpoppler-qt4-devel
Summary:        PDF rendering library - Qt4 Wrapper
License:        GPL-2.0+
Group:          Development/Libraries/C and C++
Requires:       libpoppler-devel = %{version}
Requires:       libpoppler-qt4-%{poppler_qt4_soname} = %{version}
Requires:       libqt4-devel
# Last appeared in OpenSUSE 10.3:
Provides:       poppler-devel:%{_libdir}/libpoppler-qt4.so

%description -n libpoppler-qt4-devel
Poppler is a PDF rendering library, forked from the xpdf PDF viewer
developed by Derek Noonburg of Glyph and Cog, LLC.
%endif

%prep
%setup -q -n poppler-%{version}
%patch0 -p1
%patch1 -p1
%patch2 -p1

%build
%configure\
        --enable-xpdf-headers\
        --disable-static\
        --enable-shared\
        --enable-zlib \
        --disable-gtk-test
make %{?_smp_mflags}

%install
%makeinstall
rm %{buildroot}%{_libdir}/*.la
%if %build_qt
cd %{buildroot} && find . -type f -o -type l | grep -v qt | xargs rm -v
%endif

%post -n libpoppler%{poppler_soname} -p /sbin/ldconfig

%post -n libpoppler-glib%{poppler_glib_soname} -p /sbin/ldconfig

%if %build_qt

%post -n libpoppler-qt4-%{poppler_qt4_soname} -p /sbin/ldconfig
%endif

%postun -n libpoppler%{poppler_soname} -p /sbin/ldconfig

%postun -n libpoppler-glib%{poppler_glib_soname} -p /sbin/ldconfig

%post -n libpoppler-cpp%{poppler_cpp_soname} -p /sbin/ldconfig

%postun -n libpoppler-cpp%{poppler_cpp_soname} -p /sbin/ldconfig

%if %build_qt

%postun -n libpoppler-qt4-%{poppler_qt4_soname} -p /sbin/ldconfig
%endif

%if %build_qt

%files -n libpoppler-qt4-%{poppler_qt4_soname}
%defattr (-, root, root)
%{_libdir}/libpoppler-qt4.so.%{poppler_qt4_soname}*

%files -n libpoppler-qt4-devel
%defattr (-, root, root)
%dir %{_includedir}/poppler
%{_includedir}/poppler/qt4
%{_libdir}/libpoppler-qt4.so
%{_libdir}/pkgconfig/poppler-qt4.pc

%else

%files -n libpoppler%{poppler_soname}
%defattr (-, root, root)
%doc AUTHORS COPYING ChangeLog NEWS README README-XPDF TODO
%{_libdir}/libpoppler.so.%{poppler_soname}*

%files -n libpoppler-glib%{poppler_glib_soname}
%defattr (-, root, root)
%{_libdir}/libpoppler-glib.so.%{poppler_glib_soname}*

%files -n typelib-1_0-Poppler-%{poppler_apipkg}
%defattr (-, root, root)
%{_libdir}/girepository-1.0/Poppler-%{poppler_api}.typelib

%files tools
%defattr (-, root, root)
%doc COPYING
%{_bindir}/*
%doc %{_mandir}/man1/*.*

%files -n libpoppler-cpp%{poppler_cpp_soname}
%defattr(-, root, root)
%{_libdir}/libpoppler-cpp.so.%{poppler_cpp_soname}*

%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
%doc %{_datadir}/gtk-doc/html/poppler/

%endif

%changelog
++++++ dcbc923bd3592a81876f84005fbaddcea18641cc.patch ++++++
>From dcbc923bd3592a81876f84005fbaddcea18641cc Mon Sep 17 00:00:00 2001
From: Thomas Freitag <[email protected]>
Date: Sun, 22 Jul 2012 16:40:46 +0000
Subject: Make sure xScale and yScale are always initialized

Bug #52215
---
(limited to 'poppler/PSOutputDev.cc')

diff --git a/poppler/PSOutputDev.cc b/poppler/PSOutputDev.cc
index a01a4b3..e15c2e9 100644
--- a/poppler/PSOutputDev.cc
+++ b/poppler/PSOutputDev.cc
@@ -3521,6 +3521,7 @@ void PSOutputDev::startPage(int pageNum, GfxState *state) 
{
     saveState(NULL);
   }
 
+  xScale = yScale = 1;
   switch (mode) {
 
   case psModePSOrigPageSizes:
@@ -3631,8 +3632,6 @@ void PSOutputDev::startPage(int pageNum, GfxState *state) 
{
       } else {
        yScale = xScale;
       }
-    } else {
-      xScale = yScale = 1;
     }
     // deal with odd bounding boxes or clipping
     if (clipLLX0 < clipURX0 && clipLLY0 < clipURY0) {
@@ -3694,7 +3693,6 @@ void PSOutputDev::startPage(int pageNum, GfxState *state) 
{
     if (tx != 0 || ty != 0) {
       writePSFmt("{0:.6g} {1:.6g} translate\n", tx, ty);
     }
-    xScale = yScale = 1;
     break;
 
   case psModeForm:
@@ -3702,7 +3700,6 @@ void PSOutputDev::startPage(int pageNum, GfxState *state) 
{
     writePS("begin xpdf begin\n");
     writePS("pdfStartPage\n");
     tx = ty = 0;
-    xScale = yScale = 1;
     rotate = 0;
     break;
   }
--
cgit v0.9.0.2-2-gbebe
++++++ poppler-bnc834476.patch ++++++
>From 71bad47ed6a36d825b0d08992c8db56845c71e40 Mon Sep 17 00:00:00 2001
From: Marek Kasik <[email protected]>
Date: Sun, 09 Dec 2012 19:20:00 +0000
Subject: Filter stuff that might end up in the shell

Since it seems shells don't know how to filter stuff and might causing bad 
things to happen
---
diff --git a/poppler/Error.cc b/poppler/Error.cc
index 9d044bc..ce71820 100644
--- a/poppler/Error.cc
+++ b/poppler/Error.cc
@@ -16,6 +16,7 @@
 // Copyright (C) 2005, 2007 Jeff Muizelaar <[email protected]>
 // Copyright (C) 2005 Albert Astals Cid <[email protected]>
 // Copyright (C) 2007 Krzysztof Kowalczyk <[email protected]>
+// Copyright (C) 2012 Marek Kasik <[email protected]>
 //
 // To see a description of the changes please see the Changelog file that
 // came with your tarball or type make ChangeLog if you are building from git
@@ -59,7 +60,7 @@ void setErrorCallback(void (*cbk)(void *data, ErrorCategory 
category,
 
 void CDECL error(ErrorCategory category, int pos, const char *msg, ...) {
   va_list args;
-  GooString *s;
+  GooString *s, *sanitized;
 
   // NB: this can be called before the globalParams object is created
   if (!errorCbk && globalParams && globalParams->getErrQuiet()) {
@@ -68,17 +69,29 @@ void CDECL error(ErrorCategory category, int pos, const 
char *msg, ...) {
   va_start(args, msg);
   s = GooString::formatv(msg, args);
   va_end(args);
+
+  sanitized = new GooString ();
+  for (int i = 0; i < s->getLength(); ++i) {
+    const char c = s->getChar(i);
+    if (c < (char)0x20 || c >= (char)0x7f) {
+      sanitized->appendf("<{0:02x}>", c & 0xff);
+    } else {
+      sanitized->append(c);
+    }
+  }
+
   if (errorCbk) {
-    (*errorCbk)(errorCbkData, category, pos, s->getCString());
+    (*errorCbk)(errorCbkData, category, pos, sanitized->getCString());
   } else {
     if (pos >= 0) {
       fprintf(stderr, "%s (%d): %s\n",
-             errorCategoryNames[category], pos, s->getCString());
+             errorCategoryNames[category], pos, sanitized->getCString());
     } else {
       fprintf(stderr, "%s: %s\n",
-             errorCategoryNames[category], s->getCString());
+             errorCategoryNames[category], sanitized->getCString());
     }
     fflush(stderr);
   }
   delete s;
+  delete sanitized;
 }
--
cgit v0.9.0.2-2-gbebe
++++++ poppler-fix-postscript-error-setprintermode.patch ++++++
>From 92ef16e3699da949c80716c3fd4b438fe79c134d Mon Sep 17 00:00:00 2001
From: Thomas Freitag <[email protected]>
Date: Sun, 10 Jun 2012 14:58:54 +0000
Subject: use setoverprintmode only if rip knows it

---
(limited to 'poppler/PSOutputDev.cc')

diff --git a/poppler/PSOutputDev.cc b/poppler/PSOutputDev.cc
index dac10d0..c655652 100644
--- a/poppler/PSOutputDev.cc
+++ b/poppler/PSOutputDev.cc
@@ -258,7 +258,7 @@ static const char *prolog[] = {
   "} def",
   "~3n",
   "/opm { dup /pdfOPM exch def",
-  "      setoverprintmode } def",
+  "      /setoverprintmode where{pop setoverprintmode}{pop}ifelse  } def",
   "~23n",
   "/cs { /pdfFillXform exch def dup /pdfFillCS exch def",
   "      setcolorspace } def",
@@ -292,7 +292,7 @@ static const char *prolog[] = {
   "} def",
   "~3s",
   "/opm { dup /pdfOPM exch def",
-  "      setoverprintmode } def",
+  "      /setoverprintmode where{pop setoverprintmode}{pop}ifelse } def",
   "~23s",
   "/k { 4 copy 4 array astore /pdfFill exch def setcmykcolor",
   "     /pdfLastFill true def /pdfLastStroke false def } def",
@@ -390,7 +390,7 @@ static const char *prolog[] = {
   "~3sn",
   "  /pdfOPM where {",
   "    pop",
-  "    pdfOPM setoverprintmode",
+  "    pdfOPM /setoverprintmode where{pop setoverprintmode}{pop}ifelse ",
   "  } if",
   "~23sn",
   "} def",
--
cgit v0.9.0.2-2-gbebe
++++++ pre_checkin.sh ++++++
#!/bin/sh

sed -e 's,build_qt 0,build_qt 1,' poppler.spec > poppler-qt.spec
sed -e 's,^Name:.*,Name: poppler-qt,' -i poppler-qt.spec
cp poppler.changes poppler-qt.changes
-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to