#
# Conditional build:
-%bcond_without apidocs # disable gtk-doc
-%bcond_without cairo # disable Cairo backend
-%bcond_without qt # disable qt wrapper
-%bcond_without qt4 # disable qt4 wrapper
-#
-%define cairo_ver 1.0.0
-#
+%bcond_without apidocs # gtk-doc API documentation
+%bcond_without cairo # Cairo backend
+%bcond_without qt5 # Qt 5 wrapper
+%bcond_without qt6 # Qt 6 wrapper
+%bcond_without cpp # C++ wrapper
+%bcond_without glib # GLib wrapper
+%bcond_without static_libs # don't build static libraries
+
+%define cairo_ver 1.10.0
+%define qt5_ver 5.9.0
+%define qt6_ver 6.2
Summary: PDF rendering library
-Summary(pl): Biblioteka renderuj±ca PDF
+Summary(pl.UTF-8): Biblioteka renderująca PDF
Name: poppler
-Version: 0.5.3
-Release: 2
-License: GPL
+Version: 23.03.0
+Release: 1
+License: GPL v2+
Group: Libraries
-Source0: http://poppler.freedesktop.org/%{name}-%{version}.tar.gz
-# Source0-md5: d06207536555f5711e7bc61711c1b8a0
-Patch0: %{name}-link.patch
-Patch1: %{name}-freetype_includes.patch
-Patch2: %{name}-qt_m4.patch
-URL: http://poppler.freedesktop.org/
-%{?with_qt4:BuildRequires: QtGui-devel}
-%{?with_qt4:BuildRequires: QtXml-devel}
-BuildRequires: autoconf >= 2.59
-BuildRequires: automake
+Source0: https://poppler.freedesktop.org/%{name}-%{version}.tar.xz
+# Source0-md5: 342c6661d7dcb5213789acff238912cb
+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}}
+%{?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: fontconfig-devel
-BuildRequires: freetype-devel >= 2.0
-BuildRequires: gtk+2-devel >= 2:2.4.0
-%{?with_apidocs:BuildRequires: gtk-doc >= 1.0}
-BuildRequires: libstdc++-devel
-BuildRequires: libtool >= 2:1.5
-BuildRequires: pkgconfig
-%{?with_qt:BuildRequires: qt-devel}
+BuildRequires: cmake >= 3.10.0
+BuildRequires: curl-devel
+BuildRequires: docbook-dtd412-xml
+BuildRequires: fontconfig-devel >= 2.0.0
+BuildRequires: freetype-devel >= 1:2.8
+# -std=c11
+BuildRequires: gcc >= 6:4.7
+BuildRequires: gettext-tools
+%{?with_glib:BuildRequires: glib2-devel >= 1:2.56}
+%{?with_glib:BuildRequires: gobject-introspection-devel >= 0.9.12}
+BuildRequires: gperf
+%{?with_apidocs:BuildRequires: gtk-doc >= 1.14}
+BuildRequires: lcms2-devel >= 2
+BuildRequires: libjpeg-devel
+BuildRequires: libpng-devel
+# -std=c++17
+BuildRequires: libstdc++-devel >= 6:7
+BuildRequires: libtiff-devel
+BuildRequires: libxml2-devel >= 2.0
+BuildRequires: nss-devel >= 3.19
+BuildRequires: openjpeg2-devel >= 2
+BuildRequires: pkgconfig >= 1:0.18
+# wanted cairo backends
+BuildRequires: pkgconfig(cairo-pdf) >= %{cairo_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: rpm-build >= 4.6
+BuildRequires: rpmbuild(macros) >= 1.752
+BuildRequires: sed >= 4.0
+BuildRequires: tar >= 1:1.22
+BuildRequires: which
+BuildRequires: xz
BuildRequires: zlib-devel
+Requires: freetype >= 1:2.8
+Requires: openjpeg2 >= 2
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
A common PDF rendering library for integrating PDF viewing into
desktop applications (based on the xpdf-3.0 code base).
-%description -l pl
-Wspólna biblioteka renderuj±ca PDF do integrowania ogl±dania PDF w
+%description -l pl.UTF-8
+Wspólna biblioteka renderująca PDF do integrowania oglądania PDF w
aplikacjach desktopowych (oparta na kodzie xpdf-3.0).
%package devel
Summary: Poppler header files
-Summary(pl): Pliki nag³ówkowe biblioteki Poppler
+Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Poppler
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
-Requires: fontconfig-devel
-Requires: freetype-devel >= 2.0
-Requires: libstdc++-devel
+Requires: curl-devel
+Requires: lcms2-devel >= 2
+Requires: libstdc++-devel >= 6:7
+Requires: nss-devel >= 3.19
+Conflicts: poppler0.61-devel
%description devel
Header files for the Poppler library.
-%description devel -l pl
-Pliki nag³ówkowe biblioteki Poppler.
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki Poppler.
%package static
Summary: Poppler static libraries
-Summary(pl): Statyczne biblioteki Poppler
+Summary(pl.UTF-8): Statyczne biblioteki Poppler
Group: Development/Libraries
Requires: %{name}-devel = %{version}-%{release}
%description static
Poppler static libraries.
-%description static -l pl
+%description static -l pl.UTF-8
Statyczne biblioteki Poppler.
+%package apidocs
+Summary: Poppler library API documentation
+Summary(pl.UTF-8): Dokumentacja API biblioteki Poppler
+Group: Documentation
+Requires: gtk-doc-common
+BuildArch: noarch
+
+%description apidocs
+Poppler library API documentation.
+
+%description apidocs -l pl.UTF-8
+Dokumentacja API biblioteki Poppler.
+
+%package cpp
+Summary: Cpp wrapper for poppler
+Summary(pl.UTF-8): Wrapper cpp dla popplera
+Group: Libraries
+Requires: %{name} = %{version}-%{release}
+
+%description cpp
+Cpp wrapper for poppler.
+
+%description cpp -l pl.UTF-8
+Wrapper cpp dla popplera.
+
+%package cpp-devel
+Summary: Header files for cpp wrapper for poppler
+Summary(pl.UTF-8): Pliki nagłówkowe wrappera cpp dla popplera
+Group: Development/Libraries
+Requires: %{name}-cpp = %{version}-%{release}
+Requires: %{name}-devel = %{version}-%{release}
+
+%description cpp-devel
+Header files for cpp wrapper for poppler.
+
+%description cpp-devel -l pl.UTF-8
+Pliki nagłówkowe wrappera cpp dla popplera.
+
+%package cpp-static
+Summary: Static version of cpp wrapper for poppler
+Summary(pl.UTF-8): Statyczna wersja wrappera cpp dla popplera
+Group: Development/Libraries
+Requires: %{name}-cpp-devel = %{version}-%{release}
+
+%description cpp-static
+Static version of cpp wrapper for poppler.
+
+%description cpp-static -l pl.UTF-8
+Statyczna wersja wrappera cpp dla popplera.
+
%package glib
Summary: GLib wrapper for poppler
-Summary(pl): Wrapper GLib dla popplera
+Summary(pl.UTF-8): Wrapper GLib dla popplera
Group: Libraries
Requires: %{name} = %{version}-%{release}
%{?with_cairo:Requires: cairo >= %{cairo_ver}}
-Requires: gtk+2 >= 2:2.4.0
+Requires: glib2 >= 1:2.56
%description glib
GLib wrapper for poppler.
-%description glib -l pl
+%description glib -l pl.UTF-8
Wrapper GLib dla popplera.
%package glib-devel
Summary: Header files for GLib wrapper for poppler
-Summary(pl): Pliki nag³ówkowe wrappera GLib dla popplera
+Summary(pl.UTF-8): Pliki nagłówkowe wrappera GLib dla popplera
Group: Development/Libraries
Requires: %{name}-devel = %{version}-%{release}
Requires: %{name}-glib = %{version}-%{release}
%{?with_cairo:Requires: cairo-devel >= %{cairo_ver}}
-Requires: gtk+2-devel >= 2:2.4.0
+Requires: glib2-devel >= 1:2.56
%description glib-devel
Header files for GLib wrapper for poppler.
-%description glib-devel -l pl
-Pliki nag³ówkowe wrappera GLib dla popplera.
+%description glib-devel -l pl.UTF-8
+Pliki nagłówkowe wrappera GLib dla popplera.
%package glib-static
Summary: Static version of GLib wrapper for poppler
-Summary(pl): Statyczna wersja wrappera GLib dla popplera
+Summary(pl.UTF-8): Statyczna wersja wrappera GLib dla popplera
Group: Development/Libraries
Requires: %{name}-glib-devel = %{version}-%{release}
%description glib-static
Static version of GLib wrapper for poppler.
-%description glib-static -l pl
+%description glib-static -l pl.UTF-8
Statyczna wersja wrappera GLib dla popplera.
-%package qt
-Summary: Qt wrapper for poppler
-Summary(pl): Wrapper Qt dla popplera
+%package qt5
+Summary: Qt5 wrapper for poppler
+Summary(pl.UTF-8): Wrapper Qt5 dla popplera
Group: Libraries
Requires: %{name} = %{version}-%{release}
-%description qt
-Qt wrapper for poppler.
+%description qt5
+Qt5 wrapper for poppler.
-%description qt -l pl
-Wrapper Qt dla popplera.
+%description qt5 -l pl.UTF-8
+Wrapper Qt5 dla popplera.
-%package qt-devel
-Summary: Header files for Qt wrapper for poppler
-Summary(pl): Pliki nag³ówkowe wrappera Qt dla popplera
+%package qt5-devel
+Summary: Header files for Qt5 wrapper for poppler
+Summary(pl.UTF-8): Pliki nagłówkowe wrappera Qt5 dla popplera
Group: Development/Libraries
Requires: %{name}-devel = %{version}-%{release}
-Requires: %{name}-qt = %{version}-%{release}
-Requires: qt-devel
+Requires: %{name}-qt5 = %{version}-%{release}
+Requires: Qt5Core-devel >= %{qt5_ver}
+Requires: Qt5Gui-devel >= %{qt5_ver}
+Requires: Qt5Widgets-devel >= %{qt5_ver}
+Requires: Qt5Xml-devel >= %{qt5_ver}
-%description qt-devel
-Header files for Qt wrapper for poppler.
+%description qt5-devel
+Header files for Qt5 wrapper for poppler.
-%description qt-devel -l pl
-Pliki nag³ówkowe wrappera Qt dla popplera.
+%description qt5-devel -l pl.UTF-8
+Pliki nagłówkowe wrapper Qt5 dla popplera.
-%package qt-static
-Summary: Static version of Qt wrapper for poppler
-Summary(pl): Statyczna wersja wrappera Qt dla popplera
+%package qt5-static
+Summary: Static version of Qt5 wrapper for poppler
+Summary(pl.UTF-8): Statyczna wersja wrappera Qt5 dla popplera
Group: Development/Libraries
-Requires: %{name}-qt-devel = %{version}-%{release}
+Requires: %{name}-qt5-devel = %{version}-%{release}
-%description qt-static
-Static version of Qt wrapper for poppler.
+%description qt5-static
+Static version of Qt5 wrapper for poppler.
-%description qt-static -l pl
-Statyczna wersja wrappera Qt dla popplera.
+%description qt5-static -l pl.UTF-8
+Statyczna wersja wrappera Qt5 dla popplera.
-%package Qt
-Summary: Qt4 wrapper for poppler
-Summary(pl): Wrapper Qt4 dla popplera
+%package qt6
+Summary: Qt6 wrapper for poppler
+Summary(pl.UTF-8): Wrapper Qt6 dla popplera
Group: Libraries
Requires: %{name} = %{version}-%{release}
-%description Qt
-Qt4 wrapper for poppler.
+%description qt6
+Qt6 wrapper for poppler.
-%description Qt -l pl
-Wrapper Qt4 dla popplera.
+%description qt6 -l pl.UTF-8
+Wrapper Qt6 dla popplera.
-%package Qt-devel
-Summary: Header files for Qt4 wrapper for poppler
-Summary(pl): Pliki nag³ówkowe wrappera Qt4 dla popplera
+%package qt6-devel
+Summary: Header files for Qt6 wrapper for poppler
+Summary(pl.UTF-8): Pliki nagłówkowe wrappera Qt6 dla popplera
Group: Development/Libraries
Requires: %{name}-devel = %{version}-%{release}
-Requires: %{name}-Qt = %{version}-%{release}
-Requires: QtGui-devel
-Requires: QtXml-devel
+Requires: %{name}-qt6 = %{version}-%{release}
+Requires: Qt6Core-devel >= %{qt5_ver}
+Requires: Qt6Gui-devel >= %{qt5_ver}
+Requires: Qt6Widgets-devel >= %{qt5_ver}
+Requires: Qt6Xml-devel >= %{qt5_ver}
-%description Qt-devel
-Header files for Qt4 wrapper for poppler.
+%description qt6-devel
+Header files for Qt6 wrapper for poppler.
-%description Qt-devel -l pl
-Pliki nag³ówkowe wrapper Qt4 dla popplera.
+%description qt6-devel -l pl.UTF-8
+Pliki nagłówkowe wrapper Qt6 dla popplera.
-%package Qt-static
-Summary: Static version of Qt4 wrapper for poppler
-Summary(pl): Statyczna wersja wrappera Qt4 dla popplera
+%package qt6-static
+Summary: Static version of Qt6 wrapper for poppler
+Summary(pl.UTF-8): Statyczna wersja wrappera Qt6 dla popplera
Group: Development/Libraries
-Requires: %{name}-Qt-devel = %{version}-%{release}
+Requires: %{name}-qt6-devel = %{version}-%{release}
-%description Qt-static
-Static version of Qt4 wrapper for poppler.
+%description qt6-static
+Static version of Qt6 wrapper for poppler.
-%description Qt-static -l pl
-Statyczna wersja wrappera Qt4 dla popplera.
+%description qt6-static -l pl.UTF-8
+Statyczna wersja wrappera Qt6 dla popplera.
%package progs
Summary: Set of tools for viewing information and converting PDF files
-Summary(pl): Zestaw narzêdzi do wy¶wietlania informacji i konwertowania plików PDF
+Summary(pl.UTF-8): Zestaw narzędzi do wyświetlania informacji i konwertowania plików PDF
Group: Applications/Publishing
Provides: pdftops
-Obsoletes: pdftohtml
-Obsoletes: pdftohtml-pdftops
+Obsoletes: pdftohtml < 0.40
+Obsoletes: pdftohtml-pdftops < 0.40
+Obsoletes: poppler-utils < 0.5.0-2
Obsoletes: xpdf-tools
-Obsoletes: poppler-utils
%description progs
Package contains utilites for PDF files. These utilities allow to
-- extract information about PDF files
-- extract images from PDF files
-- convert PDF files to HTML, plain text and PS formats
+- extract information about PDF files,
+- extract images from PDF files,
+- convert PDF files to HTML, plain text and PS formats.
-%description progs -l pl
-Pakiet zawiera zestaw narzêdzi do plików PDF. Programy te umo¿liwiaj±
-- wy¶wietlanie informacji o plikach PDF
-- wydobywanie obrazków z plików PDF
-- konwersjê plików PDF do formatów takich jak HTML, PS czy te¿ czystego
- tekstu
+%description progs -l pl.UTF-8
+Pakiet zawiera zestaw narzędzi do plików PDF. Programy te umożliwiają
+- wyświetlanie informacji o plikach PDF,
+- wydobywanie obrazków z plików PDF,
+- konwersję plików PDF do formatów takich jak HTML, PS czy też
+ czystego tekstu.
%prep
%setup -q
%patch0 -p1
%patch1 -p1
-%patch2 -p1
+
+%{__sed} -i -e '/set(_known_build_types/ s/)/;PLD)/' cmake/modules/PopplerMacros.cmake
%build
-%{?with_apidocs:%{__gtkdocize}}
-%{__libtoolize}
-%{__aclocal} -I m4
-%{__autoconf} -f
-%{__autoheader}
-%{__automake}
-%configure \
- %{!?with_cairo:--disable-cairo-output} \
- %{!?with_qt:--disable-poppler-qt} \
- %{!?with_qt4:--disable-poppler-qt4} \
- --enable-a4-paper \
- %{?with_apidocs:--enable-gtk-doc} \
- --enable-xpdf-headers \
- --enable-zlib \
- --with-html-dir=%{_gtkdocdir}
+install -d build
+cd build
+%cmake .. \
+ %{!?with_cpp:-DENABLE_CPP=OFF} \
+ %{!?with_glib:-DENABLE_GLIB=OFF} \
+ %{?with_apidocs:-DENABLE_GTK_DOC=ON} \
+ -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}
+
+%{__make}
+cd ..
+
+%if %{with static_libs}
+install -d build-static
+cd build-static
+%cmake .. \
+ -DBUILD_SHARED_LIBS=OFF \
+ %{!?with_cpp:-DENABLE_CPP=OFF} \
+ %{!?with_glib:-DENABLE_GLIB=OFF} \
+ -DENABLE_GTK_DOC=OFF \
+ -DENABLE_GTK_TESTS=OFF \
+ -DENABLE_LIBCURL=ON \
+ %{!?with_qt5:-DENABLE_QT5=OFF} \
+ -DENABLE_ZLIB=ON \
+ %{!?with_cairo:-DWITH_CAIRO=OFF}
+
%{__make}
+%endif
%install
rm -rf $RPM_BUILD_ROOT
-%{__make} install \
+%if %{with static_libs}
+%{__make} -C build-static install \
+ DESTDIR=$RPM_BUILD_ROOT
+%endif
+
+%{__make} -C build install \
DESTDIR=$RPM_BUILD_ROOT
%clean
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
+%post cpp -p /sbin/ldconfig
+%postun cpp -p /sbin/ldconfig
+
%post glib -p /sbin/ldconfig
%postun glib -p /sbin/ldconfig
-%post qt -p /sbin/ldconfig
-%postun qt -p /sbin/ldconfig
-
-%post Qt -p /sbin/ldconfig
-%postun Qt -p /sbin/ldconfig
+%post qt5 -p /sbin/ldconfig
+%postun qt5 -p /sbin/ldconfig
%files
%defattr(644,root,root,755)
-%doc AUTHORS ChangeLog NEWS README* TODO
+%doc AUTHORS ChangeLog NEWS README*
%attr(755,root,root) %{_libdir}/libpoppler.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libpoppler.so.126
%files devel
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/libpoppler.so
-%{_libdir}/libpoppler.la
-%{_includedir}/poppler
-%exclude %{_includedir}/poppler/glib
-# %{_includedir}/poppler/poppler-page-transition.h is shared between qt and qt4
-%{?with_qt:%exclude %{_includedir}/poppler/poppler-qt.h}
-%{?with_qt4:%exclude %{_includedir}/poppler/poppler-annotation.h}
-%{?with_qt4:%exclude %{_includedir}/poppler/poppler-link.h}
-%{?with_qt4:%exclude %{_includedir}/poppler/poppler-qt4.h}
+%dir %{_includedir}/poppler
+%{_includedir}/poppler/poppler-config.h
+%{_includedir}/poppler/poppler_private_export.h
+%{_includedir}/poppler/[ABCDEFGHJLMNOPRSTUVX]*.h
+%{_includedir}/poppler/fofi
+%{_includedir}/poppler/goo
+%{_includedir}/poppler/splash
%{_pkgconfigdir}/poppler.pc
-%{?with_cairo:%{_pkgconfigdir}/poppler-cairo.pc}
-%{_pkgconfigdir}/poppler-splash.pc
-
-%{_gtkdocdir}/poppler
+%if %{with static_libs}
%files static
%defattr(644,root,root,755)
%{_libdir}/libpoppler.a
+%endif
+
+%if %{with apidocs}
+%files apidocs
+%defattr(644,root,root,755)
+%{_gtkdocdir}/poppler
+%endif
+
+%if %{with cpp}
+%files cpp
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libpoppler-cpp.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libpoppler-cpp.so.0
+
+%files cpp-devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libpoppler-cpp.so
+%{_includedir}/poppler/cpp
+%{_pkgconfigdir}/poppler-cpp.pc
+
+%if %{with static_libs}
+%files cpp-static
+%defattr(644,root,root,755)
+%{_libdir}/libpoppler-cpp.a
+%endif
+%endif
+%if %{with glib}
%files glib
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/libpoppler-glib.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libpoppler-glib.so.8
+%{_libdir}/girepository-1.0/Poppler-0.18.typelib
%files glib-devel
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/libpoppler-glib.so
-%{_libdir}/libpoppler-glib.la
%{_includedir}/poppler/glib
%{_pkgconfigdir}/poppler-glib.pc
+%{_datadir}/gir-1.0/Poppler-0.18.gir
+%if %{with static_libs}
%files glib-static
%defattr(644,root,root,755)
%{_libdir}/libpoppler-glib.a
+%endif
+%endif
-%if %{with qt}
-%files qt
+%if %{with qt5}
+%files qt5
%defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/libpoppler-qt.so.*.*.*
+%attr(755,root,root) %{_libdir}/libpoppler-qt5.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libpoppler-qt5.so.1
-%files qt-devel
+%files qt5-devel
%defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/libpoppler-qt.so
-%{_libdir}/libpoppler-qt.la
-%{_includedir}/poppler/poppler-qt.h
-%{_pkgconfigdir}/poppler-qt.pc
+%attr(755,root,root) %{_libdir}/libpoppler-qt5.so
+%{_includedir}/poppler/qt5
+%{_pkgconfigdir}/poppler-qt5.pc
-%files qt-static
+%if %{with static_libs}
+%files qt5-static
%defattr(644,root,root,755)
-%{_libdir}/libpoppler-qt.a
+%{_libdir}/libpoppler-qt5.a
+%endif
%endif
-%if %{with qt4}
-%files Qt
+%if %{with qt6}
+%files qt6
%defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/libpoppler-qt4.so.*.*.*
+%attr(755,root,root) %{_libdir}/libpoppler-qt6.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libpoppler-qt6.so.3
-%files Qt-devel
+%files qt6-devel
%defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/libpoppler-qt4.so
-%{_libdir}/libpoppler-qt4.la
-%{_includedir}/poppler/poppler-annotation.h
-%{_includedir}/poppler/poppler-link.h
-%{_includedir}/poppler/poppler-qt4.h
-%{_pkgconfigdir}/poppler-qt4.pc
-
-%files Qt-static
+%attr(755,root,root) %{_libdir}/libpoppler-qt6.so
+%{_includedir}/poppler/qt6
+%{_pkgconfigdir}/poppler-qt6.pc
+
+%if %{with static_libs}
+%files qt6-static
%defattr(644,root,root,755)
-%{_libdir}/libpoppler-qt4.a
+%{_libdir}/libpoppler-qt6.a
+%endif
%endif
%files progs
%defattr(644,root,root,755)
-%attr(755,root,root) %{_bindir}/pdf*
-%{_mandir}/man1/pdf*
+%attr(755,root,root) %{_bindir}/pdfattach
+%attr(755,root,root) %{_bindir}/pdfdetach
+%attr(755,root,root) %{_bindir}/pdffonts
+%attr(755,root,root) %{_bindir}/pdfimages
+%attr(755,root,root) %{_bindir}/pdfinfo
+%attr(755,root,root) %{_bindir}/pdfseparate
+%attr(755,root,root) %{_bindir}/pdfsig
+%attr(755,root,root) %{_bindir}/pdftocairo
+%attr(755,root,root) %{_bindir}/pdftohtml
+%attr(755,root,root) %{_bindir}/pdftoppm
+%attr(755,root,root) %{_bindir}/pdftops
+%attr(755,root,root) %{_bindir}/pdftotext
+%attr(755,root,root) %{_bindir}/pdfunite
+%{_mandir}/man1/pdfattach.1*
+%{_mandir}/man1/pdfdetach.1*
+%{_mandir}/man1/pdffonts.1*
+%{_mandir}/man1/pdfimages.1*
+%{_mandir}/man1/pdfinfo.1*
+%{_mandir}/man1/pdfseparate.1*
+%{_mandir}/man1/pdfsig.1*
+%{_mandir}/man1/pdftocairo.1*
+%{_mandir}/man1/pdftohtml.1*
+%{_mandir}/man1/pdftoppm.1*
+%{_mandir}/man1/pdftops.1*
+%{_mandir}/man1/pdftotext.1*
+%{_mandir}/man1/pdfunite.1*