- added include patch (missing C++ include)
- qt5 requires qt 5.5 now; initial qt6 support (bcond and BRs only, no packaging yet)
--- /dev/null
+--- poppler-20.10.0/qt5/tests/check_annotations.cpp.orig 2020-10-01 21:44:58.000000000 +0200
++++ poppler-20.10.0/qt5/tests/check_annotations.cpp 2020-10-31 18:19:05.431433716 +0100
+@@ -1,4 +1,5 @@
+ #include <cmath>
++#include <functional>
+ #include <memory>
+ #include <sstream>
+
%bcond_without apidocs # gtk-doc API documentation
%bcond_without cairo # Cairo backend
%bcond_without qt5 # Qt 5 wrapper
%bcond_without apidocs # gtk-doc API documentation
%bcond_without cairo # Cairo backend
%bcond_without qt5 # Qt 5 wrapper
+%bcond_with qt6 # Qt 6 wrapper
%bcond_without cpp # C++ wrapper
%bcond_without glib # GLib wrapper
%define cairo_ver 1.10.0
%bcond_without cpp # C++ wrapper
%bcond_without glib # GLib wrapper
%define cairo_ver 1.10.0
+%define qt5_ver 5.5.0
+%define qt6_ver 6.0.0
Summary: PDF rendering library
Summary(pl.UTF-8): Biblioteka renderująca PDF
Name: poppler
Summary: PDF rendering library
Summary(pl.UTF-8): Biblioteka renderująca PDF
Name: poppler
Release: 1
License: GPL v2+
Group: Libraries
Source0: https://poppler.freedesktop.org/%{name}-%{version}.tar.xz
Release: 1
License: GPL v2+
Group: Libraries
Source0: https://poppler.freedesktop.org/%{name}-%{version}.tar.xz
-# Source0-md5: 2a638739f29e82a0a57b633ea39c87f3
+# Source0-md5: 1103acc31277936a138613c97b38b82c
Patch0: %{name}-gtkdocdir.patch
Patch0: %{name}-gtkdocdir.patch
+Patch1: %{name}-include.patch
URL: https://poppler.freedesktop.org/
%{?with_qt5:BuildRequires: Qt5Core-devel >= %{qt5_ver}}
%{?with_qt5:BuildRequires: Qt5Gui-devel >= %{qt5_ver}}
%{?with_qt5:BuildRequires: Qt5Test-devel >= %{qt5_ver}}
%{?with_qt5:BuildRequires: Qt5Widgets-devel >= %{qt5_ver}}
%{?with_qt5:BuildRequires: Qt5Xml-devel >= %{qt5_ver}}
URL: https://poppler.freedesktop.org/
%{?with_qt5:BuildRequires: Qt5Core-devel >= %{qt5_ver}}
%{?with_qt5:BuildRequires: Qt5Gui-devel >= %{qt5_ver}}
%{?with_qt5:BuildRequires: Qt5Test-devel >= %{qt5_ver}}
%{?with_qt5:BuildRequires: Qt5Widgets-devel >= %{qt5_ver}}
%{?with_qt5:BuildRequires: Qt5Xml-devel >= %{qt5_ver}}
+%{?with_qt6:BuildRequires: Qt6Core-devel >= %{qt6_ver}}
+%{?with_qt6:BuildRequires: Qt6Gui-devel >= %{qt6_ver}}
+%{?with_qt6:BuildRequires: Qt6Test-devel >= %{qt6_ver}}
+%{?with_qt6:BuildRequires: Qt6Widgets-devel >= %{qt6_ver}}
BuildRequires: boost-devel >= 1.58.0
%{?with_cairo:BuildRequires: cairo-devel >= %{cairo_ver}}
BuildRequires: boost-devel >= 1.58.0
%{?with_cairo:BuildRequires: cairo-devel >= %{cairo_ver}}
-BuildRequires: cmake >= 3.1.0
+BuildRequires: cmake >= 3.5.0
BuildRequires: curl-devel
BuildRequires: docbook-dtd412-xml
BuildRequires: fontconfig-devel >= 2.0.0
BuildRequires: curl-devel
BuildRequires: docbook-dtd412-xml
BuildRequires: fontconfig-devel >= 2.0.0
BuildRequires: pkgconfig(cairo-ps) >= %{cairo_ver}
BuildRequires: pkgconfig(cairo-svg) >= %{cairo_ver}
%{?with_qt5:BuildRequires: qt5-build >= %{qt5_ver}}
BuildRequires: pkgconfig(cairo-ps) >= %{cairo_ver}
BuildRequires: pkgconfig(cairo-svg) >= %{cairo_ver}
%{?with_qt5:BuildRequires: qt5-build >= %{qt5_ver}}
+%{?with_qt6:BuildRequires: qt6-build >= %{qt6_ver}}
+BuildRequires: rpmbuild(macros) >= 1.752
BuildRequires: sed >= 4.0
BuildRequires: tar >= 1:1.22
BuildRequires: which
BuildRequires: sed >= 4.0
BuildRequires: tar >= 1:1.22
BuildRequires: which
Summary(pl.UTF-8): Dokumentacja API biblioteki Poppler
Group: Documentation
Requires: gtk-doc-common
Summary(pl.UTF-8): Dokumentacja API biblioteki Poppler
Group: Documentation
Requires: gtk-doc-common
-%if "%{_rpmversion}" >= "5"
-BuildArch: noarch
-%endif
%description apidocs
Poppler library API documentation.
%description apidocs
Poppler library API documentation.
%prep
%setup -q
%patch0 -p1
%prep
%setup -q
%patch0 -p1
-DENABLE_GTK_TESTS=OFF \
-DENABLE_LIBCURL=ON \
%{!?with_qt5:-DENABLE_QT5=OFF} \
-DENABLE_GTK_TESTS=OFF \
-DENABLE_LIBCURL=ON \
%{!?with_qt5:-DENABLE_QT5=OFF} \
+ %{!?with_qt6:-DENABLE_QT6=OFF} \
-DENABLE_UNSTABLE_API_ABI_HEADERS=ON \
-DENABLE_ZLIB=ON \
%{!?with_cairo:-DWITH_CAIRO=OFF}
-DENABLE_UNSTABLE_API_ABI_HEADERS=ON \
-DENABLE_ZLIB=ON \
%{!?with_cairo:-DWITH_CAIRO=OFF}
%defattr(644,root,root,755)
%doc AUTHORS ChangeLog NEWS README*
%attr(755,root,root) %{_libdir}/libpoppler.so.*.*.*
%defattr(644,root,root,755)
%doc AUTHORS ChangeLog NEWS README*
%attr(755,root,root) %{_libdir}/libpoppler.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libpoppler.so.97
+%attr(755,root,root) %ghost %{_libdir}/libpoppler.so.103
%files devel
%defattr(644,root,root,755)
%files devel
%defattr(644,root,root,755)