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

A new commit has been pushed.

Repo   : rpms/rust-alloc-no-stdlib
Branch : rawhide
Commit : 9bdfdc4243abe7f8faa050dee8dabe7265d6bc79
Author : Fabio Valentini <decathorpe@gmail.com>
Date   : 2026-08-31T16:51:54+02:00
Stats  : +16/-19 in 3 file(s)
URL    : https://src.fedoraproject.org/rpms/rust-alloc-no-stdlib/c/9bdfdc4243abe7f8faa050dee8dabe7265d6bc79?branch=rawhide

Log:
Regenerate with rust2rpm v28

---
diff --git a/alloc-no-stdlib-fix-metadata.diff b/alloc-no-stdlib-fix-metadata.diff
deleted file mode 100644
index f38c1f7..0000000
--- a/alloc-no-stdlib-fix-metadata.diff
+++ /dev/null
@@ -1,11 +0,0 @@
---- alloc-no-stdlib-2.0.4/Cargo.toml	1970-01-01T00:00:01+00:00
-+++ alloc-no-stdlib-2.0.4/Cargo.toml	2023-04-14T16:35:13.639860+00:00
-@@ -28,8 +28,5 @@
- license = "BSD-3-Clause"
- repository = "https://github.com/dropbox/rust-alloc-no-stdlib"
- 
--[[bin]]
--name = "example"
--
- [features]
- unsafe = []

diff --git a/rust-alloc-no-stdlib.spec b/rust-alloc-no-stdlib.spec
index fa5859c..03a22a1 100644
--- a/rust-alloc-no-stdlib.spec
+++ b/rust-alloc-no-stdlib.spec
@@ -1,7 +1,10 @@
-# 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-no-stdlib
 
 Name:           rust-alloc-no-stdlib
@@ -12,11 +15,8 @@ Summary:        Dynamic allocator that may be used with or without the stdlib
 License:        BSD-3-Clause
 URL:            https://crates.io/crates/alloc-no-stdlib
 Source:         %{crates_source}
-# Manually created patch for downstream crate metadata changes
-# * prevent example executable from being installed and shipped
-Patch:          alloc-no-stdlib-fix-metadata.diff
 
-BuildRequires:  rust-packaging >= 21
+BuildRequires:  cargo-rpm-macros >= 26
 
 %global _description %{expand:
 A dynamic allocator that may be used with or without the stdlib. This
@@ -66,10 +66,10 @@ 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
 
 %generate_buildrequires
 %cargo_generate_buildrequires

diff --git a/rust2rpm.toml b/rust2rpm.toml
new file mode 100644
index 0000000..de22c30
--- /dev/null
+++ b/rust2rpm.toml
@@ -0,0 +1,8 @@
+[package]
+cargo-install-bin = false
+
+[scripts]
+prep.post = [
+    "# https://github.com/dropbox/rust-alloc-no-stdlib/pull/8",
+    "find -type f -name '*.rs' -executable -exec chmod -x '{}' +",
+]

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

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

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-31 14:52 [rpms/rust-alloc-no-stdlib] 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