1 |
%define develname %mklibname -d %{name} |
2 |
|
3 |
Name: mupdf |
4 |
Version: 1.5 |
5 |
Release: %mkrel 3 |
6 |
Summary: MuPDF is a lightweight PDF viewer and toolkit written in portable C |
7 |
License: GPLv3+ |
8 |
Group: Publishing |
9 |
URL: http://mupdf.com/ |
10 |
Source0: http://mupdf.com/download/mupdf-%{version}-source.tar.gz |
11 |
Source1: mupdf.desktop |
12 |
Patch0: mupdf-1.5-fedora-openjpeg.patch |
13 |
Patch1: mupdf-1.5-upstream-format-fix.patch |
14 |
BuildRequires: libx11-devel |
15 |
BuildRequires: libxext-devel |
16 |
BuildRequires: zlib-devel |
17 |
BuildRequires: libjpeg-devel |
18 |
BuildRequires: freetype2-devel |
19 |
BuildRequires: jbig2dec-devel |
20 |
BuildRequires: openjpeg2-devel |
21 |
BuildRequires: desktop-file-utils |
22 |
|
23 |
%description |
24 |
MuPDF is a lightweight PDF viewer and toolkit written in portable C. |
25 |
|
26 |
The renderer in MuPDF is tailored for high quality anti-aliased |
27 |
graphics. MuPDF renders text with metrics and spacing accurate to |
28 |
within fractions of a pixel for the highest fidelity in reproducing |
29 |
the look of a printed page on screen. |
30 |
|
31 |
MuPDF has a small footprint. A binary that includes the standard |
32 |
Roman fonts is only one megabyte. A build with full CJK support |
33 |
(including an Asian font) is approximately five megabytes. |
34 |
|
35 |
MuPDF has support for all non-interactive PDF 1.7 features, and the |
36 |
toolkit provides a simple API for accessing the internal structures of |
37 |
the PDF document. Example code for navigating interactive links and |
38 |
bookmarks, encrypting PDF files, extracting fonts, images, and |
39 |
searchable text, and rendering pages to image files is provided. |
40 |
|
41 |
%package -n %{develname} |
42 |
Summary: Development files for %{name} |
43 |
Group: Development/C |
44 |
Requires: %{name} = %{version}-%{release} |
45 |
|
46 |
%description -n %{develname} |
47 |
This package contains the development files and headers for %{name}. |
48 |
|
49 |
%prep |
50 |
%setup -q -n mupdf-%{version}-source |
51 |
rm -rf thirdparty |
52 |
%apply_patches |
53 |
|
54 |
%build |
55 |
%make |
56 |
|
57 |
%install |
58 |
%makeinstall |
59 |
|
60 |
## fix strange permissons (Fedora) |
61 |
chmod 0644 %{buildroot}%{_libdir}/*.a |
62 |
find %{buildroot}/%{_mandir} -type f -exec chmod 0644 {} \; |
63 |
find %{buildroot}/%{_docdir} -type f -exec chmod 0644 {} \; |
64 |
find %{buildroot}/%{_includedir} -type f -exec chmod 0644 {} \; |
65 |
|
66 |
desktop-file-install \ |
67 |
--dir=%{buildroot}%{_datadir}/applications/ %{SOURCE1} |
68 |
|
69 |
%files |
70 |
%doc README COPYING |
71 |
%{_bindir}/* |
72 |
%{_mandir}/man1/* |
73 |
%{_datadir}/applications/%{name}.desktop |
74 |
|
75 |
%files -n %{develname} |
76 |
%doc docs/ |
77 |
%{_libdir}/*.a |
78 |
%{_includedir}/mupdf |