public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Mamoru TASAKA <mtasaka@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/rubygem-rmagick] f45: 7.3.0
Date: Mon, 23 Nov 2026 07:40:29 GMT	[thread overview]
Message-ID: <179541962965.1.3650829638661196675.rpms-rubygem-rmagick-5cc77c17ff7d@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/rubygem-rmagick
Branch : f45
Commit : 5cc77c17ff7dff73032e5f4f2b6e7b6dae0e662c
Author : Mamoru TASAKA <mtasaka@fedoraproject.org>
Date   : 2026-11-23T16:38:26+09:00
Stats  : +45/-3 in 3 file(s)
URL    : https://src.fedoraproject.org/rpms/rubygem-rmagick/c/5cc77c17ff7dff73032e5f4f2b6e7b6dae0e662c?branch=f45

Log:
7.3.0

---
diff --git a/rmagick-pr2071-MagickPixel-NaN-testcase.patch b/rmagick-pr2071-MagickPixel-NaN-testcase.patch
new file mode 100644
index 0000000..6be5848
--- /dev/null
+++ b/rmagick-pr2071-MagickPixel-NaN-testcase.patch
@@ -0,0 +1,35 @@
+From f16a1225448481b38b47d21d1f035513e94bf429 Mon Sep 17 00:00:00 2001
+From: Shizuo Fujita <fujita@clear-code.com>
+Date: Mon, 23 Nov 2026 04:04:50 +0900
+Subject: [PATCH] Make the NaN pixel with sqrt(-1) and keep ImageMagick
+ 6.9.13-59
+
+ImageMagick 7.1.2-36 raises a DivideByZero error for `0/0` in fx and
+returns 0 instead of NaN, so the Pixel#<=> spec now makes its NaN pixel
+with `sqrt(-1)`.
+
+ImageMagick 6.9.13-60 and 6.9.13-61 write a wrong color index for the
+first pixel of a GIF, because the GIF encoder masks it with `&& 0xff`
+instead of `& 0xff`. The GIF round-trip specs fail with them, so CI and
+the devcontainer stay on 6.9.13-59.
+
+Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
+---
+ .devcontainer/ImageMagick6/devcontainer.json | 2 +-
+ .github/workflows/ci.yml                     | 2 +-
+ spec/rmagick/pixel/spaceship_spec.rb         | 2 +-
+ 3 files changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/spec/rmagick/pixel/spaceship_spec.rb b/spec/rmagick/pixel/spaceship_spec.rb
+index aa1c11025..4331acde4 100644
+--- a/spec/rmagick/pixel/spaceship_spec.rb
++++ b/spec/rmagick/pixel/spaceship_spec.rb
+@@ -47,7 +47,7 @@
+ 
+   it 'returns nil for a NaN value as Float#<=> does' do
+     image = Magick::Image.new(1, 1) { |options| options.background_color = 'black' }
+-    pixel = image.fx('0/0', Magick::RedChannel).pixel_color(0, 0)
++    pixel = image.fx('sqrt(-1)', Magick::RedChannel).pixel_color(0, 0)
+     other = described_class.new(Magick::QuantumRange, 0, 0)
+ 
+     if Magick::Magick_features.include?('HDRI')

diff --git a/rubygem-rmagick.spec b/rubygem-rmagick.spec
index 94b7c72..dcce67c 100644
--- a/rubygem-rmagick.spec
+++ b/rubygem-rmagick.spec
@@ -8,7 +8,7 @@ Requires:		(ImageMagick%{?_isa} >= %2 with ImageMagick%{?_isa} < %3)\
 %{nil}
 
 Name:		rubygem-%{gem_name}
-Version:	7.2.0
+Version:	7.3.0
 Release:	1%{?dist}
 
 Summary:	Ruby binding to ImageMagick
@@ -19,6 +19,9 @@ Source0:	https://rubygems.org/gems/%{gem_name}-%{version}.gem
 # %%{SOURCE2} %%{version}
 Source1:	rubygem-%{gem_name}-%{version}-full.tar.gz
 Source2:	rmagick-create-full-tarball.sh
+# https://github.com/rmagick/rmagick/pull/2071/changes/f16a1225448481b38b47d21d1f035513e94bf429
+# Fix Magick::Pixel NaN test case
+Patch0:	rmagick-pr2071-MagickPixel-NaN-testcase.patch
 
 BuildRequires:	gcc-c++
 BuildRequires:	rubygems-devel 
@@ -61,6 +64,7 @@ Documentation for %{name}.
 
 %prep
 %setup -q -T -n %{gem_name}-%{version} -b 1
+%patch -P0 -p1
 gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
 
 # permission
@@ -144,6 +148,9 @@ done
 %doc	%{gem_instdir}/examples/
 
 %changelog
+* Mon Nov 23 2026 Mamoru TASAKA <mtasaka@fedoraproject.org> - 7.3.0-1
+- 7.3.0
+
 * Fri Oct 09 2026 Mamoru TASAKA <mtasaka@fedoraproject.org> - 7.2.0-1
 - 7.2.0
 

diff --git a/sources b/sources
index 03a9582..3590fd0 100644
--- a/sources
+++ b/sources
@@ -1,2 +1,2 @@
-SHA512 (rmagick-7.2.0.gem) = dec4fd6a69c31e8e87873b46341d2be50a0e7de71b4c479d8ec25bc2bae2c9b86a9879102500773bd9af08778d3f550d7230c80e87bbb82e0b594dbb8c615aa7
-SHA512 (rubygem-rmagick-7.2.0-full.tar.gz) = 2bcb47a7914736e1f9b516c091afcde2589dd1f075584a58e23ee3ad3cc29d5a1f9aca07cebe29843648c174214e7867adde8c629ddf058e44c42835ef0e9db9
+SHA512 (rmagick-7.3.0.gem) = f87a5eb35898c5021fd315f7a46e91910f03bf8ea1c13561d3f6555983db0f39868590636b3d20eb214b6d1af01b8bc0242b3423dd240368f7f104912f1e707b
+SHA512 (rubygem-rmagick-7.3.0-full.tar.gz) = c2259a1864970b84c328b5dd26cfa15a37d4ee8c07e8e42b65af4cad051479b42d211cf0cbca0c5b63ac646bb45105709be5023cf18a55372163a0de3997491f

                 reply	other threads:[~2026-11-23  7:40 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179541962965.1.3650829638661196675.rpms-rubygem-rmagick-5cc77c17ff7d@fedoraproject.org \
    --to=mtasaka@fedoraproject.org \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox