File pdfcompare.spec of Package pdfcompare
#
# spec file for package pdfcompare
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: pdfcompare
Version: 1.6.5
Release: 0
Summary: Compare two PDF files, write a resulting PDF with highlighted changes
License: GPL-2.0
Group: Productivity/Publishing/PDF
Url: https://github.com/jnweiger/pdfcompare
Source: pdfcompare-%version.tar.bz2
# These BuildRequires are only required for the testsuite
BuildRequires: poppler-tools
BuildRequires: python-base
BuildRequires: python-pygame
BuildRequires: python-pypdf
BuildRequires: python-reportlab
BuildRequires: python-xml
%if 0%{?suse_version} >= 1210
# some testsuite tools are not available before openSUSE 12.1
BuildRequires: ImageMagick
BuildRequires: ghostscript
BuildRequires: pdftk
BuildRequires: python-scipy
BuildRequires: shunit2
%endif
Requires: poppler-tools
Requires: python-base
Requires: python-pygame
Requires: python-pypdf
Requires: python-reportlab
Requires: python-xml
## only needed for --spell
Requires: hunspell
Recommends: myspell-american
Recommends: myspell-german-old
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%description
Compare two PDF files, write a resulting PDF with highlighted changes.
Potential text portions that were moved around are recognized and analyzed
for similarity with a second level diff.
%prep
%setup
%build
%check
cd test
export PATH=$PATH:%{buildroot}%{_bindir}
./helptest.sh %{version}
%if 0%{?suse_version} >= 1210
# testsuite tools are not available before openSUSE 12.1
# false postitives todays.
./restest.sh && true
%endif
%install
install -Dm 0755 pdfcompare.py %{buildroot}%{_bindir}/pdfcompare
%files
%defattr(-, root, root, -)
%{_bindir}/pdfcompare
%doc COPYING
%changelog