Add fix for openjpeg2
This commit is contained in:
parent
5dc09a4503
commit
e50eed4a85
|
@ -0,0 +1,13 @@
|
||||||
|
diff --git a/source/fitz/load-jpx.c b/source/fitz/load-jpx.c
|
||||||
|
index dd7bf9e..3a1c7a8 100644
|
||||||
|
--- a/source/fitz/load-jpx.c
|
||||||
|
+++ b/source/fitz/load-jpx.c
|
||||||
|
@@ -116,7 +116,7 @@ fz_load_jpx(fz_context *ctx, unsigned char *data, int size, fz_colorspace *defcs
|
||||||
|
opj_stream_set_read_function(stream, fz_opj_stream_read);
|
||||||
|
opj_stream_set_skip_function(stream, fz_opj_stream_skip);
|
||||||
|
opj_stream_set_seek_function(stream, fz_opj_stream_seek);
|
||||||
|
- opj_stream_set_user_data(stream, &sb);
|
||||||
|
+ opj_stream_set_user_data(stream, &sb, (opj_stream_free_user_data_fn) fclose);
|
||||||
|
/* Set the length to avoid an assert */
|
||||||
|
opj_stream_set_user_data_length(stream, size);
|
||||||
|
|
|
@ -1,12 +1,13 @@
|
||||||
Name: mupdf
|
Name: mupdf
|
||||||
Version: 1.5
|
Version: 1.5
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
Summary: A lightweight PDF viewer and toolkit
|
Summary: A lightweight PDF viewer and toolkit
|
||||||
Group: Applications/Publishing
|
Group: Applications/Publishing
|
||||||
License: GPLv3
|
License: GPLv3
|
||||||
URL: http://mupdf.com/
|
URL: http://mupdf.com/
|
||||||
Source0: http://mupdf.com/download/%{name}-%{version}-source.tar.gz
|
Source0: http://mupdf.com/download/%{name}-%{version}-source.tar.gz
|
||||||
Source1: %{name}.desktop
|
Source1: %{name}.desktop
|
||||||
|
Patch0: %{name}-%{version}-openjpeg.patch
|
||||||
BuildRequires: openjpeg2-devel jbig2dec-devel desktop-file-utils
|
BuildRequires: openjpeg2-devel jbig2dec-devel desktop-file-utils
|
||||||
BuildRequires: libjpeg-devel freetype-devel libXext-devel
|
BuildRequires: libjpeg-devel freetype-devel libXext-devel
|
||||||
|
|
||||||
|
@ -38,6 +39,7 @@ applications that use mupdf and static libraries
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{name}-%{version}-source
|
%setup -q -n %{name}-%{version}-source
|
||||||
rm -rf thirdparty
|
rm -rf thirdparty
|
||||||
|
%patch0 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export CFLAGS="%{optflags}"
|
export CFLAGS="%{optflags}"
|
||||||
|
@ -72,6 +74,9 @@ update-desktop-database &> /dev/null || :
|
||||||
%{_libdir}/lib%{name}.a
|
%{_libdir}/lib%{name}.a
|
||||||
|
|
||||||
%Changelog
|
%Changelog
|
||||||
|
* Sun Jun 15 2014 Pavel Zhukov <landgraf@fedoraproject.org> - 1.5-2
|
||||||
|
- Add fix for new openjpeg2
|
||||||
|
|
||||||
* Sun Jun 15 2014 Pavel Zhukov <landgraf@fedoraproject.org> - 1.5-1
|
* Sun Jun 15 2014 Pavel Zhukov <landgraf@fedoraproject.org> - 1.5-1
|
||||||
- New release 1.5 (#1108710)
|
- New release 1.5 (#1108710)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue