diff --git a/libmpcdec-extern.patch b/libmpcdec-extern.patch new file mode 100644 index 0000000..64f7759 --- /dev/null +++ b/libmpcdec-extern.patch @@ -0,0 +1,17 @@ +Index: libmpcdec/requant.h +=================================================================== +--- libmpcdec/requant.h (revision 478) ++++ libmpcdec/requant.h (revision 479) +@@ -47,9 +47,9 @@ + + + /* C O N S T A N T S */ +-const mpc_uint8_t Res_bit [18]; ///< Bits per sample for chosen quantizer +-const MPC_SAMPLE_FORMAT __Cc [1 + 18]; ///< Requantization coefficients +-const mpc_int16_t __Dc [1 + 18]; ///< Requantization offset ++extern const mpc_uint8_t Res_bit [18]; ///< Bits per sample for chosen quantizer ++extern const MPC_SAMPLE_FORMAT __Cc [1 + 18]; ///< Requantization coefficients ++extern const mpc_int16_t __Dc [1 + 18]; ///< Requantization offset + + #define Cc (__Cc + 1) + #define Dc (__Dc + 1) diff --git a/musepack.changes b/musepack.changes index bb140d4..58c962c 100644 --- a/musepack.changes +++ b/musepack.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Jan 8 15:52:02 UTC 2020 - Michael Gorse + +- Add libmpcdec-extern.patch: add missing extern declarations + (boo#1160284). + ------------------------------------------------------------------- Mon Aug 26 08:21:49 UTC 2019 - Jan Engelhardt diff --git a/musepack.spec b/musepack.spec index 04e5436..b90f65f 100644 --- a/musepack.spec +++ b/musepack.spec @@ -1,7 +1,7 @@ # # spec file for package musepack # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2013 Asterios Dramis . # # All modifications and additions to the file contributed by third parties @@ -30,6 +30,8 @@ Source0: https://files.musepack.net/source/%{name}_src_%{version}.tar.gz Source99: baselibs.conf # PATCH-FIX-UPSTREAM libmpcdec.patch asterios.dramis@gmail.com -- Fix CMakeLists.txt to install a libmpcdec shared library, fix missing libmpcdec link to libm Patch0: libmpcdec.patch +# PATCh-FIX-UPSTREAM libmpcdec-extern.patch boo#1160284 mgorse@suse.com -- add extern declarations. +Patch1: libmpcdec-extern.patch BuildRequires: cmake BuildRequires: libcuefile-devel BuildRequires: libreplaygain-devel @@ -70,6 +72,7 @@ been developed. %prep %setup -q -n %{name}_src_%{version} %patch0 +%patch1 %build # Fix rpmlint warning "version-control-internal-file"