SHA256
1
0
forked from pool/mupdf
mupdf/mupdf.spec
OBS User mrdocs e2d8897e64 Accepting request 212849 from home:gberh:branches:Publishing
- update to version 1.3
  * Windows RT viewer app for MuPDF.
  * Library changes to support progressive loading (display PDF
    files as they download). Windows/Linux/MacOS viewer supports
    this using curl.
  * Incremental updates to PDF files are now (optionally) preserved
    on loading/saving.
  * Prototype support for checking PDF Digital Signatures.
  * Initial annotation support (strike-out, underline, highlight
   and ink) (library and android builds only).
  * Fix operation on Android API level 8.
  * Android redraw optimisations.
  * Android app now supports Google Cloud Print.
  * Android app translated into many languages.
  * Android support for more architectures.
  * Improvements to store (avoid collisions causing unnecessary
    evictions).
  * Windows apps use Unicode filenames now.
  * PDF function handling improved; functions can now be passed to
    devices without 'sampling'.
  * PDF image handling improved; images can now be passed to
   devices without decompression.
  * Indexed images are no longer uncompressed at load time, saving
    memory.
  * Caching of rendered tiles for speed.
  * Improved text analysis mode, capable of spotting
    columns/indents, right-to-left text etc.
  * HTML output mode now includes image output.
  * PDF password encoding handling improved.
  * MuPDF now opens Jpeg, Tiff and PNG files directly.

OBS-URL: https://build.opensuse.org/request/show/212849
OBS-URL: https://build.opensuse.org/package/show/Publishing/mupdf?expand=0&rev=12
2014-01-06 03:43:18 +00:00

135 lines
4.1 KiB
RPMSpec

#
# spec file for package mupdf
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2011 Guido Berhoerster.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: mupdf
Version: 1.3
Release: 0
Summary: Lightweight PDF and XPS Viewer and Parser and Rendering Library
License: AGPL-3.0+
Group: Productivity/Office/Other
Url: http://mupdf.com/
Source0: http://mupdf.googlecode.com/files/mupdf-%{version}-source.tar.gz
Source1: mupdf.desktop
Source2: mupdf.png
# PATCH-FIX-OPENSUSE mupdf-fix-openjpeg2.patch gber@opensuse.org -- Fix cflags, libs of openjpeg2 on openSUSE
Patch0: mupdf-fix-openjpeg2.patch
BuildRequires: freetype-devel
BuildRequires: gcc-c++
BuildRequires: jbig2dec-devel
BuildRequires: libcurl-devel
BuildRequires: libjpeg-devel
BuildRequires: openjpeg2-devel
BuildRequires: update-desktop-files
BuildRequires: v8-devel
BuildRequires: v8-private-headers-devel
BuildRequires: xorg-x11-devel
BuildRequires: zlib-devel
Requires: xdg-utils
BuildRoot: %{_tmppath}/%{name}-%{version}-build
#set ExclusiveArch: %{ix86} x86_64 %{arm}. v8 is available only
# for those architectures
ExclusiveArch: %{ix86} x86_64 %{arm}
%description
MuPDF is a lightweight PDF and XPS viewer and parser/rendering library.
The renderer in MuPDF is tailored for high quality anti-aliased graphics. It
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 is also small, fast, and yet complete. It supports PDF 1.7 with
transparency, encryption, hyperlinks, annotations, search and many other bells
and whistles. MuPDF can also read XPS documents (OpenXPS/ECMA-388).
%package devel-static
Summary: Development Files for mupdf
Group: Development/Libraries/C and C++
Requires: %{name} = %{version}
%description devel-static
This package contains development files needed for developing applications
based on mupdf.
%prep
%setup -q -n %{name}-%{version}-source
# do not use the inlined copies of build dpendencies
rm -rf thirdparty
%patch0 -p1
mkdir docs/examples
for src in docs/*.c; do
if [ -r "$src" ]; then
ln -s "$src" "docs/examples/${src##*/}"
fi
done
%build
# do no set CFLAGS which is used by the build system itself!
export XCFLAGS="%{optflags} -fPIC -pthread"
make %{?_smp_mflags} \
verbose=1 \
NOCURL= \
CURL_CFLAGS="$(pkg-config --libs libcurl)" \
CURL_LIBS=" -pthread $(pkg-config --libs libcurl)"
%install
%make_install prefix=%{_prefix} libdir=%{_libdir}
mv %{buildroot}%{_bindir}/mupdf-x11 %{buildroot}%{_bindir}/mupdf
rm -rf %{buildroot}%{_datadir}/doc/
chmod 0644 %{buildroot}%{_includedir}/mupdf/*.h \
%{buildroot}%{_includedir}/mupdf/*/*.h \
%{buildroot}%{_libdir}/*.a \
%{buildroot}%{_mandir}/man1/*
install -D -p -m 644 %{SOURCE1} \
%{buildroot}%{_datadir}/applications/%{name}.desktop
install -D -p -m 644 %{SOURCE2} \
%{buildroot}%{_datadir}/pixmaps/%{name}.png
%suse_update_desktop_file mupdf
%post
%desktop_database_post
%postun
%desktop_database_postun
%files
%defattr(-,root,root)
%doc CHANGES COPYING README docs/naming.txt docs/overview.txt
%doc docs/progressive.txt docs/refcount.txt docs/examples/
%{_bindir}/mupdf
%{_bindir}/mudraw
%{_bindir}/mutool
%{_datadir}/applications/mupdf.desktop
%{_datadir}/pixmaps/mupdf.png
%{_mandir}/man1/mu*.1*
%files devel-static
%defattr(-,root,root,-)
%{_includedir}/mupdf/
%{_libdir}/libmupdf.a
%{_libdir}/libmupdf-js-none.a
%changelog