diff --git a/diffpdf.spec b/diffpdf.spec index 4ee63f8..3c0ade8 100644 --- a/diffpdf.spec +++ b/diffpdf.spec @@ -1,50 +1,41 @@ Name: diffpdf -Version: 1.1.4 -Release: 2mamba +Version: 2.1.3.1 +Release: 1mamba Summary: PDF files comparator Group: Applications/Publishing Vendor: openmamba Distribution: openmamba -Packager: Stefano Cotta Ramusino +Packager: Silvan Calarco URL: http://www.qtrac.eu/diffpdf.html -Source: http://www.qtrac.eu/diffpdf-%{version}.tar.gz +Source: https://gitlab.com/eang/diffpdf.git/v%{version}/diffpdf-%{version}.tar.bz2 Source1: diffpdf.desktop License: GPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel BuildRequires: libgcc -BuildRequires: libpoppler-qt4-devel -BuildRequires: libqt4-devel +BuildRequires: libpoppler-devel +BuildRequires: libpoppler-qt5-devel BuildRequires: libstdc++6-devel +BuildRequires: qt5-qtbase-devel ## AUTOBUILDREQ-END -BuildRoot: %{_tmppath}/%{name}-%{version}-root %description DiffPDF can compare two PDF files. It offers two comparison modes: Text and Appearance. +%debug_package + %prep %setup -q %build -%{_qt4_qmake} -%make +%cmake + +%cmake_build %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" -install -D -m 755 diffpdf %{buildroot}%{_bindir}/diffpdf - -# generate and install icons -for f in 16 32; do - install -d %{buildroot}%{_datadir}/icons/hicolor/${f}x${f}/apps - convert images/icon.png -size ${f}x${f} \ - %{buildroot}%{_datadir}/icons/hicolor/${f}x${f}/apps/diffpdf.png -done - -# install desktop file -desktop-file-install \ - --dir=%{buildroot}%{_datadir}/applications \ - %{S:1} +%cmake_install %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" @@ -52,12 +43,17 @@ desktop-file-install \ %files %defattr(-,root,root) %{_bindir}/diffpdf -%{_datadir}/icons/hicolor/*/apps/*.png %{_datadir}/applications/*.desktop +%{_datadir}/icons/hicolor/*/apps/*.png +%dir %{_docdir}/DiffPDF +%{_docdir}/DiffPDF/* +%{_mandir}/man1/diffpdf.1* %doc gpl-2.0.txt -#%doc CHANGES README %changelog +* Thu Aug 02 2018 Silvan Calarco 2.1.3.1-1mamba +- update to 2.1.3.1 + * Thu Jun 06 2013 Silvan Calarco 1.1.4-2mamba - rebuilt with libpoppler 0.20.5