diffpdf/diffpdf.spec

101 lines
3.0 KiB
RPMSpec
Raw Normal View History

2008-12-14 12:37:44 +00:00
Name: diffpdf
2011-07-25 16:33:38 +00:00
Version: 1.2.2
Release: 1%{?dist}
2008-12-14 12:37:44 +00:00
Summary: PDF files comparator
Group: Applications/Text
License: GPLv2+
URL: http://www.qtrac.eu/diffpdf.html
2010-05-01 15:04:02 +00:00
Source0: http://www.qtrac.eu/%{name}-%{version}.tar.gz
2008-12-14 12:37:44 +00:00
Source3: %{name}.desktop
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
2008-12-14 13:00:26 +00:00
BuildRequires: poppler-qt4-devel, desktop-file-utils, ImageMagick
2008-12-14 12:37:44 +00:00
Requires: hicolor-icon-theme
%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
%build
qmake-qt4
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_bindir}
install -m 755 diffpdf $RPM_BUILD_ROOT%{_bindir}
for f in 32 16; do
mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/"$f"x$f/apps
convert images/icon.png -size "$f"x$f diffpdf-$f.png
install -p diffpdf-$f.png $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/"$f"x$f/apps/diffpdf.png
done
desktop-file-install \
--dir=$RPM_BUILD_ROOT%{_datadir}/applications \
%{SOURCE3}
%post
touch --no-create %{_datadir}/icons/hicolor
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
fi
%postun
touch --no-create %{_datadir}/icons/hicolor
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
fi
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
2010-05-01 15:15:52 +00:00
%doc gpl-2.0.txt README
2010-05-01 15:04:02 +00:00
%{_bindir}/%{name}
2008-12-14 12:37:44 +00:00
%{_datadir}/icons/hicolor/??x??/apps/*.png
%{_datadir}/applications/%{name}.desktop
%changelog
2011-07-25 16:33:38 +00:00
* Mon Jul 25 2011 Till Maas <opensource@till.name> - 1.2.2-1
- Update to new release
2011-07-15 15:30:19 +00:00
* Fri Jul 15 2011 Marek Kasik <mkasik@redhat.com> - 1.0.0-3
- Rebuild (poppler-0.17.0)
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
2010-05-19 11:24:34 +00:00
* Wed May 19 2010 Thomas Janssen <thomasj@fedoraproject.org> 1.0.0-1
- diffpdf 1.0.0 new/improved algorithm
2010-05-01 15:04:02 +00:00
* Sat May 01 2010 Thomas Janssen <thomasj@fedoraproject.org> 0.6.0-1
- diffpdf 0.6.0
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.8-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.8-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
2008-12-14 13:00:26 +00:00
* Sun Dec 14 2008 Rafał Psota <rafalzaq@gmail.com> - 0.3.8-4
- forgot about ImageMagick
2008-12-14 12:37:44 +00:00
* Fri Dec 12 2008 Rafał Psota <rafalzaq@gmail.com> - 0.3.8-3
- drop vendor for desktop file
* Thu Nov 27 2008 Rafał Psota <rafalzaq@gmail.com> - 0.3.8-2
- forgot about desktop file
* Tue Nov 11 2008 Rafał Psota <rafalzaq@gmail.com> - 0.3.8-1
- Initial release