CFLAGS += -pipe -g
LDFLAGS += -g
else ifeq ($(build),release)
-- CFLAGS += -pipe -O2 -DNDEBUG -fomit-frame-pointer
+- CFLAGS += -pipe -O2 -DNDEBUG
- LDFLAGS += $(LDREMOVEUNREACH) -Wl,-s
+ CFLAGS += -DNDEBUG
+ LDFLAGS += $(LDREMOVEUNREACH)
else ifeq ($(build),small)
- CFLAGS += -pipe -Os -DNDEBUG -fomit-frame-pointer
+ CFLAGS += -pipe -Os -DNDEBUG
LDFLAGS += $(LDREMOVEUNREACH) -Wl,-s
Summary: MuPDF - lightweight PDF, XPS and CBZ viewer and parser/rendering library
Summary(pl.UTF-8): MuPDF - lekka przeglÄ…darka PDF, XPS, CBZ
Name: mupdf
-Version: 1.22.2
+Version: 1.23.0
Release: 1
License: AGPL v3+
Group: Applications/Text
Source0: https://www.mupdf.com/downloads/archive/%{name}-%{version}-source.tar.gz
-# Source0-md5: d37d404e28bdd8f43601d3bc20603d38
+# Source0-md5: 2d24237298fb5e28d0e1e65d0cb9591a
Patch0: %{name}-soname.patch
Patch1: %{name}-flags.patch
URL: https://www.mupdf.com/
BuildRequires: openjpeg2-devel >= 2.5.0
BuildRequires: openssl-devel >= 1.1.0
BuildRequires: pkgconfig
+BuildRequires: python3-furo
+BuildRequires: python3-rst2pdf
+BuildRequires: sphinx-pdg
BuildRequires: xorg-lib-libX11-devel
BuildRequires: xorg-lib-libXext-devel
BuildRequires: zlib-devel >= 1.2.13
libdir=%{_libdir} \
verbose=yes
+sphinx-build -M html docs/src build/docs
+
%install
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc CHANGES CONTRIBUTORS README docs/{index,manual*,thirdparty}.html
+%doc CHANGES CONTRIBUTORS README build/docs/html/{_images,_static,*.html,*.js}
%attr(755,root,root) %{_bindir}/mupdf-gl
%attr(755,root,root) %{_bindir}/mupdf-x11
%attr(755,root,root) %{_bindir}/mupdf-x11-curl