public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rust-alloc-stdlib] epel10.2: Update to version 0.2.4
@ 2026-08-31 17:14 Fabio Valentini
  0 siblings, 0 replies; only message in thread
From: Fabio Valentini @ 2026-08-31 17:14 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/rust-alloc-stdlib
Branch : epel10.2
Commit : 277a203af47a3af3ee80b46ec0e062311f392052
Author : Fabio Valentini <decathorpe@gmail.com>
Date   : 2026-08-31T16:45:54+02:00
Stats  : +31/-26 in 5 file(s)
URL    : https://src.fedoraproject.org/rpms/rust-alloc-stdlib/c/277a203af47a3af3ee80b46ec0e062311f392052?branch=epel10.2

Log:
Update to version 0.2.4

---
diff --git a/.gitignore b/.gitignore
index 9ce14c4..2a5ff63 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
 /alloc-stdlib-0.2.1.crate
 /alloc-stdlib-0.2.2.crate
+/alloc-stdlib-0.2.4.crate

diff --git a/alloc-stdlib-fix-metadata.diff b/alloc-stdlib-fix-metadata.diff
deleted file mode 100644
index 3bb6d1d..0000000
--- a/alloc-stdlib-fix-metadata.diff
+++ /dev/null
@@ -1,12 +0,0 @@
---- alloc-stdlib-0.2.2/Cargo.toml	1970-01-01T00:00:01+00:00
-+++ alloc-stdlib-0.2.2/Cargo.toml	2023-04-14T16:29:59.774576+00:00
-@@ -28,9 +28,6 @@
- license = "BSD-3-Clause"
- repository = "https://github.com/dropbox/rust-alloc-no-stdlib"
- 
--[[bin]]
--name = "example"
--
- [dependencies.alloc-no-stdlib]
- version = "2.0.4"
- 

diff --git a/rust-alloc-stdlib.spec b/rust-alloc-stdlib.spec
index 1e37726..5904d61 100644
--- a/rust-alloc-stdlib.spec
+++ b/rust-alloc-stdlib.spec
@@ -1,24 +1,24 @@
-# Generated by rust2rpm 24
-%bcond_without check
+# Generated by rust2rpm 28
+%bcond check 1
 %global debug_package %{nil}
 
+# prevent executables from being installed
+%global cargo_install_bin 0
+
 %global crate alloc-stdlib
 
 Name:           rust-alloc-stdlib
-Version:        0.2.2
+Version:        0.2.4
 Release:        %autorelease
 Summary:        Dynamic allocator example that may be used with the stdlib
 
-# https://github.com/dropbox/rust-alloc-no-stdlib/issues/9
 License:        BSD-3-Clause
 URL:            https://crates.io/crates/alloc-stdlib
-Source0:        %{crates_source}
-Source1:        https://github.com/dropbox/rust-alloc-no-stdlib/raw/3b341cc/LICENSE
-# Manually created patch for downstream crate metadata changes
-# * prevent example executable from being installed and shipped
-Patch:          alloc-stdlib-fix-metadata.diff
+Source:         %{crates_source}
+# * https://github.com/dropbox/rust-alloc-no-stdlib/issues/9
+Source2:        https://github.com/dropbox/rust-alloc-no-stdlib/raw/3b341cc/LICENSE
 
-BuildRequires:  rust-packaging >= 21
+BuildRequires:  cargo-rpm-macros >= 26
 
 %global _description %{expand:
 A dynamic allocator example that may be used with the stdlib.}
@@ -64,11 +64,11 @@ use the "unsafe" 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
 # https://github.com/dropbox/rust-alloc-no-stdlib/pull/8
 find -type f -name '*.rs' -executable -exec chmod -x '{}' +
-%cargo_prep
-cp -pav %{SOURCE1} .
+cp -pav %{SOURCE2} .
 
 %generate_buildrequires
 %cargo_generate_buildrequires

diff --git a/rust2rpm.toml b/rust2rpm.toml
new file mode 100644
index 0000000..084f72d
--- /dev/null
+++ b/rust2rpm.toml
@@ -0,0 +1,16 @@
+[package]
+cargo-install-bin = false
+license-files = ["LICENSE"]
+
+[[package.extra-sources]]
+number = 2
+file = "https://github.com/dropbox/rust-alloc-no-stdlib/raw/3b341cc/LICENSE"
+comments = ["https://github.com/dropbox/rust-alloc-no-stdlib/issues/9"]
+
+[scripts]
+prep.post = [
+    "# https://github.com/dropbox/rust-alloc-no-stdlib/pull/8",
+    "find -type f -name '*.rs' -executable -exec chmod -x '{}' +",
+    "cp -pav %{SOURCE2} .",
+]
+

diff --git a/sources b/sources
index a3bc08f..0362253 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (alloc-stdlib-0.2.2.crate) = 9c4169052ad460af2be6f2a128056661b2f26da0122877f13fcd4f4f3e2e9537783cb2b2bec47af43569629639aa8ad507ab010833982e5d942f5b26cfd46c14
+SHA512 (alloc-stdlib-0.2.4.crate) = 7e94cb22a805291c91fe458b2a5b38b0db4e0428a681f8192ff2859066c46a274ccb8d5081c74355c53e4045d31d1452b5ead574a9692c5cdb112bf5e70911c1

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

only message in thread, other threads:[~2026-08-31 17:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-31 17:14 [rpms/rust-alloc-stdlib] epel10.2: Update to version 0.2.4 Fabio Valentini

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