-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pdf2djvu.spec
42 lines (35 loc) · 1.01 KB
/
pdf2djvu.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
Summary: PDF to DJVu file converter
Name: pdf2djvu
Version: 0.9.19
Release: 18
Source0: https://github.com/jwilk/pdf2djvu/releases/download/%{version}/%{name}-%{version}.tar.xz
License: GPLv2
Group: Publishing
Url: https://jwilk.net/software/pdf2djvu
BuildRequires: djvulibre-devel >= 3.5.21
BuildRequires: djvulibre >= 3.5.21
BuildRequires: poppler-devel >= 0.7.3
BuildRequires: libgomp-devel
BuildRequires: pkgconfig(libxslt)
BuildRequires: graphicsmagick-devel
%patchlist
pdf2djvu-poppler-24.11.patch
%description
pdf2djvu creates DjVu files from PDF files. It's able to extract
graphics, text layer, hyperlinks, document outline (bookmarks), and
metadata.
%prep
%autosetup -p1
CXXFLAGS="%{optflags} -std=gnu++20" \
%configure
%build
%make_build
%install
%make_install
%__install -m 644 -D doc/%{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1
%find_lang %{name}
%files -f %{name}.lang
%doc doc/COPYING doc/changelog doc/credits doc/djvudigital
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*
%{_mandir}/*/man1/%{name}.1*