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
|
|
|
#
|
2023-01-09 16:19:07 +01:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
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.
|
|
|
|
|
2018-10-17 08:55:05 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-04-21 16:11:35 +02:00
|
|
|
#
|
|
|
|
|
2012-02-28 10:55:44 +01:00
|
|
|
|
2011-04-21 16:11:35 +02:00
|
|
|
Name: pdf2djvu
|
2022-09-16 11:01:52 +02:00
|
|
|
Version: 0.9.19
|
2011-10-06 20:36:50 +02:00
|
|
|
Release: 0
|
2011-07-25 13:34:30 +02:00
|
|
|
Summary: PDF to DjVu Converter
|
2018-04-19 11:19:32 +02:00
|
|
|
License: GPL-2.0-only
|
2011-04-21 16:11:35 +02:00
|
|
|
Group: Productivity/Publishing/PDF
|
2019-06-17 09:21:18 +02:00
|
|
|
URL: https://jwilk.net/software/pdf2djvu
|
2017-01-05 10:49:08 +01:00
|
|
|
Source0: https://github.com/jwilk/%{name}/releases/download/%{version}/%{name}-%{version}.tar.xz
|
|
|
|
Source1: https://github.com/jwilk/%{name}/releases/download/%{version}/%{name}-%{version}.tar.xz.asc
|
2013-05-31 19:00:32 +02:00
|
|
|
Source2: %{name}.keyring
|
2011-04-21 16:11:35 +02:00
|
|
|
BuildRequires: djvulibre
|
|
|
|
BuildRequires: gcc-c++
|
2018-04-19 11:19:32 +02:00
|
|
|
BuildRequires: pkgconfig
|
2023-01-09 16:19:07 +01:00
|
|
|
BuildRequires: pkgconfig(GraphicsMagick++)
|
2018-10-17 08:55:05 +02:00
|
|
|
BuildRequires: pkgconfig(ddjvuapi) >= 3.5.25
|
2015-09-30 21:24:14 +02:00
|
|
|
BuildRequires: pkgconfig(exiv2)
|
2022-09-16 11:01:52 +02:00
|
|
|
BuildRequires: pkgconfig(poppler) >= 0.62
|
2015-09-30 21:24:14 +02:00
|
|
|
BuildRequires: pkgconfig(uuid)
|
2011-04-21 16:11:35 +02:00
|
|
|
Requires: djvulibre
|
|
|
|
|
|
|
|
%description
|
|
|
|
pdf2djvu creates DjVu files from PDF files. It's able to extract:
|
|
|
|
graphics, text layer, hyperlinks, document outline (bookmarks) and
|
2019-06-17 09:21:18 +02:00
|
|
|
metadata (including XMP metadata).
|
2011-04-21 16:11:35 +02:00
|
|
|
|
2012-02-28 10:55:44 +01:00
|
|
|
%lang_package
|
|
|
|
|
2011-04-21 16:11:35 +02:00
|
|
|
%prep
|
2022-03-17 04:40:56 +01:00
|
|
|
%autosetup -p1
|
2011-04-21 16:11:35 +02:00
|
|
|
|
|
|
|
%build
|
2024-07-04 10:48:21 +02:00
|
|
|
%if 0%{?suse_version} == 1500
|
2022-04-14 12:58:51 +02:00
|
|
|
export CXXFLAGS="%{optflags} -std=c++17"
|
2024-07-04 10:48:21 +02:00
|
|
|
%else
|
|
|
|
export CXXFLAGS="%{optflags} -std=c++20"
|
2022-04-14 12:58:51 +02:00
|
|
|
%endif
|
2011-04-21 16:11:35 +02:00
|
|
|
%configure
|
2020-04-04 17:10:07 +02:00
|
|
|
%make_build
|
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
|
2018-04-19 11:19:32 +02:00
|
|
|
%license doc/COPYING
|
|
|
|
%doc doc/changelog doc/credits doc/djvudigital doc/README
|
2011-04-21 16:11:35 +02:00
|
|
|
%{_bindir}/%{name}
|
2015-03-11 20:40:36 +01:00
|
|
|
%{_mandir}/man?/*
|
2012-02-28 10:55:44 +01:00
|
|
|
|
|
|
|
%files lang -f %{name}.lang
|
2011-04-21 16:11:35 +02:00
|
|
|
|
|
|
|
%changelog
|