Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Step:15-SP4
poppler-qt5.30106
poppler.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File poppler.spec of Package poppler-qt5.30106
# # spec file for package poppler # # Copyright (c) 2018 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 http://bugs.opensuse.org/ # %define build_qt5 0 Name: poppler %define _name poppler Version: 0.62.0 Release: 0 # Actual version of poppler-data: %define poppler_data_version 0.4.8 %define poppler_sover 73 %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 or GPL-3.0 Group: Development/Libraries/C and C++ Url: https://poppler.freedesktop.org/ Source: http://poppler.freedesktop.org/%{_name}-%{version}.tar.xz Source99: baselibs.conf Patch01: CVE-2018-13988.patch Patch02: CVE-2018-16646.patch Patch03: CVE-2018-18897.patch Patch04: CVE-2018-19060.patch Patch05: CVE-2018-19059.patch Patch06: CVE-2018-19058.patch Patch07: CVE-2018-19149.patch Patch08: CVE-2018-20481.patch Patch09: CVE-2018-20551.patch Patch10: CVE-2018-20650.patch Patch11: CVE-2018-20662.patch Patch12: CVE-2019-9200.patch Patch13: CVE-2017-18267.patch Patch14: CVE-2019-7310.patch Patch15: CVE-2019-9631.patch Patch16: CVE-2019-9903.patch Patch17: CVE-2019-10871.patch Patch18: CVE-2019-10872.patch Patch19: CVE-2019-9959.patch Patch20: CVE-2019-14494.patch Patch21: CVE-2020-27778.patch Patch22: CVE-2019-13283.patch Patch23: CVE-2022-38784.patch # CVE-2019-12293 [bsc#1136105], heap-based buffer over-read in JPXStream:init in JPEG2000Stream.cc via data with inconsistent heights or widths Patch24: poppler-CVE-2019-12293.patch # CVE-2018-21009 [bsc#1149635], integer overflow in Parser:makeStream in Parser.cc. Patch25: poppler-CVE-2018-21009.patch # CVE-2022-27337 [bsc#1199272], A logic error in the Hints::Hints function can cause denial of service Patch26: poppler-CVE-2022-27337.patch # PATCH-FIX-SUSE bsc#1150039, CVE-2019-16115: fix an uninitialized memory error in GfxUnivariateShading::setupCache, fixed with memset() Patch27: poppler-CVE-2019-16115.patch BuildRequires: cmake BuildRequires: gcc-c++ BuildRequires: glib2-devel BuildRequires: gobject-introspection-devel BuildRequires: gtk-doc BuildRequires: libjpeg-devel BuildRequires: libtiff-devel %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 %autosetup -p1 -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_XPDF_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 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
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor