forked from pool/mupdf
Accepting request 1191851 from home:jkuzilek:branches:Publishing
Update to 1.24.8 OBS-URL: https://build.opensuse.org/request/show/1191851 OBS-URL: https://build.opensuse.org/package/show/Publishing/mupdf?expand=0&rev=130
This commit is contained in:
commit
82a730fc8a
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -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
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
.osc
|
3
mupdf-1.23.11-source.tar.gz
Normal file
3
mupdf-1.23.11-source.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:478f2a167feae2a291c8b8bc5205f2ce2f09f09b574a6eb0525bfad95a3cfe66
|
||||||
|
size 55319500
|
3
mupdf-1.24.8-source.tar.gz
Normal file
3
mupdf-1.24.8-source.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:a518d9be976cdb2006d45382d7ffb1b9b8d64bc3fd3cb73ca6270d752fa7f448
|
||||||
|
size 54039703
|
10
mupdf-gl.desktop
Normal file
10
mupdf-gl.desktop
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
[Desktop Entry]
|
||||||
|
Name=Mupdf-GL
|
||||||
|
GenericName=PDF file viewer
|
||||||
|
Comment=Lightweight PDF file viewer written on portable C
|
||||||
|
Exec=mupdf-gl %f
|
||||||
|
Icon=mupdf-gl
|
||||||
|
Terminal=false
|
||||||
|
Type=Application
|
||||||
|
Categories=Viewer;Graphics;
|
||||||
|
MimeType=application/pdf;application/x-pdf;
|
11
mupdf-no-strip.patch
Normal file
11
mupdf-no-strip.patch
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
--- mupdf-1.23.3-source/Makerules.orig 2023-09-20 07:55:15.822969071 +0200
|
||||||
|
+++ mupdf-1.23.3-source/Makerules 2023-09-20 07:55:39.019862276 +0200
|
||||||
|
@@ -93,7 +93,7 @@
|
||||||
|
LDFLAGS += -g
|
||||||
|
else ifeq ($(build),release)
|
||||||
|
CFLAGS += -pipe -O2 -DNDEBUG
|
||||||
|
- LDFLAGS += $(LDREMOVEUNREACH) -Wl,-s
|
||||||
|
+ LDFLAGS += $(LDREMOVEUNREACH)
|
||||||
|
else ifeq ($(build),small)
|
||||||
|
CFLAGS += -pipe -Os -DNDEBUG
|
||||||
|
LDFLAGS += $(LDREMOVEUNREACH) -Wl,-s
|
1074
mupdf.changes
Normal file
1074
mupdf.changes
Normal file
File diff suppressed because it is too large
Load Diff
11
mupdf.desktop
Normal file
11
mupdf.desktop
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
[Desktop Entry]
|
||||||
|
Name=Mupdf
|
||||||
|
GenericName=PDF file viewer
|
||||||
|
Comment=Lightweight PDF file viewer written on portable C
|
||||||
|
Exec=mupdf-x11 %f
|
||||||
|
Icon=mupdf
|
||||||
|
Terminal=false
|
||||||
|
Type=Application
|
||||||
|
Categories=Viewer;Graphics;
|
||||||
|
MimeType=application/pdf;application/x-pdf;
|
||||||
|
NoDisplay=true
|
145
mupdf.spec
Normal file
145
mupdf.spec
Normal file
@ -0,0 +1,145 @@
|
|||||||
|
#
|
||||||
|
# spec file for package mupdf
|
||||||
|
#
|
||||||
|
# Copyright (c) 2024 SUSE LLC
|
||||||
|
# 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 https://bugs.opensuse.org/
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
Name: mupdf
|
||||||
|
Version: 1.24.8
|
||||||
|
Release: 0
|
||||||
|
Summary: PDF and XPS Viewer and Parser and Rendering Library
|
||||||
|
License: AGPL-3.0-or-later
|
||||||
|
Group: Productivity/Office/Other
|
||||||
|
URL: https://mupdf.com/
|
||||||
|
Source0: https://mupdf.com/downloads/archive/%{name}-%{version}-source.tar.gz
|
||||||
|
Source1: %{name}.desktop
|
||||||
|
Source2: %{name}-gl.desktop
|
||||||
|
Patch0: mupdf-no-strip.patch
|
||||||
|
BuildRequires: Mesa-libGL-devel
|
||||||
|
BuildRequires: fdupes
|
||||||
|
BuildRequires: freetype2-devel
|
||||||
|
BuildRequires: gcc-c++
|
||||||
|
BuildRequires: jbig2dec-devel
|
||||||
|
BuildRequires: libcurl-devel
|
||||||
|
BuildRequires: libjpeg-devel
|
||||||
|
BuildRequires: openjpeg2-devel
|
||||||
|
BuildRequires: pkgconfig
|
||||||
|
BuildRequires: update-desktop-files
|
||||||
|
BuildRequires: zlib-devel
|
||||||
|
BuildRequires: zstd
|
||||||
|
BuildRequires: pkgconfig(glu)
|
||||||
|
BuildRequires: pkgconfig(harfbuzz)
|
||||||
|
BuildRequires: pkgconfig(openssl)
|
||||||
|
BuildRequires: pkgconfig(x11)
|
||||||
|
BuildRequires: pkgconfig(xext)
|
||||||
|
BuildRequires: pkgconfig(xi)
|
||||||
|
BuildRequires: pkgconfig(xrandr)
|
||||||
|
Provides: bundled(freeglut) = 3.0.0
|
||||||
|
Provides: bundled(freeglut-art) = 3.0.0
|
||||||
|
Provides: bundled(gumbo-parser) = 0.10.1
|
||||||
|
Provides: bundled(lcms2) = 2.14
|
||||||
|
Provides: bundled(lcms2-art) = 2.14
|
||||||
|
Provides: bundled(mujs) = 1.3.2
|
||||||
|
Requires: xdg-utils
|
||||||
|
|
||||||
|
%description
|
||||||
|
MuPDF is a PDF and XPS viewer and parser/rendering library.
|
||||||
|
|
||||||
|
The renderer in MuPDF is tailored for anti-aliased graphics. It
|
||||||
|
renders text with metrics and spacing accurate to within fractions of
|
||||||
|
a pixel for reproducing the look of a printed page on screen.
|
||||||
|
|
||||||
|
MuPDF supports PDF 1.7 with transparency, encryption, hyperlinks,
|
||||||
|
annotations and search. 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
|
||||||
|
%autosetup -p1 -n %{name}-%{version}-source
|
||||||
|
|
||||||
|
for d in $(ls thirdparty | grep -v -e freeglut -e lcms2 -e mujs -e extract -e gumbo-parser)
|
||||||
|
do
|
||||||
|
rm -rf thirdparty/$d
|
||||||
|
done
|
||||||
|
|
||||||
|
echo > user.make "\
|
||||||
|
USE_SYSTEM_FREETYPE := yes
|
||||||
|
USE_SYSTEM_HARFBUZZ := yes
|
||||||
|
USE_SYSTEM_JBIG2DEC := yes
|
||||||
|
USE_SYSTEM_JPEGXR := yes # not used without HAVE_JPEGXR
|
||||||
|
USE_SYSTEM_LCMS2 := no # need lcms2-art fork
|
||||||
|
USE_SYSTEM_LIBJPEG := yes
|
||||||
|
USE_SYSTEM_MUJS := no # build needs source anyways
|
||||||
|
USE_SYSTEM_OPENJPEG := yes
|
||||||
|
USE_SYSTEM_ZLIB := yes
|
||||||
|
USE_SYSTEM_GLUT := no # need freeglut2-art frok
|
||||||
|
USE_SYSTEM_CURL := yes
|
||||||
|
"
|
||||||
|
|
||||||
|
%build
|
||||||
|
%global _lto_cflags %{_lto_cflags} -ffat-lto-objects
|
||||||
|
export XCFLAGS="%{optflags} -fcommon -fPIC -DJBIG_NO_MEMENTO -DTOFU -DTOFU_CJK"
|
||||||
|
%make_build build=release verbose=yes
|
||||||
|
|
||||||
|
%install
|
||||||
|
%make_install build=release prefix=%{_prefix} libdir=%{_libdir}
|
||||||
|
rm -rf %{buildroot}%{_datadir}/doc/%{name}
|
||||||
|
desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{SOURCE1}
|
||||||
|
desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{SOURCE2}
|
||||||
|
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/scalable/apps
|
||||||
|
install -p -m644 docs/logo/mupdf-logo.svg %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/mupdf.svg
|
||||||
|
install -p -m644 docs/logo/mupdf-logo.svg %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/mupdf-gl.svg
|
||||||
|
## fix strange permissons
|
||||||
|
chmod 0644 %{buildroot}%{_libdir}/*.a
|
||||||
|
find %{buildroot}/%{_mandir} -type f -exec chmod 0644 {} \;
|
||||||
|
find %{buildroot}/%{_includedir} -type f -exec chmod 0644 {} \;
|
||||||
|
cd %{buildroot}/%{_bindir} && ln -s %{name}-x11 %{name}
|
||||||
|
%fdupes %{buildroot}%{_datadir}
|
||||||
|
|
||||||
|
%suse_update_desktop_file mupdf
|
||||||
|
|
||||||
|
%if 0%{?suse_version} <= 1320
|
||||||
|
%post
|
||||||
|
%desktop_database_post
|
||||||
|
|
||||||
|
%postun
|
||||||
|
%desktop_database_postun
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%files
|
||||||
|
%doc README CHANGES docs/*
|
||||||
|
%license COPYING
|
||||||
|
%{_bindir}/*
|
||||||
|
%{_datadir}/applications/mupdf*.desktop
|
||||||
|
%{_datadir}/icons/hicolor
|
||||||
|
%{_datadir}/icons/hicolor/scalable
|
||||||
|
%{_datadir}/icons/hicolor/scalable/apps
|
||||||
|
%{_datadir}/icons/hicolor/scalable/apps/*
|
||||||
|
%{_mandir}/man1/*.1%{?ext_man}
|
||||||
|
|
||||||
|
%files devel-static
|
||||||
|
%{_includedir}/%{name}
|
||||||
|
%{_libdir}/lib%{name}*.a
|
||||||
|
|
||||||
|
%changelog
|
Loading…
Reference in New Issue
Block a user