File pdf2djvu.spec of Package pdf2djvu

#
# spec file for package pdf2djvu
#
# Copyright (c) 2015 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:           pdf2djvu
Version:        0.8.1
Release:        0
Summary:        PDF to DjVu Converter
License:        GPL-2.0
Group:          Productivity/Publishing/PDF
Url:            http://jwilk.net/software/pdf2djvu
Source0:        https://bitbucket.org/jwilk/pdf2djvu/downloads/%{name}-%{version}.tar.xz
Source1:        https://bitbucket.org/jwilk/pdf2djvu/downloads/%{name}-%{version}.tar.xz.asc
Source2:        %{name}.keyring
BuildRequires:  djvulibre
BuildRequires:  gcc-c++
BuildRequires:  pkgconfig(GraphicsMagick++)
BuildRequires:  pkgconfig(ddjvuapi) >= 3.5.21
BuildRequires:  pkgconfig(libxslt)
BuildRequires:  pkgconfig(poppler) >= 0.11.1
# Requires to run tests correctly.
BuildRequires:  liberation-fonts
BuildRequires:  python-imaging
BuildRequires:  python-nose
Requires:       djvulibre
Recommends:     %{name}-lang
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
pdf2djvu creates DjVu files from PDF files. It's able to extract:
graphics, text layer, hyperlinks, document outline (bookmarks) and
metadata.

%lang_package

%prep
%setup -q

%build
%configure
make %{?_smp_mflags}

%install
%make_install
%find_lang %{name} --with-man

%check
%if 0%{?suse_version} >= 1210
make test
%endif

%files
%defattr(-,root,root,-)
%doc doc/{changelog,COPYING,cjk.txt,credits.txt,djvudigital.txt}
%{_bindir}/%{name}
%{_mandir}/man?/*

%files lang -f %{name}.lang
%defattr(-,root,root,-)
%dir %{_mandir}/uk/
%dir %{_mandir}/uk/man1/

%changelog
openSUSE Build Service is sponsored by