Name: diffpdf Version: 2.1.3 Release: %mkrel 8 Summary: PDF files comparator Group: File tools License: GPLv2+ URL: http://www.qtrac.eu/diffpdf-foss.html Source0: http://www.qtrac.eu/%{name}-%{version}.tar.gz Source1: %{name}.desktop # Initially from Debian: Patch0: diffpdf-2.1.3-fix_manpage.patch Patch1: diffpdf-2.1.3-buildflags.patch Patch2: diffpdf-2.1.3-qt5.patch BuildRequires: pkgconfig(Qt5Core) BuildRequires: pkgconfig(Qt5Gui) BuildRequires: pkgconfig(Qt5PrintSupport) BuildRequires: pkgconfig(Qt5Widgets) BuildRequires: pkgconfig(poppler-qt5) BuildRequires: desktop-file-utils BuildRequires: ImageMagick BuildRequires: qttools5 %description DiffPDF is used to compare two PDF files. By default the comparison is of the text on each pair of pages, but comparing the appearance of pages is also supported (for example, if a diagram is changed or a paragraph reformatted). It is also possible to compare particular pages or page ranges. %prep %setup -q %autopatch -p1 %build %{_qt5_bindir}/lrelease diffpdf.pro %qmake_qt5 %make_build %install install -D -m 755 %{name} %{buildroot}%{_bindir}/%{name} for f in 32 16; do mkdir -p %{buildroot}%{_datadir}/icons/hicolor/"$f"x$f/apps convert images/icon.png -size "$f"x$f diffpdf-$f.png install -p diffpdf-$f.png %{buildroot}%{_datadir}/icons/hicolor/"$f"x$f/apps/diffpdf.png done desktop-file-install \ --dir=%{buildroot}%{_datadir}/applications \ %{SOURCE1} %files %doc CHANGES help_cz.html help_de.html help_fr.html help.html README %{_bindir}/%{name} %{_datadir}/icons/hicolor/??x??/apps/*.png %{_datadir}/applications/%{name}.desktop %changelog * Sat Mar 30 2019 umeabot <umeabot> 2.1.3-8.mga7 + Revision: 1381533 - Qt5 Rebuild * Sun Sep 23 2018 umeabot <umeabot> 2.1.3-7.mga7 + Revision: 1297442 - Mageia 7 Mass Rebuild * Thu Apr 19 2018 daviddavid <daviddavid> 2.1.3-6.mga7 + Revision: 1220062 - add patch from Debian to port to Qt5 and poppler-qt5 * Mon Nov 28 2016 luigiwalser <luigiwalser> 2.1.3-5.mga6 + Revision: 1070613 - rebuild for poppler * Wed Feb 03 2016 umeabot <umeabot> 2.1.3-4.mga6 + Revision: 933800 - Mageia 6 Mass Rebuild * Wed Oct 15 2014 umeabot <umeabot> 2.1.3-3.mga5 + Revision: 749827 - Second Mageia 5 Mass Rebuild * Tue Sep 16 2014 umeabot <umeabot> 2.1.3-2.mga5 + Revision: 678739 - Mageia 5 Mass Rebuild * Tue Mar 04 2014 akien <akien> 2.1.3-1.mga5 + Revision: 599454 - New 2.1.3 release - Change URL to the archive GPLv2 diffpdf homepage, newer releases than 2.1.3 are proprietary * Fri Oct 18 2013 umeabot <umeabot> 2.1.2-2.mga4 + Revision: 522344 - Mageia 4 Mass Rebuild * Wed Feb 20 2013 stormi <stormi> 2.1.2-1.mga3 + Revision: 399525 - Import diffpdf from fedora - Created package structure for diffpdf.