%define develname %mklibname -d %{name} Name: mupdf Version: 0.9 Release: %mkrel 3 Summary: MuPDF is a lightweight PDF viewer and toolkit written in portable C License: GPLv3+ Group: Office URL: http://mupdf.com/ Source0: http://mupdf.googlecode.com/files/mupdf-%{version}-source.tar.gz Source1: mupdf.desktop Patch0: mupdf-0.9-str-fmt.patch BuildRequires: libx11-devel BuildRequires: libxext-devel BuildRequires: zlib-devel BuildRequires: libjpeg-devel BuildRequires: freetype2-devel BuildRequires: jbig2dec-devel BuildRequires: openjpeg-devel %description MuPDF is a lightweight PDF viewer and toolkit written in portable C. The renderer in MuPDF is tailored for high quality anti-aliased graphics. MuPDF renders text with metrics and spacing accurate to within fractions of a pixel for the highest fidelity in reproducing the look of a printed page on screen. MuPDF has a small footprint. A binary that includes the standard Roman fonts is only one megabyte. A build with full CJK support (including an Asian font) is approximately five megabytes. MuPDF has support for all non-interactive PDF 1.7 features, and the toolkit provides a simple API for accessing the internal structures of the PDF document. Example code for navigating interactive links and bookmarks, encrypting PDF files, extracting fonts, images, and searchable text, and rendering pages to image files is provided. %package -n %{develname} Summary: Development files for %{name} Group: Development/C Requires: %{name} = %{version}-%{release} %description -n %{develname} This package contains the development files and headers for %{name}. %prep %setup -q %apply_patches %build %setup_compile_flags %make %install rm -rf %{buildroot} %makeinstall install -D -m 644 %{SOURCE1} %{buildroot}%{_datadir}/applications/%{name}.desktop install -D -m 644 debian/mupdf.png %{buildroot}%{_datadir}/pixmaps/%{name}.png %files %doc README %{_bindir}/mupdf %{_bindir}/pdfclean %{_bindir}/pdfdraw %{_bindir}/pdfextract %{_bindir}/pdfinfo %{_bindir}/pdfshow %{_bindir}/xpsdraw %{_mandir}/man1/* %{_datadir}/applications/%{name}.desktop %{_datadir}/pixmaps/%{name}.png %files -n %{develname} %{_libdir}/libfitz.a %{_libdir}/libmupdf.a %{_libdir}/libmuxps.a %{_includedir}/fitz.h %{_includedir}/mupdf.h %{_includedir}/muxps.h