/[packages]/updates/5/mupdf/current/SPECS/mupdf.spec
ViewVC logotype

Contents of /updates/5/mupdf/current/SPECS/mupdf.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1186039 - (show annotations) (download)
Thu Dec 28 04:56:23 2017 UTC (6 years, 3 months ago) by luigiwalser
File size: 2874 byte(s)
add patches from debian to fix security issues (mga#20310)
1 %define develname %mklibname -d %{name}
2
3 Name: mupdf
4 Version: 1.5
5 %define subrel 5
6 Release: %mkrel 4
7 Summary: MuPDF is a lightweight PDF viewer and toolkit written in portable C
8 License: AGPLv3+
9 Group: Publishing
10 URL: http://mupdf.com/
11 Source0: http://mupdf.com/download/mupdf-%{version}-source.tar.gz
12 Source1: mupdf.desktop
13 Patch0: mupdf-1.5-fedora-openjpeg.patch
14 Patch1: mupdf-1.5-upstream-format-fix.patch
15 Patch2: mupdf-1.8-freebsd-undefine-OPJ_STATIC.patch
16 Patch3: mupdf-1.5-CVE-2016-6265.patch
17 Patch4: mupdf-1.5-CVE-2016-6525.patch
18 Patch5: mupdf-1.5-CVE-2016-8674.patch
19 Patch6: mupdf-1.5-CVE-2017-15587.patch
20 Patch7: mupdf-1.5-CVE-2017-5896.patch
21 Patch8: mupdf-1.5-CVE-2017-5991.patch
22
23 BuildRequires: libx11-devel
24 BuildRequires: libxext-devel
25 BuildRequires: zlib-devel
26 BuildRequires: libjpeg-devel
27 BuildRequires: freetype2-devel
28 BuildRequires: jbig2dec-devel
29 BuildRequires: openjpeg2-devel
30 BuildRequires: desktop-file-utils
31
32 %description
33 MuPDF is a lightweight PDF viewer and toolkit written in portable C.
34
35 The renderer in MuPDF is tailored for high quality anti-aliased
36 graphics. MuPDF renders text with metrics and spacing accurate to
37 within fractions of a pixel for the highest fidelity in reproducing
38 the look of a printed page on screen.
39
40 MuPDF has a small footprint. A binary that includes the standard
41 Roman fonts is only one megabyte. A build with full CJK support
42 (including an Asian font) is approximately five megabytes.
43
44 MuPDF has support for all non-interactive PDF 1.7 features, and the
45 toolkit provides a simple API for accessing the internal structures of
46 the PDF document. Example code for navigating interactive links and
47 bookmarks, encrypting PDF files, extracting fonts, images, and
48 searchable text, and rendering pages to image files is provided.
49
50 %package -n %{develname}
51 Summary: Development files for %{name}
52 Group: Development/C
53 Requires: %{name} = %{version}-%{release}
54
55 %description -n %{develname}
56 This package contains the development files and headers for %{name}.
57
58 %prep
59 %setup -q -n mupdf-%{version}-source
60 rm -rf thirdparty
61 %apply_patches
62
63 %build
64 %make
65
66 %install
67 %makeinstall
68
69 # Add a symlink that matches the pkgname/manpage (mga#19105)
70 ln -s %{name}-x11 %{buildroot}%{_bindir}/%{name}
71
72 ## fix strange permissons (Fedora)
73 chmod 0644 %{buildroot}%{_libdir}/*.a
74 find %{buildroot}/%{_mandir} -type f -exec chmod 0644 {} \;
75 find %{buildroot}/%{_docdir} -type f -exec chmod 0644 {} \;
76 find %{buildroot}/%{_includedir} -type f -exec chmod 0644 {} \;
77
78 desktop-file-install \
79 --dir=%{buildroot}%{_datadir}/applications/ %{SOURCE1}
80
81 %files
82 %doc README COPYING
83 %{_bindir}/*
84 %{_mandir}/man1/*
85 %{_datadir}/applications/%{name}.desktop
86
87 %files -n %{develname}
88 %doc docs/
89 %{_libdir}/*.a
90 %{_includedir}/mupdf

  ViewVC Help
Powered by ViewVC 1.1.30