diff --git a/jbig2dec-0.17-Restore-ABI-compatibility.patch b/jbig2dec-0.17-Restore-ABI-compatibility.patch new file mode 100644 index 0000000..b3bfb28 --- /dev/null +++ b/jbig2dec-0.17-Restore-ABI-compatibility.patch @@ -0,0 +1,18 @@ +diff --git a/jbig2.c b/jbig2.c +index 97018ea..17ffd72 100644 +--- a/jbig2.c ++++ b/jbig2.c +@@ -99,6 +99,13 @@ jbig2_error(Jbig2Ctx *ctx, Jbig2Severity severity, int32_t segment_number, const + return -1; + } + ++#undef jbig2_ctx_new ++Jbig2Ctx * ++jbig2_ctx_new(Jbig2Allocator *allocator, Jbig2Options options, Jbig2GlobalCtx *global_ctx, Jbig2ErrorCallback error_callback, void *error_callback_data) ++{ ++ return jbig2_ctx_new_imp((allocator), (options), (global_ctx), (error_callback), (error_callback_data), JBIG2_VERSION_MAJOR, JBIG2_VERSION_MINOR); ++} ++ + Jbig2Ctx * + jbig2_ctx_new_imp(Jbig2Allocator *allocator, Jbig2Options options, Jbig2GlobalCtx *global_ctx, Jbig2ErrorCallback error_callback, void *error_callback_data, int jbig2_version_major, int jbig2_version_minor) + { diff --git a/jbig2dec.spec b/jbig2dec.spec index a3afbe3..c62f718 100644 --- a/jbig2dec.spec +++ b/jbig2dec.spec @@ -1,11 +1,12 @@ Name: jbig2dec Version: 0.17 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A decoder implementation of the JBIG2 image compression format License: GPLv2 URL: http://jbig2dec.sourceforge.net/ Source0: https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs950/%{name}-%{version}.tar.gz +Patch1: jbig2dec-0.17-Restore-ABI-compatibility.patch BuildRequires: libtool %description @@ -43,7 +44,7 @@ which requires the jbig2dec library. %prep -%setup -q +%autosetup %build @@ -79,6 +80,9 @@ rm -f %{buildroot}%{_libdir}/*.la %changelog +* Sat Nov 09 2019 Michael J Gruber - 0.17-2 +- restore ABI-compatibilty (#1770160) + * Thu Nov 07 2019 Michael J Gruber - 0.17-1 - bugfix release (bz #1761919)