2011-04-21 16:11:35 +02:00
|
|
|
#
|
2011-07-25 13:34:30 +02:00
|
|
|
# spec file for package pdf2djvu
|
2011-04-21 16:11:35 +02:00
|
|
|
#
|
2012-01-22 09:16:43 +01:00
|
|
|
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2011-04-21 16:11:35 +02:00
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
2012-02-28 10:55:44 +01:00
|
|
|
|
2011-04-21 16:11:35 +02:00
|
|
|
Name: pdf2djvu
|
2012-10-08 09:08:29 +02:00
|
|
|
Version: 0.7.15
|
2011-10-06 20:36:50 +02:00
|
|
|
Release: 0
|
2011-07-25 13:34:30 +02:00
|
|
|
Summary: PDF to DjVu Converter
|
2012-01-22 09:16:43 +01:00
|
|
|
License: GPL-2.0
|
2011-04-21 16:11:35 +02:00
|
|
|
Group: Productivity/Publishing/PDF
|
2012-01-22 09:16:43 +01:00
|
|
|
Url: http://pdf2djvu.googlecode.com/
|
2011-07-25 13:34:30 +02:00
|
|
|
Source0: http://pdf2djvu.googlecode.com/files/%{name}_%{version}.tar.gz
|
2012-11-13 13:47:10 +01:00
|
|
|
Patch1: pdf2djvu-poppler.patch
|
2011-04-21 16:11:35 +02:00
|
|
|
BuildRequires: djvulibre
|
|
|
|
BuildRequires: gcc-c++
|
2012-02-28 10:55:44 +01:00
|
|
|
BuildRequires: pkgconfig(GraphicsMagick++)
|
|
|
|
BuildRequires: pkgconfig(ddjvuapi)
|
|
|
|
BuildRequires: pkgconfig(libxslt)
|
|
|
|
BuildRequires: pkgconfig(poppler)
|
2011-04-21 16:11:35 +02:00
|
|
|
Requires: djvulibre
|
2012-02-28 10:55:44 +01:00
|
|
|
Recommends: %{name}-lang
|
2011-04-21 16:11:35 +02:00
|
|
|
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.
|
|
|
|
|
2012-02-28 10:55:44 +01:00
|
|
|
%lang_package
|
|
|
|
|
2011-04-21 16:11:35 +02:00
|
|
|
%prep
|
|
|
|
%setup -q
|
2012-11-13 13:47:10 +01:00
|
|
|
%if 0%{?suse_version} > 1220
|
|
|
|
%patch1 -p1
|
|
|
|
%endif
|
2011-04-21 16:11:35 +02:00
|
|
|
|
|
|
|
%build
|
|
|
|
%configure
|
2011-10-06 20:36:50 +02:00
|
|
|
make %{?_smp_mflags}
|
2011-04-21 16:11:35 +02:00
|
|
|
|
|
|
|
%install
|
2012-01-22 09:16:43 +01:00
|
|
|
%make_install
|
2012-02-28 10:55:44 +01:00
|
|
|
%find_lang %{name} --with-man
|
2011-04-21 16:11:35 +02:00
|
|
|
|
2012-02-28 10:55:44 +01:00
|
|
|
%files
|
2011-04-21 16:11:35 +02:00
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc COPYING doc/changelog doc/cjk.txt doc/credits.txt
|
|
|
|
%doc doc/djvudigital.txt
|
|
|
|
%{_bindir}/%{name}
|
|
|
|
%doc %{_mandir}/man?/*
|
2012-02-28 10:55:44 +01:00
|
|
|
|
|
|
|
%files lang -f %{name}.lang
|
|
|
|
%defattr(-,root,root,-)
|
2012-10-08 09:08:29 +02:00
|
|
|
%doc %dir %{_mandir}/??/
|
|
|
|
%doc %dir %{_mandir}/??/man1/
|
2011-04-21 16:11:35 +02:00
|
|
|
|
|
|
|
%changelog
|