public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/erlang-jose] rawhide: Jose ver. 1.11.13
@ 2026-10-27 19:46 Peter Lemenkov
0 siblings, 0 replies; only message in thread
From: Peter Lemenkov @ 2026-10-27 19:46 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/erlang-jose
Branch : rawhide
Commit : c220a1a4d80e450f672fe8b06fc49d42e478b621
Author : Peter Lemenkov <lemenkov@gmail.com>
Date : 2026-10-27T20:45:29+01:00
Stats : +44/-19 in 3 file(s)
URL : https://src.fedoraproject.org/rpms/erlang-jose/c/c220a1a4d80e450f672fe8b06fc49d42e478b621?branch=rawhide
Log:
Jose ver. 1.11.13
Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
---
diff --git a/erlang-jose-0001-Don-t-compare-zlib-output-byte-by-byte-in-rfc7520_5_.patch b/erlang-jose-0001-Don-t-compare-zlib-output-byte-by-byte-in-rfc7520_5_.patch
new file mode 100644
index 0000000..308c3a2
--- /dev/null
+++ b/erlang-jose-0001-Don-t-compare-zlib-output-byte-by-byte-in-rfc7520_5_.patch
@@ -0,0 +1,31 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: Peter Lemenkov <lemenkov@gmail.com>
+Date: Tue, 27 Oct 2026 19:32:52 +0100
+Subject: [PATCH 1/1] Don't compare zlib output byte by byte in rfc7520_5_9
+
+The compressed bytes depend on the zlib implementation: zlib-ng, which
+replaces zlib in Fedora, compresses the RFC 7520 example differently, but
+still decompresses the RFC's data correctly. Check that compression
+round-trips instead.
+
+Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
+Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
+---
+ test/jose_SUITE.erl | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+diff --git a/test/jose_SUITE.erl b/test/jose_SUITE.erl
+index 2031b7a..f9f6f47 100644
+--- a/test/jose_SUITE.erl
++++ b/test/jose_SUITE.erl
+@@ -723,7 +723,9 @@ rfc7520_5_9(Config) ->
+ % 5.9.2
+ V_5_9_2_COMPRESSED_PLAIN_TEXT = ?config("figure.162", C),
+ V_5_9_1_PLAIN_TEXT = jose_jwe_zip:uncompress(jose_jwa_base64url:decode(V_5_9_2_COMPRESSED_PLAIN_TEXT), zlib),
+- V_5_9_2_COMPRESSED_PLAIN_TEXT = jose_jwa_base64url:encode(jose_jwe_zip:compress(V_5_9_1_PLAIN_TEXT, zlib)),
++ % The compressed bytes depend on the zlib implementation (zlib-ng
++ % compresses differently), so only check that they decompress back
++ V_5_9_1_PLAIN_TEXT = jose_jwe_zip:uncompress(jose_jwe_zip:compress(V_5_9_1_PLAIN_TEXT, zlib), zlib),
+ V_5_9_2_CEK = ?config("figure.163", C),
+ V_5_9_2_IV = ?config("figure.164", C),
+ % 5.9.3
diff --git a/erlang-jose.spec b/erlang-jose.spec
index 2790818..23c43f8 100644
--- a/erlang-jose.spec
+++ b/erlang-jose.spec
@@ -1,36 +1,30 @@
%global srcname jose
Name: erlang-%{srcname}
-Version: 1.11.12
+Version: 1.11.13
Release: %autorelease
BuildArch: noarch
License: MIT
Summary: JSON Object Signing and Encryption (JOSE) for Erlang and Elixir
URL: https://github.com/potatosalad/%{name}
VCS: git:%{url}.git
-Source0: %{url}/archive/%{version}/%{srcname}-%{version}.tar.gz
-BuildRequires: erlang-base64url
+Source: %{url}/archive/%{version}/%{srcname}-%{version}.tar.gz
+Patch: erlang-jose-0001-Don-t-compare-zlib-output-byte-by-byte-in-rfc7520_5_.patch
+BuildRequires: erlang-jiffy
+BuildRequires: erlang-jsx
BuildRequires: erlang-proper
BuildRequires: erlang-rebar3
-BuildRequires: erlang-triq
-Recommends: erlang-jiffy
-Recommends: erlang-jsx
+BuildSystem: rebar3
+BuildOption(check): -e
%description
%{summary}.
-%prep
-%autosetup -p1 -n %{name}-%{version}
-
-%build
-%{erlang3_compile}
-
-%install
-%{erlang3_install}
-
-%check
-# FIXME Not enough dependencies
-#%%{erlang3_test}
+%prep -a
+# Downloads its test vectors from the network
+rm test/cavp_SUITE.erl
+# A helper of cavp_SUITE which jose_SUITE uses too
+mv test/cavp_SUITE_data/hex.erl test/
%files
%license LICENSE.md
diff --git a/sources b/sources
index a135b1a..99e216b 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (jose-1.11.12.tar.gz) = a564edd6450939ac5228ce274035683bfffac0f5ee0d84648b8f13004b6993acc8319f61c27f4823757b265c0637142864f857d00acc1ef186afe2862e5eccc8
+SHA512 (jose-1.11.13.tar.gz) = 1ba3f5972f2e697282a29dfb91b5559e843b8d3e0493fe9133f2dfb716e7855ad1de58c762c249c7505ba2b0a6f398d17707d5e1b8a0ae86e9c65b9e9a6623d4
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-27 19:46 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-27 19:46 [rpms/erlang-jose] rawhide: Jose ver. 1.11.13 Peter Lemenkov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox