# # spec file for package pdf2djvu # # Copyright (c) 2011 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: pdf2djvu Version: 0.7.10 Release: 1 License: GPL-2.0 Summary: PDF to DjVu Converter Url: http://pdf2djvu.googlecode.com/ Group: Productivity/Publishing/PDF Source0: http://pdf2djvu.googlecode.com/files/%{name}_%{version}.tar.gz # PATCH-FIX-UPSTREAM pdf2djvu-poppler-0.18.patch vuntz@opensuse.org -- Fix build with poppler 0.17/0.18. Sent upstream: http://code.google.com/p/pdf2djvu/issues/detail?id=61 Patch0: pdf2djvu-poppler-0.18.patch BuildRequires: djvulibre BuildRequires: gcc-c++ BuildRequires: libdjvulibre-devel BuildRequires: libGraphicsMagick++-devel BuildRequires: libpoppler-devel BuildRequires: libxslt-devel # Requires to run tests correctly. BuildRequires: ghostscript-fonts-std Requires: djvulibre 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. %prep %setup -q %patch0 -p1 %build %configure %__make %{?_smp_mflags} %install %makeinstall %find_lang %{name} %check %__make test %clean %{?buildroot:%__rm -rf "%{buildroot}"} %files -f %{name}.lang %defattr(-,root,root,-) %doc COPYING doc/changelog doc/cjk.txt doc/credits.txt %doc doc/djvudigital.txt %{_bindir}/%{name} %doc %{_mandir}/man?/* %doc %{_mandir}/?? %changelog