File pdfcompare.spec of Package pdfcompare

#
# spec file for package pdfcompare
#
# Copyright (c) 2017 SUSE LINUX 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.8
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
Source100:      pull_github.sh
# 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
## only needed for --spell
Requires:       hunspell
Requires:       poppler-tools
Requires:       python-base
Requires:       python-pygame
Requires:       python-pypdf
Requires:       python-reportlab
Requires:       python-xml
Recommends:     myspell-american
Recommends:     myspell-german-old
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 -q

%build

%check
cd test
export PATH=$PATH:%{buildroot}%{_bindir}
./helptest.sh %{version}

%install
test -f pdfcompare.py || mv pdf_highlight.py pdfcompare.py
install -Dm 0755 pdfcompare.py %{buildroot}%{_bindir}/pdfcompare

%files
%{_bindir}/pdfcompare
%doc COPYING

%changelog
openSUSE Build Service is sponsored by