public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rust-proc-macro-hack] f45: Regenerate with rust2rpm v28
@ 2026-08-16 21:17 Fabio Valentini
  0 siblings, 0 replies; only message in thread
From: Fabio Valentini @ 2026-08-16 21:17 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/rust-proc-macro-hack
Branch : f45
Commit : 969d02215c9224eb9ad152ec36e8793ab8ad1a26
Author : Fabio Valentini <decathorpe@gmail.com>
Date   : 2026-08-16T23:09:18+02:00
Stats  : +29/-24 in 5 file(s)
URL    : https://src.fedoraproject.org/rpms/rust-proc-macro-hack/c/969d02215c9224eb9ad152ec36e8793ab8ad1a26?branch=f45

Log:
Regenerate with rust2rpm v28

---
diff --git a/README.md b/README.md
deleted file mode 100644
index a476a99..0000000
--- a/README.md
+++ /dev/null
@@ -1,3 +0,0 @@
-# rust-proc-macro-hack
-
-The rust-proc-macro-hack package
\ No newline at end of file

diff --git a/proc-macro-hack-fix-metadata-auto.diff b/proc-macro-hack-fix-metadata-auto.diff
new file mode 100644
index 0000000..391b4b1
--- /dev/null
+++ b/proc-macro-hack-fix-metadata-auto.diff
@@ -0,0 +1,16 @@
+--- proc-macro-hack-0.5.20+deprecated/Cargo.toml	1970-01-01T00:00:01+00:00
++++ proc-macro-hack-0.5.20+deprecated/Cargo.toml	2026-08-16T21:08:21.691923+00:00
+@@ -13,7 +13,7 @@
+ edition = "2018"
+ rust-version = "1.31"
+ name = "proc-macro-hack"
+-version = "0.5.20+deprecated"
++version = "0.5.20"
+ authors = ["David Tolnay <dtolnay@gmail.com>"]
+ description = "Procedural macros in expression position"
+ readme = "README.md"
+@@ -45,3 +45,4 @@
+ [dev-dependencies.trybuild]
+ version = "1.0.49"
+ features = ["diff"]
++

diff --git a/proc-macro-hack-fix-metadata.diff b/proc-macro-hack-fix-metadata.diff
deleted file mode 100644
index f4c0773..0000000
--- a/proc-macro-hack-fix-metadata.diff
+++ /dev/null
@@ -1,11 +0,0 @@
---- proc-macro-hack-0.5.20+deprecated/Cargo.toml	1970-01-01T00:00:01+00:00
-+++ proc-macro-hack-0.5.20+deprecated/Cargo.toml	2023-02-03T13:45:03.794589+00:00
-@@ -13,7 +13,7 @@
- edition = "2018"
- rust-version = "1.31"
- name = "proc-macro-hack"
--version = "0.5.20+deprecated"
-+version = "0.5.20"
- authors = ["David Tolnay <dtolnay@gmail.com>"]
- description = "Procedural macros in expression position"
- readme = "README.md"

diff --git a/rust-proc-macro-hack.spec b/rust-proc-macro-hack.spec
index 8500d3d..351ec04 100644
--- a/rust-proc-macro-hack.spec
+++ b/rust-proc-macro-hack.spec
@@ -1,10 +1,10 @@
-# Generated by rust2rpm 23
-# * demo-hack is not packaged
-%bcond_with check
+# Generated by rust2rpm 28
+# * missing dev-dependency: demo-hack
+%bcond check 0
 %global debug_package %{nil}
 
 %global crate proc-macro-hack
-%global upstream_version 0.5.20+deprecated
+%global crate_version 0.5.20+deprecated
 
 Name:           rust-proc-macro-hack
 Version:        0.5.20
@@ -13,12 +13,11 @@ Summary:        Procedural macros in expression position
 
 License:        MIT OR Apache-2.0
 URL:            https://crates.io/crates/proc-macro-hack
-Source:         %{crates_source %{crate} %{upstream_version}}
-# Manually created patch for downstream crate metadata changes
-# * remove "deprecated" specifier from version string
-Patch:          proc-macro-hack-fix-metadata.diff
+Source:         %{crates_source %{crate} %{crate_version}}
+# Automatically generated patch to strip dependencies and normalize metadata
+Patch:          proc-macro-hack-fix-metadata-auto.diff
 
-BuildRequires:  rust-packaging >= 21
+BuildRequires:  cargo-rpm-macros >= 24
 
 %global _description %{expand:
 Procedural macros in expression position.}
@@ -55,7 +54,7 @@ use the "default" feature of the "%{crate}" crate.
 %ghost %{crate_instdir}/Cargo.toml
 
 %prep
-%autosetup -n %{crate}-%{upstream_version} -p1
+%autosetup -n %{crate}-%{crate_version} -p1
 %cargo_prep
 
 %generate_buildrequires

diff --git a/rust2rpm.toml b/rust2rpm.toml
new file mode 100644
index 0000000..bbb4143
--- /dev/null
+++ b/rust2rpm.toml
@@ -0,0 +1,4 @@
+[tests]
+run = false
+comments = ["missing dev-dependency: demo-hack"]
+

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

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

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-16 21:17 [rpms/rust-proc-macro-hack] f45: 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