update to 2.1.3.1 [release 2.1.3.1-1mamba;Thu Aug 02 2018]

This commit is contained in:
Silvan Calarco 2024-02-27 10:06:36 +01:00
parent efd0fbf14f
commit 312744d5a0

View File

@ -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 <stefano.cotta@openmamba.org>
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
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 <silvan.calarco@mambasoft.it> 2.1.3.1-1mamba
- update to 2.1.3.1
* Thu Jun 06 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 1.1.4-2mamba
- rebuilt with libpoppler 0.20.5