From fa2e51f4f36830c58911d2a5b362bc7f6184ba86e5e3685a7d4870f80a4c9fd5 Mon Sep 17 00:00:00 2001 From: OBS User mrdocs Date: Sun, 17 Feb 2013 00:18:54 +0000 Subject: [PATCH] Accepting request 155576 from home:badshah400 New package: mupdf -- lightweight yet complete pdf viewer OBS-URL: https://build.opensuse.org/request/show/155576 OBS-URL: https://build.opensuse.org/package/show/Publishing/mupdf?expand=0&rev=1 --- .gitattributes | 23 +++++++++ .gitignore | 1 + mupdf-1.1-source.tar.gz | 3 ++ mupdf.changes | 69 ++++++++++++++++++++++++++ mupdf.spec | 106 ++++++++++++++++++++++++++++++++++++++++ 5 files changed, 202 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 mupdf-1.1-source.tar.gz create mode 100644 mupdf.changes create mode 100644 mupdf.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/mupdf-1.1-source.tar.gz b/mupdf-1.1-source.tar.gz new file mode 100644 index 0000000..c82b925 --- /dev/null +++ b/mupdf-1.1-source.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e54666bbe1d9f0a5464349bfbeffcf676c4a0fcad3efb89eba1f20d4ac991f34 +size 4281735 diff --git a/mupdf.changes b/mupdf.changes new file mode 100644 index 0000000..2a5bf67 --- /dev/null +++ b/mupdf.changes @@ -0,0 +1,69 @@ +------------------------------------------------------------------- +Wed Jan 16 21:51:03 UTC 2013 - gber@opensuse.org + +- update to version 1.1 + - The command line tools have been combined into one tool that + does all: mubusy + - Rendering bugs fixed (text clipping, stroked text etc). + - Better handling of 'large' (uncachable) glyphs. + - Minor speed optimisations. + - Shading bug fixes. + - Move to using dynamically allocated parsing buffers (more + resilient). + - Support for UserUnits. + - Fix bugs with image predictors (including with 16 bit images). + - More resilient to out of spec files. + - Extract pdf writing capability into the library from pdfclean, + and expand on it to allow for linearisation. Bug fixes in the + garbage collection of unused objects. + - Improve pdf writing recognition of images. + - Improved font matching. + - Start to move away from macros to inline functions (helpful for + applications requiring certification). + - Many bugs fixed. + - Removal of all global variables: we now pass a context pointer + through the code freeing us from the use of globals within the + library. + - Multi-threaded operation: while MuPDF does not require a thread + library, hooks are in place so that if one is used, significant + speedups can be gained from using multiple cores to render. + - New error handling: a portable exception-like system is used to + allow neater handling of errors. This leads to more stability + and better resilience to broken files. + - Public/Private API: the API has undergone a significant + revision (required by some of the above changes, plus + renaming/revising for clarity and consistency), and has been + split into public and private headers. The plan is that the + public portion of the API should remain much more static in + future. + - Improved Text Extraction device: a cleaner API to the + experimental text extraction device, offering a list of styles, + and more cleanly delineated content. + - Documentation: All public header entry points/structures are + now documented and overviews of how to call the library to + render pages both in single and multi-threaded mode are given. + - A new scavenging memory manager; makes much better use of the + memory available by freeing cached items 'just in time'. + - Many, many, bugfixes. +- removed obsolete mupdf-use-xdg-open.patch and + mupdf-default-resolution.patch + +------------------------------------------------------------------- +Sun Jan 8 14:31:24 UTC 2012 - gber@opensuse.org + +- added mupdf-default-resolution.patch in order to change the + default resolution to 96 DPI which should be more reasonable for + most desktops + +------------------------------------------------------------------- +Fri Dec 2 18:03:34 UTC 2011 - gber@opensuse.org + +- hide from menu since mupdf must be called with a filename +- added mupdf-use-xdg-open.patch in order to use xdg-open for + launching a browser + +------------------------------------------------------------------- +Fri Dec 2 14:07:57 UTC 2011 - gber@opensuse.org + +- initial packaging + diff --git a/mupdf.spec b/mupdf.spec new file mode 100644 index 0000000..7b1dbc1 --- /dev/null +++ b/mupdf.spec @@ -0,0 +1,106 @@ +# +# spec file for package mupdf +# +# Copyright (c) 2011 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.1 +Release: 0 +License: GPL-3.0+ +Summary: Lightweight PDF and XPS Viewer and Parser and Rendering Library +Url: http://mupdf.com/ +Group: Productivity/Office/Other +Source: http://mupdf.googlecode.com/files/mupdf-%{version}-source.tar.gz +BuildRequires: gcc-c++ +BuildRequires: freetype-devel +BuildRequires: xorg-x11-devel +BuildRequires: openjpeg-devel +BuildRequires: libjpeg-devel +# workaround until jbig2dec-devel is fixed +BuildRequires: libjbig2dec0 +BuildRequires: jbig2dec-devel +BuildRequires: zlib-devel +BuildRequires: v8-devel +BuildRequires: v8-private-headers-devel +BuildRequires: update-desktop-files +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 + +%build +export XCFLAGS="%{optflags}" +make %{?_smp_mflags} verbose=1 +ls -1 build/debug + +%install +%make_install prefix=%{buildroot}%{_prefix} libdir=%{buildroot}%{_libdir} + +chmod 0644 %{buildroot}%{_includedir}/*.h \ + %{buildroot}%{_libdir}/*.a \ + %{buildroot}%{_mandir}/man1/* + +sed -e '/^Type=/aNoDisplay=true' -e '/\[Desktop Action View\]/,$d' \ + debian/mupdf.desktop > debian/mupdf.desktop.new +install -D -p -m 644 debian/mupdf.desktop.new \ + %{buildroot}%{_datadir}/applications/%{name}.desktop +install -D -p -m 644 debian/mupdf.png \ + %{buildroot}%{_datadir}/pixmaps/%{name}.png +%suse_update_desktop_file mupdf + +%post +%desktop_database_post + +%postun +%desktop_database_postun + +%files +%defattr(-,root,root) +%doc README COPYING +%{_bindir}/mupdf +%{_bindir}/mudraw +%{_bindir}/mubusy +%{_datadir}/applications/mupdf.desktop +%{_datadir}/pixmaps/mupdf.png +%{_mandir}/man1/mu*.1* + +%files devel-static +%defattr(-,root,root,-) +%{_includedir}/*.h +%{_libdir}/libfitz.a + +%changelog