diff --git a/neon-0.31.1-endian.patch b/neon-0.31.1-endian.patch new file mode 100644 index 0000000..6b798a8 --- /dev/null +++ b/neon-0.31.1-endian.patch @@ -0,0 +1,16 @@ +diff --git a/src/ne_md5.c b/src/ne_md5.c +index f07041c..2a8458e 100644 +--- a/src/ne_md5.c ++++ b/src/ne_md5.c +@@ -426,9 +426,9 @@ void * + md5_read_ctx (const struct md5_ctx *ctx, void *resbuf) + { + #ifdef HAVE_OPENSSL +-#define SWAP_CTX(x) (ctx->ctx.x) ++#define SWAP_CTX(x) SWAP(ctx->ctx.x) + #else +-#define SWAP_CTX(x) (ctx->x) ++#define SWAP_CTX(x) SWAP(ctx->x) + #endif + + ((md5_uint32 *) resbuf)[0] = SWAP_CTX (A); diff --git a/neon.spec b/neon.spec index 15cbe48..b30ee73 100644 --- a/neon.spec +++ b/neon.spec @@ -8,6 +8,7 @@ License: LGPLv2+ URL: https://notroj.github.io/neon/ Source0: https://notroj.github.io/neon/neon-%{version}.tar.gz Patch0: neon-0.27.0-multilib.patch +Patch1: neon-0.31.1-endian.patch BuildRequires: gcc-c++ BuildRequires: expat-devel, openssl-devel, zlib-devel, krb5-devel, libproxy-devel BuildRequires: pkgconfig, pakchois-devel @@ -37,6 +38,7 @@ The development library for the C language HTTP and WebDAV client library. %prep %setup -q %patch0 -p1 -b .multilib +%patch1 -p1 -b .endian # prevent installation of HTML docs sed -ibak '/^install-docs/s/install-html//' Makefile.in