public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rust-num-format] rawhide: Regenerate with rust2rpm v28
@ 2026-08-05 13:05 Fabio Valentini
  0 siblings, 0 replies; only message in thread
From: Fabio Valentini @ 2026-08-05 13:05 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/rust-num-format
Branch : rawhide
Commit : 8956f7747209f911f25098bf2a14beea9e1733d7
Author : Fabio Valentini <decathorpe@gmail.com>
Date   : 2026-08-05T15:05:00+02:00
Stats  : +147/-16 in 5 file(s)
URL    : https://src.fedoraproject.org/rpms/rust-num-format/c/8956f7747209f911f25098bf2a14beea9e1733d7?branch=rawhide

Log:
Regenerate with rust2rpm v28

---
diff --git a/0001-tests-skip-usize-isize-dependent-tests-on-non-64bit-.patch b/0001-tests-skip-usize-isize-dependent-tests-on-non-64bit-.patch
new file mode 100644
index 0000000..23edee0
--- /dev/null
+++ b/0001-tests-skip-usize-isize-dependent-tests-on-non-64bit-.patch
@@ -0,0 +1,128 @@
+From 1fe81a275617eceab37f1416fd890760928a01ae Mon Sep 17 00:00:00 2001
+From: Fabio Valentini <decathorpe@gmail.com>
+Date: Wed, 5 Aug 2026 14:49:43 +0200
+Subject: [PATCH] tests: skip usize/isize-dependent tests on non-64bit arches
+
+---
+ tests/test_non_zero.rs |  5 +++++
+ tests/test_signed.rs   | 10 ++++++++++
+ tests/test_unsigned.rs |  5 +++++
+ 3 files changed, 20 insertions(+)
+
+diff --git a/tests/test_non_zero.rs b/tests/test_non_zero.rs
+index dbf7216..e3a5051 100644
+--- a/tests/test_non_zero.rs
++++ b/tests/test_non_zero.rs
+@@ -158,26 +158,31 @@ fn test_non_zero_usize() {
+         ("1", NonZeroUsize::new(1).unwrap(), &POLICIES[2]),
+         ("1", NonZeroUsize::new(1).unwrap(), &POLICIES[3]),
+         ("1", NonZeroUsize::new(1).unwrap(), &POLICIES[4]),
++        #[cfg(target_pointer_width = "64")]
+         (
+             "18,446,744,073,709,551,615",
+             NonZeroUsize::new(std::usize::MAX).unwrap(),
+             &POLICIES[0],
+         ),
++        #[cfg(target_pointer_width = "64")]
+         (
+             "18𠜱446𠜱744𠜱073𠜱709𠜱551𠜱615",
+             NonZeroUsize::new(std::usize::MAX).unwrap(),
+             &POLICIES[1],
+         ),
++        #[cfg(target_pointer_width = "64")]
+         (
+             "1𠜱84𠜱46𠜱74𠜱40𠜱73𠜱70𠜱95𠜱51𠜱615",
+             NonZeroUsize::new(std::usize::MAX).unwrap(),
+             &POLICIES[2],
+         ),
++        #[cfg(target_pointer_width = "64")]
+         (
+             "18446744073709551615",
+             NonZeroUsize::new(std::usize::MAX).unwrap(),
+             &POLICIES[3],
+         ),
++        #[cfg(target_pointer_width = "64")]
+         (
+             "18446744073709551615",
+             NonZeroUsize::new(std::usize::MAX).unwrap(),
+diff --git a/tests/test_signed.rs b/tests/test_signed.rs
+index 03206cd..609ca43 100644
+--- a/tests/test_signed.rs
++++ b/tests/test_signed.rs
+@@ -139,35 +139,45 @@ fn test_isize() {
+         ("0", 0, &POLICIES[2]),
+         ("0", 0, &POLICIES[3]),
+         ("0", 0, &POLICIES[4]),
++        #[cfg(target_pointer_width = "64")]
+         ("9,223,372,036,854,775,807", std::isize::MAX, &POLICIES[0]),
++        #[cfg(target_pointer_width = "64")]
+         (
+             "9𠜱223𠜱372𠜱036𠜱854𠜱775𠜱807",
+             std::isize::MAX,
+             &POLICIES[1],
+         ),
++        #[cfg(target_pointer_width = "64")]
+         (
+             "92𠜱23𠜱37𠜱20𠜱36𠜱85𠜱47𠜱75𠜱807",
+             std::isize::MAX,
+             &POLICIES[2],
+         ),
++        #[cfg(target_pointer_width = "64")]
+         ("9223372036854775807", std::isize::MAX, &POLICIES[3]),
++        #[cfg(target_pointer_width = "64")]
+         ("9223372036854775807", std::isize::MAX, &POLICIES[4]),
++        #[cfg(target_pointer_width = "64")]
+         ("-9,223,372,036,854,775,808", std::isize::MIN, &POLICIES[0]),
++        #[cfg(target_pointer_width = "64")]
+         (
+             "\u{200e}-\u{200e}9𠜱223𠜱372𠜱036𠜱854𠜱775𠜱808",
+             std::isize::MIN,
+             &POLICIES[1],
+         ),
++        #[cfg(target_pointer_width = "64")]
+         (
+             "\u{200e}-\u{200e}92𠜱23𠜱37𠜱20𠜱36𠜱85𠜱47𠜱75𠜱808",
+             std::isize::MIN,
+             &POLICIES[2],
+         ),
++        #[cfg(target_pointer_width = "64")]
+         (
+             "\u{200e}-\u{200e}9223372036854775808",
+             std::isize::MIN,
+             &POLICIES[3],
+         ),
++        #[cfg(target_pointer_width = "64")]
+         (
+             "\u{200e}-\u{200e}9223372036854775808",
+             std::isize::MIN,
+diff --git a/tests/test_unsigned.rs b/tests/test_unsigned.rs
+index 12a0513..028d588 100644
+--- a/tests/test_unsigned.rs
++++ b/tests/test_unsigned.rs
+@@ -116,18 +116,23 @@ fn test_usize() {
+         ("0", 0, &POLICIES[2]),
+         ("0", 0, &POLICIES[3]),
+         ("0", 0, &POLICIES[4]),
++        #[cfg(target_pointer_width = "64")]
+         ("18,446,744,073,709,551,615", std::usize::MAX, &POLICIES[0]),
++        #[cfg(target_pointer_width = "64")]
+         (
+             "18𠜱446𠜱744𠜱073𠜱709𠜱551𠜱615",
+             std::usize::MAX,
+             &POLICIES[1],
+         ),
++        #[cfg(target_pointer_width = "64")]
+         (
+             "1𠜱84𠜱46𠜱74𠜱40𠜱73𠜱70𠜱95𠜱51𠜱615",
+             std::usize::MAX,
+             &POLICIES[2],
+         ),
++        #[cfg(target_pointer_width = "64")]
+         ("18446744073709551615", std::usize::MAX, &POLICIES[3]),
++        #[cfg(target_pointer_width = "64")]
+         ("18446744073709551615", std::usize::MAX, &POLICIES[4]),
+     ];
+ 
+-- 
+2.55.0
+

diff --git a/README.md b/README.md
deleted file mode 100644
index 9fa6921..0000000
--- a/README.md
+++ /dev/null
@@ -1,3 +0,0 @@
-# rust-num-format
-
-The rust-num-format package

diff --git a/num-format-fix-metadata-auto.diff b/num-format-fix-metadata-auto.diff
index 6758fc1..ea50f4c 100644
--- a/num-format-fix-metadata-auto.diff
+++ b/num-format-fix-metadata-auto.diff
@@ -1,5 +1,5 @@
 --- num-format-0.4.4/Cargo.toml	1970-01-01T00:00:01+00:00
-+++ num-format-0.4.4/Cargo.toml	1970-01-01T00:00:01+00:00
++++ num-format-0.4.4/Cargo.toml	2026-08-05T12:52:09.647324+00:00
 @@ -86,10 +86,7 @@
      "encoding_rs",
      "lazy_static",

diff --git a/rust-num-format.spec b/rust-num-format.spec
index 737fbb8..2ba32de 100644
--- a/rust-num-format.spec
+++ b/rust-num-format.spec
@@ -1,5 +1,5 @@
-# Generated by rust2rpm 23
-%bcond_without check
+# Generated by rust2rpm 28
+%bcond check 1
 %global debug_package %{nil}
 
 %global crate num-format
@@ -13,14 +13,17 @@ Summary:        String representations of numbers, formatted according to intern
 License:        MIT OR Apache-2.0
 URL:            https://crates.io/crates/num-format
 Source:         %{crates_source}
-# Automatically generated patch to strip foreign dependencies
+# Automatically generated patch to strip dependencies and normalize metadata
 Patch:          num-format-fix-metadata-auto.diff
+# * skip tests that depend on the exact value of {usize,iszize}::{MIN,MAX} on
+#   non-64bit architectures
+Patch2:         0001-tests-skip-usize-isize-dependent-tests-on-non-64bit-.patch
 
-BuildRequires:  rust-packaging >= 21
+BuildRequires:  cargo-rpm-macros >= 24
 
 %global _description %{expand:
-Rust crate for producing string-representations of numbers, formatted according
-to international standards.}
+A Rust crate for producing string-representations of numbers, formatted
+according to international standards.}
 
 %description %{_description}
 
@@ -172,7 +175,7 @@ use the "with-system-locale" feature of the "%{crate}" crate.
 %ghost %{crate_instdir}/Cargo.toml
 
 %prep
-%autosetup -n %{crate}-%{version_no_tilde} -p1
+%autosetup -n %{crate}-%{version} -p1
 %cargo_prep
 
 %generate_buildrequires
@@ -186,13 +189,8 @@ use the "with-system-locale" feature of the "%{crate}" crate.
 
 %if %{with check}
 %check
-%ifarch armv7hl i686
-# https://github.com/bcmyers/num-format/issues/26
-%cargo_test -- -- --skip test_usize --skip test_non_zero_usize --skip test_isize
-%else
 %cargo_test
 %endif
-%endif
 
 %changelog
 %autochangelog

diff --git a/rust2rpm.toml b/rust2rpm.toml
new file mode 100644
index 0000000..4bfaabc
--- /dev/null
+++ b/rust2rpm.toml
@@ -0,0 +1,8 @@
+[package]
+summary = "String representations of numbers, formatted according to international standards"
+
+[[package.extra-patches]]
+number = 2
+file = "0001-tests-skip-usize-isize-dependent-tests-on-non-64bit-.patch"
+comments = ["skip tests that depend on the exact value of {usize,iszize}::{MIN,MAX} on non-64bit architectures"]
+

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-08-05 13:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-05 13:05 [rpms/rust-num-format] rawhide: Regenerate with rust2rpm v28 Fabio Valentini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox