public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rust-hamming] rawhide: Regenerate with rust2rpm v28
@ 2026-07-31 20:48 Fabio Valentini
0 siblings, 0 replies; only message in thread
From: Fabio Valentini @ 2026-07-31 20:48 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/rust-hamming
Branch : rawhide
Commit : d96b0e92f345ac4624fb5fb485d7ec587172fd6b
Author : Fabio Valentini <decathorpe@gmail.com>
Date : 2026-07-31T22:48:28+02:00
Stats : +34/-27 in 5 file(s)
URL : https://src.fedoraproject.org/rpms/rust-hamming/c/d96b0e92f345ac4624fb5fb485d7ec587172fd6b?branch=rawhide
Log:
Regenerate with rust2rpm v28
---
diff --git a/README.md b/README.md
deleted file mode 100644
index 5e17fc0..0000000
--- a/README.md
+++ /dev/null
@@ -1,3 +0,0 @@
-# rust-hamming
-
-The rust-hamming package
diff --git a/hamming-fix-metadata.diff b/hamming-fix-metadata.diff
new file mode 100644
index 0000000..1564dcd
--- /dev/null
+++ b/hamming-fix-metadata.diff
@@ -0,0 +1,10 @@
+--- hamming-0.1.3/Cargo.toml 2015-06-01T01:55:47+00:00
++++ hamming-0.1.3/Cargo.toml 2026-07-31T20:47:22.798024+00:00
+@@ -19,5 +19,5 @@
+ unstable = []
+
+ [dev-dependencies]
+-quickcheck = "0.2"
+-rand = "0.3"
++quickcheck = "1.0"
++rand = "0.8"
diff --git a/rust-hamming-deps.patch b/rust-hamming-deps.patch
deleted file mode 100644
index 056e2de..0000000
--- a/rust-hamming-deps.patch
+++ /dev/null
@@ -1,11 +0,0 @@
-diff -up hamming-0.1.3/Cargo.toml.deps hamming-0.1.3/Cargo.toml
---- hamming-0.1.3/Cargo.toml.deps 2015-05-31 19:55:47.000000000 -0600
-+++ hamming-0.1.3/Cargo.toml 2022-08-06 13:57:44.343297987 -0600
-@@ -19,5 +19,5 @@ performant popcount and bitwise hamming
- unstable = []
-
- [dev-dependencies]
--quickcheck = "0.2"
--rand = "0.3"
-+quickcheck = "1.0"
-+rand = "0.8"
diff --git a/rust-hamming.spec b/rust-hamming.spec
index 5bfa1be..e258ba2 100644
--- a/rust-hamming.spec
+++ b/rust-hamming.spec
@@ -1,5 +1,5 @@
-# Generated by rust2rpm 22
-%bcond_without check
+# Generated by rust2rpm 28
+%bcond check 1
%global debug_package %{nil}
%global crate hamming
@@ -13,19 +13,17 @@ Summary: Count ones, fast (aka popcount, hamming weight)
License: MIT OR Apache-2.0
URL: https://crates.io/crates/hamming
Source: %{crates_source}
-# https://github.com/huonw/hamming/pull/4
-# Bump dep versions
-Patch: rust-hamming-deps.patch
-# Support quickcheck 1.0
-Patch: rust-hamming-quickcheck.patch
+# Manually created patch for downstream crate metadata changes
+# * bump quickcheck from 0.2 to 1.0 and rand from 0.3 to 0.8:
+# https://github.com/huonw/hamming/pull/4
+Patch: hamming-fix-metadata.diff
+Patch2: rust-hamming-quickcheck.patch
-ExclusiveArch: %{rust_arches}
-
-BuildRequires: rust-packaging >= 21
+BuildRequires: cargo-rpm-macros >= 24
%global _description %{expand:
-Count ones, fast (aka popcount, hamming weight). This provides a performant
-popcount and bitwise hamming distance for a slice of bytes.}
+Count ones, fast (aka popcount, hamming weight). This provides a
+performant popcount and bitwise hamming distance for a slice of bytes.}
%description %{_description}
@@ -69,7 +67,7 @@ use the "unstable" 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
diff --git a/rust2rpm.toml b/rust2rpm.toml
new file mode 100644
index 0000000..9e43ec8
--- /dev/null
+++ b/rust2rpm.toml
@@ -0,0 +1,13 @@
+[package]
+summary = "Count ones, fast (aka popcount, hamming weight)"
+cargo-toml-patch-comments = [
+ """\
+ bump quickcheck from 0.2 to 1.0 and rand from 0.3 to 0.8:
+ https://github.com/huonw/hamming/pull/4
+ """,
+]
+
+[[package.extra-patches]]
+number = 2
+file = "rust-hamming-quickcheck.patch"
+
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-07-31 20:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-31 20:48 [rpms/rust-hamming] 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