SHA256
1
0
forked from pool/mupdf
mupdf/mupdf.spec
Ismail Dönmez 3a814fc676 - Update to version 1.10
* FictionBook (FB2) e-book support.
  * Simple SVG parser (a small subset of SVG only).
  * mutool convert: a new document conversion tool and interface.
  * Multi-threaded rendering in mudraw.
  * Updated base 14 fonts from URW.
  * New CJK font with language specific variants.
  * Hyperlink support in EPUB.
  * Alpha channel is now optional in pixmaps.
  * More aggressive purging of cached objects.
  * Partial image decoding for lower memory use when banding.
  * Reduced default set of built-in CMap tables to the minimum required.
  * FZ_ENABLE_PDF, _XPS, _JS, to disable features at compile time.
  * Function level linking.
  * Dropped pdf object generation numbers from public interfaces.
  * Simplified PDF page, xobject, and annotation internals.
  * Closing and freeing devices and writers are now separate steps.
  * Improved PDF annotation editing interface (still a work in progress).
  * Document writer interface.
  * Banded image writer interface.
- Drop CVE-2016-6265.patch and mupdf-fix-openjpeg2.patch,
  both are fixed upstream.

OBS-URL: https://build.opensuse.org/package/show/Publishing/mupdf?expand=0&rev=41
2016-11-24 15:06:32 +00:00

133 lines
4.0 KiB
RPMSpec

#
# spec file for package mupdf
#
# Copyright (c) 2016 SUSE LINUX 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.10
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.com/downloads/mupdf-%{version}-source.tar.gz
Source1: mupdf.desktop
Source2: mupdf.png
BuildRequires: freetype-devel
BuildRequires: gcc-c++
BuildRequires: jbig2dec-devel
BuildRequires: libcurl-devel
BuildRequires: libjpeg-devel
BuildRequires: openjpeg2-devel
BuildRequires: update-desktop-files
BuildRequires: xorg-x11-devel
BuildRequires: zlib-devel
BuildRequires: pkgconfig(harfbuzz)
Requires: xdg-utils
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%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 except for mujs
rm -rf $(ls -d thirdparty/*/ | grep -v mujs)
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} -DAA_BITS=8 -fPIC -pthread"
make %{?_smp_mflags} \
build=release \
verbose=yes \
NOCURL= \
CURL_CFLAGS="$(pkg-config --libs libcurl)" \
CURL_LIBS=" -pthread $(pkg-config --libs libcurl)" \
HAVE_GLFW=no
%install
%make_install build=release prefix=%{_prefix} libdir=%{_libdir}
mv %{buildroot}%{_bindir}/mupdf-x11-curl %{buildroot}%{_bindir}/mupdf
rm %{buildroot}%{_bindir}/mujstest
rm %{buildroot}%{_bindir}/mupdf-x11
rm %{buildroot}%{_bindir}/muraster
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}/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}/libmupdfthird.a
%changelog