/[packages]/cauldron/mupdf/current/SPECS/mupdf.spec
ViewVC logotype

Contents of /cauldron/mupdf/current/SPECS/mupdf.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 195934 - (show annotations) (download)
Sat Jan 14 09:17:12 2012 UTC (12 years, 3 months ago) by wally
File size: 2385 byte(s)
- fix devel pkg requires
- use setup_compile_flags macro to set up our buildtime flags
- add patch to fix str fmt
- fix license
- fix devel pkg description
1 %define develname %mklibname -d %{name}
2
3 Name: mupdf
4 Version: 0.9
5 Release: %mkrel 2
6 Summary: MuPDF is a lightweight PDF viewer and toolkit written in portable C
7 License: GPLv3+
8 Group: Office
9 URL: http://mupdf.com/
10 Source0: http://mupdf.googlecode.com/files/mupdf-%{version}-source.tar.gz
11 Source1: mupdf.desktop
12 Patch0: mupdf-0.9-str-fmt.patch
13 BuildRequires: libx11-devel
14 BuildRequires: libxext-devel
15 BuildRequires: zlib-devel
16 BuildRequires: libjpeg-devel
17 BuildRequires: freetype2-devel
18 BuildRequires: jbig2dec-devel
19 BuildRequires: openjpeg-devel
20
21 %description
22 MuPDF is a lightweight PDF viewer and toolkit written in portable C.
23
24 The renderer in MuPDF is tailored for high quality anti-aliased
25 graphics. MuPDF renders text with metrics and spacing accurate to
26 within fractions of a pixel for the highest fidelity in reproducing
27 the look of a printed page on screen.
28
29 MuPDF has a small footprint. A binary that includes the standard
30 Roman fonts is only one megabyte. A build with full CJK support
31 (including an Asian font) is approximately five megabytes.
32
33 MuPDF has support for all non-interactive PDF 1.7 features, and the
34 toolkit provides a simple API for accessing the internal structures of
35 the PDF document. Example code for navigating interactive links and
36 bookmarks, encrypting PDF files, extracting fonts, images, and
37 searchable text, and rendering pages to image files is provided.
38
39 %package -n %{develname}
40 Summary: Development files for %{name}
41 Group: Development/C
42 Requires: %{name} = %{version}-%{release}
43
44 %description -n %{develname}
45 This package contains the development files and headers for %{name}.
46
47 %prep
48 %setup -q
49 %apply_patches
50
51 %build
52 %setup_compile_flags
53 %make
54
55 %install
56 rm -rf %{buildroot}
57 %makeinstall
58 install -D -m 644 %{SOURCE1} %{buildroot}%{_datadir}/applications/%{name}.desktop
59 install -D -m 644 debian/mupdf.png %{buildroot}%{_datadir}/pixmaps/%{name}.png
60
61 %files
62 %doc README
63 %{_bindir}/mupdf
64 %{_bindir}/pdfclean
65 %{_bindir}/pdfdraw
66 %{_bindir}/pdfextract
67 %{_bindir}/pdfinfo
68 %{_bindir}/pdfshow
69 %{_bindir}/xpsdraw
70 %{_mandir}/man1/*
71 %{_datadir}/applications/%{name}.desktop
72 %{_datadir}/pixmaps/%{name}.png
73
74 %files -n %{develname}
75 %{_libdir}/libfitz.a
76 %{_libdir}/libmupdf.a
77 %{_libdir}/libmuxps.a
78 %{_includedir}/fitz.h
79 %{_includedir}/mupdf.h
80 %{_includedir}/muxps.h

  ViewVC Help
Powered by ViewVC 1.1.30