Use Inkscape's "--export-file" option

--export-png was replaced by --export-file in new Inkscape

Related: #1767921
epel9
Marek Kasik 5 years ago
parent a860c0328f
commit d86a968488

@ -0,0 +1,22 @@
--- djvulibre-3.5.27/desktopfiles/Makefile.am
+++ djvulibre-3.5.27/desktopfiles/Makefile.am
@@ -35,7 +35,7 @@ ${INKSCAPE} \
--without-gui \
--export-width=$${s} \
--export-height=$${s} \
---export-png=$@ $<
+--export-file=$@ $<
endif
if HAVE_CONVERSION_CONVERT
--- djvulibre-3.5.27/desktopfiles/Makefile.in
+++ djvulibre-3.5.27/desktopfiles/Makefile.in
@@ -309,7 +309,7 @@ PNGICONS = \
@HAVE_CONVERSION_INKSCAPE_TRUE@--without-gui \
@HAVE_CONVERSION_INKSCAPE_TRUE@--export-width=$${s} \
@HAVE_CONVERSION_INKSCAPE_TRUE@--export-height=$${s} \
-@HAVE_CONVERSION_INKSCAPE_TRUE@--export-png=$@ $<
+@HAVE_CONVERSION_INKSCAPE_TRUE@--export-file=$@ $<
@HAVE_CONVERSION_RSVG_TRUE@convert_icons_process = \
@HAVE_CONVERSION_RSVG_TRUE@s=`echo $@ | sed -e 's/[a-z]*\([0-9]*\).*/\1/'`; \

@ -3,7 +3,7 @@
Summary: DjVu viewers, encoders, and utilities
Name: djvulibre
Version: 3.5.27
Release: 16%{?dist}
Release: 17%{?dist}
License: GPLv2+
URL: http://djvu.sourceforge.net/
Source0: http://downloads.sourceforge.net/djvu/%{name}-%{version}.tar.gz
@ -13,6 +13,7 @@ Patch2: djvulibre-3.5.27-buffer-overflow.patch
Patch3: djvulibre-3.5.27-infinite-loop.patch
Patch4: djvulibre-3.5.27-stack-overflow.patch
Patch5: djvulibre-3.5.27-zero-bytes-check.patch
Patch6: djvulibre-3.5.27-export-file.patch
Requires(post): xdg-utils
Requires(preun): xdg-utils
@ -69,6 +70,7 @@ Development files for DjVuLibre.
%patch3 -p1 -b .infinite-loop
%patch4 -p1 -b .stack-overflow
%patch5 -p1 -b .zero-bytes-check
%patch6 -p1 -b .export-file
%build
@ -176,6 +178,10 @@ fi
%changelog
* Fri Nov 8 2019 Marek Kasik <mkasik@redhat.com> - 3.5.27-17
- Use Inkscape's "--export-file" option replacing "--export-png"
- Related: #1767921
* Thu Nov 7 2019 Marek Kasik <mkasik@redhat.com> - 3.5.27-16
- Fix a crash due to missing zero-bytes check
- Resolves: #1767921

Loading…
Cancel
Save