Summary: MuPDF - lightweight PDF, XPS and CBZ viewer and parser/rendering library
Summary(pl.UTF-8): MuPDF - lekka przeglÄ…darka oraz biblioteka renderujÄ…ca PDF, XPS, CBZ
Name: mupdf
-Version: 1.3
-Release: 3
+Version: 1.9a
+Release: 2
License: AGPL v3+
Group: Applications/Text
-#Source0Download: http://code.google.com/p/mupdf/downloads/list?q=source
-Source0: http://mupdf.googlecode.com/files/%{name}-%{version}-source.tar.gz
-# Source0-md5: fe53c2a56ebd7759f5f965bc4ff66359
+Source0: http://www.mupdf.com/downloads/%{name}-%{version}-source.tar.gz
+# Source0-md5: 658b90788a57d858dcb069cf326e11c3
Patch0: %{name}-openjpeg.patch
-Patch1: %{name}-curl.patch
-Patch2: %{name}-v8.patch
-Patch3: %{name}-shared.patch
+Patch1: %{name}-shared.patch
URL: http://www.mupdf.com/
+BuildRequires: OpenGL-glut-devel
BuildRequires: curl-devel
BuildRequires: freetype-devel >= 2
+BuildRequires: glfw-devel
BuildRequires: jbig2dec-devel
BuildRequires: libjpeg-devel
BuildRequires: libstdc++-devel
+BuildRequires: mujs-devel >= 0-0.20160302
BuildRequires: openjpeg2-devel >= 2.1.0
BuildRequires: openssl-devel
BuildRequires: pkgconfig
-BuildRequires: v8-devel
BuildRequires: xorg-lib-libX11-devel
BuildRequires: xorg-lib-libXext-devel
BuildRequires: zlib-devel
Requires: %{name}-libs = %{version}-%{release}
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-# needs symbols from one of libmupdf-js-*
-%define skip_post_check_so libmupdf.so.*
-
%description
MuPDF is a lightweight PDF, XPS and CBZ viewer and parser/rendering
library.
Requires: jbig2dec-devel
Requires: libjpeg-devel
Requires: libstdc++-devel
+Requires: mujs-devel
Requires: openjpeg2-devel >= 2.1.0
Requires: openssl-devel
-Requires: v8-devel
Requires: zlib-devel
%description devel
%setup -q -n %{name}-%{version}-source
%patch0 -p1
%patch1 -p1
-%patch2 -p1
-%patch3 -p1
# use system libs instead
-%{__rm} -r thirdparty/{curl,freetype,jbig2dec,jpeg,openjpeg,zlib}
+%{__rm} -r thirdparty/{curl,freetype,glfw,jbig2dec,jpeg,mujs,openjpeg,zlib}
%build
CFLAGS="%{rpmcflags} %{rpmcppflags}" \
LDFLAGS="%{rpmldflags}" \
-%{__make} \
+%{__make} -j1 \
CC="%{__cc}" \
CXX="%{__cxx}" \
- V8_PRESENT=yes \
+ HAVE_MUJS=yes \
+ MUJS_CFLAGS= \
+ MUJS_LIBS="-lmujs" \
SYS_OPENJPEG_CFLAGS="$(pkg-config --cflags libopenjp2)" \
build=release \
libdir=%{_libdir} \
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT \
- V8_PRESENT=yes \
+ HAVE_MUJS=yes \
build=release \
prefix=%{_prefix} \
libdir=%{_libdir}
%files
%defattr(644,root,root,755)
%doc CHANGES CONTRIBUTORS README
-%attr(755,root,root) %{_bindir}/mudraw
-%attr(755,root,root) %{_bindir}/mujstest-v8
+%attr(755,root,root) %{_bindir}/mujstest
%attr(755,root,root) %{_bindir}/mupdf-x11
%attr(755,root,root) %{_bindir}/mupdf-x11-curl
-%attr(755,root,root) %{_bindir}/mupdf-x11-v8
%attr(755,root,root) %{_bindir}/mutool
-%{_mandir}/man1/mudraw.1*
%{_mandir}/man1/mupdf.1*
%{_mandir}/man1/mutool.1*
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/libmupdf.so.*.*.*
%attr(755,root,root) %ghost %{_libdir}/libmupdf.so.0
-%attr(755,root,root) %{_libdir}/libmupdf-js-none.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libmupdf-js-none.so.0
-%attr(755,root,root) %{_libdir}/libmupdf-js-v8.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libmupdf-js-v8.so.0
%files devel
%defattr(644,root,root,755)
%doc docs/{naming,overview,progressive,refcount,thirdparty}.txt
%attr(755,root,root) %{_libdir}/libmupdf.so
-%attr(755,root,root) %{_libdir}/libmupdf-js-none.so
-%attr(755,root,root) %{_libdir}/libmupdf-js-v8.so
%{_libdir}/libmupdf.la
-%{_libdir}/libmupdf-js-none.la
-%{_libdir}/libmupdf-js-v8.la
%{_includedir}/mupdf
%files static
%defattr(644,root,root,755)
%{_libdir}/libmupdf.a
-%{_libdir}/libmupdf-js-none.a
-%{_libdir}/libmupdf-js-v8.a