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
+Summary(pl.UTF-8): MuPDF - lekka przeglądarka PDF, XPS, CBZ
Name: mupdf
-Version: 1.9a
-Release: 1
+Version: 1.13.0
+Release: 2
License: AGPL v3+
Group: Applications/Text
Source0: http://www.mupdf.com/downloads/%{name}-%{version}-source.tar.gz
-# Source0-md5: 658b90788a57d858dcb069cf326e11c3
-Patch0: %{name}-openjpeg.patch
-Patch1: %{name}-shared.patch
+# Source0-md5: 447bc5c3305efe9645e12fce759e0198
URL: http://www.mupdf.com/
BuildRequires: OpenGL-glut-devel
BuildRequires: curl-devel
BuildRequires: jbig2dec-devel
BuildRequires: libjpeg-devel
BuildRequires: libstdc++-devel
-BuildRequires: mujs-devel >= 0-0.20160302
+BuildRequires: mujs-devel >= 1.0.4
BuildRequires: openjpeg2-devel >= 2.1.0
BuildRequires: openssl-devel
BuildRequires: pkgconfig
BuildRequires: xorg-lib-libX11-devel
BuildRequires: xorg-lib-libXext-devel
BuildRequires: zlib-devel
-Requires: %{name}-libs = %{version}-%{release}
+Obsoletes: mpudf-devel < 1.13.0
+Obsoletes: mpudf-libs < 1.13.0
+Obsoletes: mpudf-static < 1.13.0
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
-MuPDF is a lightweight PDF, XPS and CBZ viewer and parser/rendering
-library.
+MuPDF is a lightweight PDF, XPS and CBZ viewer.
%description -l pl.UTF-8
-MuPDF to lekka przeglądarka oraz biblioteka analizująca/renderująca
-pliki PDF, XPS i CBZ.
-
-%package libs
-Summary: Shared MuPDF libraries
-Summary(pl.UTF-8): Biblioteki współdzielone MuPDF
-Group: Libraries
-
-%description libs
-Shared MuPDF libraries.
-
-%description libs -l pl.UTF-8
-Biblioteki współdzielone MuPDF.
-
-%package devel
-Summary: Header files for MuPDF libraries
-Summary(pl.UTF-8): Pliki nagłówkowe bibliotek MuPDF
-Group: Development/Libraries
-Requires: %{name}-libs = %{version}-%{release}
-Requires: freetype-devel >= 2
-Requires: jbig2dec-devel
-Requires: libjpeg-devel
-Requires: libstdc++-devel
-Requires: mujs-devel
-Requires: openjpeg2-devel >= 2.1.0
-Requires: openssl-devel
-Requires: zlib-devel
-
-%description devel
-Header files for MuPDF libraries.
-
-%description devel -l pl.UTF-8
-Pliki nagłówkowe bibliotek MuPDF.
-
-%package static
-Summary: Static MuPDF libraries
-Summary(pl.UTF-8): Statyczne biblioteki MuPDF
-Group: Development/Libraries
-Requires: %{name}-devel = %{version}-%{release}
-
-%description static
-Static MuPDF libraries.
-
-%description static -l pl.UTF-8
-Statyczne biblioteki MuPDF.
+MuPDF to lekka przeglądarka pliki PDF, XPS i CBZ.
%prep
%setup -q -n %{name}-%{version}-source
-%patch0 -p1
-%patch1 -p1
# use system libs instead
-%{__rm} -r thirdparty/{curl,freetype,glfw,jbig2dec,jpeg,mujs,openjpeg,zlib}
+%{__rm} -r thirdparty/{curl,freetype,jbig2dec,libjpeg,mujs,openjpeg,zlib}
%build
CFLAGS="%{rpmcflags} %{rpmcppflags}" \
SYS_OPENJPEG_CFLAGS="$(pkg-config --cflags libopenjp2)" \
build=release \
libdir=%{_libdir} \
- verbose=1
+ verbose=yes
%install
rm -rf $RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
-%post libs -p /sbin/ldconfig
-%postun libs -p /sbin/ldconfig
-
%files
%defattr(644,root,root,755)
%doc CHANGES CONTRIBUTORS README
-%attr(755,root,root) %{_bindir}/mujstest
+%attr(755,root,root) %{_bindir}/mupdf-gl
%attr(755,root,root) %{_bindir}/mupdf-x11
-%attr(755,root,root) %{_bindir}/mupdf-x11-curl
%attr(755,root,root) %{_bindir}/mutool
%{_mandir}/man1/mupdf.1*
%{_mandir}/man1/mutool.1*
-
-%files libs
-%defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/libmupdf.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libmupdf.so.0
-
-%files devel
-%defattr(644,root,root,755)
-%doc docs/{naming,overview,progressive,refcount,thirdparty}.txt
-%attr(755,root,root) %{_libdir}/libmupdf.so
-%{_libdir}/libmupdf.la
-%{_includedir}/mupdf
-
-%files static
-%defattr(644,root,root,755)
-%{_libdir}/libmupdf.a